Metadata-Version: 2.5
Name: university-messaging
Version: 0.1.0
Summary: University Messaging: Direct and group messaging with message requests, read receipts and encryption at rest.
Author-email: Ifeanyi Stanley <nnamaniifeanyi10@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Framework :: Django
Classifier: Framework :: Django :: 5.2
Classifier: Framework :: Django :: 6.0
Classifier: Framework :: Django :: 6.1
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: cryptography>=42
Requires-Dist: university-core<0.2,>=0.1.1
Provides-Extra: test
Requires-Dist: drf-spectacular>=0.27; extra == 'test'
Requires-Dist: pytest-cov>=5; extra == 'test'
Requires-Dist: pytest-django>=4.8; extra == 'test'
Requires-Dist: pytest>=8; extra == 'test'
Description-Content-Type: text/markdown

# university-messaging

Direct and group messaging with message requests, read receipts and encryption at rest.

An optional **level-two** module of the University platform.

## Installation

```bash
pip install university-messaging
```

```python
INSTALLED_APPS = [
    # ...
    *CORE_APPS,
    "university.messaging",
]
```

Run `python manage.py migrate`. The module's API is mounted automatically under
`/api/v1/messaging/`.

## Configuration

```python
UNIVERSITY = {
    "MESSAGING": {
        "ENABLED": True,
    },
}
```

## Permissions

| Code | Scope | Description |
| --- | --- | --- |
| `messaging.items.create` | platform | Create items |

## Events

| Event | Payload |
| --- | --- |
| `messaging.item.created` | `item_id`, `owner_id` |
