Skip to main content

Django ActivityPub Toolkit

PyPI version Python versions Django versions

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)

Source distribution for django-activitypub-toolkit 0.2.0
File Size Uploaded
django_activitypub_toolkit-0.2.0.tar.gz 123.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-activitypub-toolkit 0.2.0
File Interpreter ABI Platform
django_activitypub_toolkit-0.2.0-py3-none-any.whl Python 3 none any Details

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}

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page