This project has been archived by its maintainers, and is no longer receiving any updates.
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
Metadata
Release files for minimal-activitypub 2.1.1
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 | |
|---|---|---|---|---|
| minimal_activitypub-2.1.1.tar.gz | 14.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| minimal_activitypub-2.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.0 kB
Release files / minimal_activitypub-2.1.1.tar.gz
| Download URL | minimal_activitypub-2.1.1.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
753628a9b7c3e96da6e1b998a326bafc638e83852176121131c54722af340751
|
|
BLAKE2b-256 checksum How to use checksums |
6c2b2fc4dc8b49a5edaa22fdb37166e88cf8eec331c541c4835da588f91bb5df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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}
|
Release files / minimal_activitypub-2.1.1-py3-none-any.whl
| Download URL | minimal_activitypub-2.1.1-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
941b874290ca1cd85c1e0f6ddfaa348909a73fadcec3ca1cf8ec619e5121c973
|
|
BLAKE2b-256 checksum How to use checksums |
681c0a80b1cb67819a973c64d2472b372951f7454b73a14747d1d00c5149a86f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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}
|
Security for minimal-activitypub 2.1.1
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.