Metadata-Version: 2.5
Name: university-anonymous
Version: 0.1.0
Summary: University Anonymous: anonymous posts and comments that are unlinkable to the public and accountable to the platform (encrypted authorship, two-person reveals).
Project-URL: Homepage, https://github.com/NzeStan/University
Project-URL: Documentation, https://github.com/NzeStan/University/blob/main/docs/modules/anonymous.md
Project-URL: Source, https://github.com/NzeStan/University
Project-URL: Changelog, https://github.com/NzeStan/University/blob/main/CHANGELOG.md
Author-email: Ifeanyi Stanley <nnamaniifeanyi10@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: africa,anonymous,confessions,django,drf,privacy,trust-and-safety,university
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Django
Classifier: Framework :: Django :: 5.2
Classifier: Framework :: Django :: 6.0
Classifier: Framework :: Django :: 6.1
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: cryptography>=42
Requires-Dist: university-core<0.2,>=0.1
Requires-Dist: university-moderation<0.2,>=0.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-anonymous

Anonymous posts and comments for the [University platform](https://github.com/NzeStan/University):
**unlinkable to the public, accountable to the platform.**

- Authors are never exposed: not in API responses, errors, events, exports, or to ordinary
  moderators.
- Authorship is never stored in plaintext. Ownership is proven with a per-item keyed hash, and the
  identity is kept only Fernet-encrypted (with key rotation). A database dump alone links no
  author to any item.
- Revealing an author needs a sensitive permission, a written justification and a **second
  person's approval**. Approvals expire, and every step and every retrieval is audited.
- Abuse controls are built in: it requires `university-moderation`, posts are limited to audiences
  (institution/campus/community), and posting needs a verified email and a minimum account age.
  Rate limits, spam screening, sanctions and appeals also apply.
- Per-thread pseudonyms ("Quiet Heron", "OP") keep conversations readable without linking a
  user's activity across threads.
- Random UUIDv4 IDs and coarsened timestamps defeat timing correlation. Blocks deliberately don't
  hide anonymous posts (that would let people unmask authors); users can hide posts instead.

```bash
pip install university-anonymous   # pulls in university-moderation and cryptography
```

```python
INSTALLED_APPS = [..., *CORE_APPS, "university.moderation", "university.anonymous"]
UNIVERSITY = {"ANONYMOUS": {"IDENTITY_KEYS": [env("ANONYMOUS_IDENTITY_KEY")]}}
```

Guide: https://github.com/NzeStan/University/blob/main/docs/modules/anonymous.md
