Django ActivityPub Toolkit
A comprehensive Django application that brings ActivityPub federation to your web projects. Transform your Django applications into active participants in the decentralized social web.
What is ActivityPub?
ActivityPub is the protocol that powers the decentralized social web, enabling different social platforms to communicate and share content seamlessly. It's the technology behind Mastodon, PeerTube, and many other federated services.
Philosophy
Reference-First Architecture: Instead of replicating social graph data, we use references to connect your application data to the federated social graph. This approach keeps your business logic pure while enabling federation.
Vocabulary Agnostic: Support any ActivityStreams vocabulary through extensible context models. Whether you're building a microblog, video platform, or something entirely new, the toolkit adapts to your domain.
Standards Compliant: Full ActivityPub implementation with proper HTTP signatures, JSON-LD contexts, and WebFinger discovery.
Quick Start
pip install django-activitypub-toolkit
Add to your Django settings:
INSTALLED_APPS = [
# ... your other apps
'activitypub',
]
FEDERATION = {
'DEFAULT_URL': 'https://yourdomain.com',
}
Features
- Complete ActivityPub Implementation: Server-to-server and client-to-server APIs
- Reference Architecture: Connect existing Django models to the fediverse
- Extensible Contexts: Support custom vocabularies and platform extensions
- Background Processing: Celery-based task processing for federation activities
- Security: HTTP signature verification and cryptographic key management
- WebFinger: Automatic actor discovery and profile resolution
Relevant Links
License
BSD 3-Clause License - see LICENSE file for details.
Metadata
Release files for django-activitypub-toolkit 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_activitypub_toolkit-0.2.0.tar.gz | 123.0 kB | Without provenance | Details for django_activitypub_toolkit-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_activitypub_toolkit-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for django_activitypub_toolkit-0.2.0-py3-none-any.whl |
Total release size: 271.5 kB
Release files / django_activitypub_toolkit-0.2.0.tar.gz
| Download URL | django_activitypub_toolkit-0.2.0.tar.gz |
|---|---|
| Size | 123.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34b62071fb3faa6e4a70aaf5537a8e51e8934b765f6125142a6a005b7c438369
|
|
BLAKE2b-256 checksum How to use checksums |
30667982bc5677bdf6b513cc2b5e69bc9f120bec18fbf8724c236d649ade5ea5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / django_activitypub_toolkit-0.2.0-py3-none-any.whl
| Download URL | django_activitypub_toolkit-0.2.0-py3-none-any.whl |
|---|---|
| Size | 148.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ca40dded9d9bad67b23ca22441980b90f12318a747d08dac6b79c487c8b1838
|
|
BLAKE2b-256 checksum How to use checksums |
1c701259ec2b25c6eb1e08f7ca68dcb028a77cc9a11d226771ca0215df0efb44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for django-activitypub-toolkit 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.