Minimal inplementation of ActivityPub Interface
Project description
Minimal-ActivityPub
Minimal-ActivityPub is a minimal Python implementation of the ActivityPub REST API used by Mastodon, Pleroma, and Takahe. This implementation makes use of asyncio where appropriate. It is intended to be used as a library by other applications. No standalone functionality is provided.
Minimal refers to the fact that only API calls I need for my other projects Fedinesia, Lemmy2Fedi and Tootbot are implemented.
DO NOT expect a full or complete implementation of all ActivityPub API functionality.
Version 2.0.0 Notice
Version 2.0.0 should be backwards compatible with 1.x. The major version bump reflects a significant internal refactor: the single client_2_server.py file (~1,100 lines) has been split into focused mixin modules, and constants, exceptions, utilities, and types have been moved to their own modules. No public API changes were made. The major version was chosen out of caution — if you encounter any regressions, please open an issue.
For more details have a look at the Documentation.
Contributing
Issues and pull requests are welcome.
Minimal-ActivityPub is using pre-commit for code quality checks and uv for dependency management. Please install and use both pre-commit and uv if you'd like to contribute.
Documentation
The documentation is built using MkDocs with the Material theme.
Building Documentation Locally
# Install documentation dependencies (using the docs group from pyproject.toml)
uv sync --group docs
# Build documentation
mkdocs build
# Serve documentation locally
mkdocs serve
Documentation Structure
docs/- Markdown source filesmkdocs.yml- MkDocs configuration
Development
This project uses uv for dependency management and virtual environments. To set up the development environment:
# Create and activate virtual environment
uv venv
source .venv/bin/activate
# Install all dependencies including development and documentation groups
uv sync --all-groups
# Run tests
uv run nox
For more details on the development workflow, check the noxfile.py and .woodpecker/ configuration files.
Licensing
Minimal-ActivityPub is licenced with the GNU Affero General Public License v3.0
Supporting Minimal-ActivityPub
There are a number of ways you can support Minimal-ActivityPub:
- Create an issue with problems or ideas you have with/for Minimal-ActivityPub
- You can buy me a coffee.
- You can send me small change in Monero to the address below:
Monero donation address
8ADQkCya3orL178dADn4bnKuF1JuVGEG97HPRgmXgmZ2cZFSkWU9M2v7BssEGeTRNN2V5p6bSyHa83nrdu1XffDX3cnjKVu
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file minimal_activitypub-2.0.1.tar.gz.
File metadata
- Download URL: minimal_activitypub-2.0.1.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84cdaf0f4d6933a06a126f06f0a9c82a07454f9e00c9c282058c7bb534af4d6b
|
|
| MD5 |
a01f59890f0957414b81f95f1f25f524
|
|
| BLAKE2b-256 |
3a65cce67573bbb9df158d294f4d91f43fb4f9e15f63cf1b7545dd4767ae62bf
|
File details
Details for the file minimal_activitypub-2.0.1-py3-none-any.whl.
File metadata
- Download URL: minimal_activitypub-2.0.1-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d9f7257c99fc275fadf5e30407732abeaa14b714b58e3cf04d360c4cea8d5c1
|
|
| MD5 |
9d27550ca6bd5f2622ac70b1b68519e6
|
|
| BLAKE2b-256 |
fabc2d1ae0931b855e6c833c4208d6be3373f97eb9af916e9b01c04b3ff71611
|