No description
This repository has been archived on 2026-08-04. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Python 99.5%
  • Just 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-04-02 16:02:12 +10:00
.woodpecker feat(security): add gitleaks to pre-commit and CI 2026-03-28 10:40:46 +10:00
docs docs: add archival message 2026-04-02 16:01:54 +10:00
src/minimal_activitypub feat(exceptions): enrich error context on all exceptions (Phase 4) 2026-03-28 11:32:25 +10:00
tests feat(exceptions): enrich error context on all exceptions (Phase 4) 2026-03-28 11:32:25 +10:00
.editorconfig Release 0.5.3 2023-02-18 15:34:45 +10:00
.gitignore Chore: Update dependencies versions and fix some minor type hinting 2026-03-11 12:34:12 +10:00
.gitleaks.toml feat(security): add gitleaks to pre-commit and CI 2026-03-28 10:40:46 +10:00
.pre-commit-config.yaml feat(security): add gitleaks to pre-commit and CI 2026-03-28 10:40:46 +10:00
.pylintrc Initial release 2022-09-11 19:37:04 +10:00
.python-version Bring up to date 2025-05-07 19:50:16 +10:00
.safety-policy.yml Release 0.5.0 2023-02-04 15:48:48 +10:00
.secrets.baseline chore: prepare v2.0.0 release — sync docs, update deps, add justfile 2026-03-23 09:10:51 +10:00
CHANGELOG.md docs: update changelog for 2.1.1 2026-04-02 16:02:09 +10:00
CLAUDE.md feat(exceptions): enrich error context on all exceptions (Phase 4) 2026-03-28 11:32:25 +10:00
cliff.toml chore: minor tweaking for git-cliff and bumpversion 2026-03-23 09:17:44 +10:00
CODE_REVIEW.md feat(security): add gitleaks to pre-commit and CI 2026-03-28 10:40:46 +10:00
docs_hooks.py chore: last minor adjustment of mkdocs config. 2026-03-23 09:41:48 +10:00
HIGH_PRIORITY_CHECKLIST.md feat(exceptions): enrich error context on all exceptions (Phase 4) 2026-03-28 11:32:25 +10:00
justfile chore: prepare v2.0.0 release — sync docs, update deps, add justfile 2026-03-23 09:10:51 +10:00
LICENSE.md Initial release 2022-09-11 19:37:04 +10:00
mkdocs.yml docs: add archival message 2026-04-02 16:01:54 +10:00
noxfile.py feat(security): add gitleaks to pre-commit and CI 2026-03-28 10:40:46 +10:00
pyproject.toml bump: version 2.1.0 → 2.1.1 2026-04-02 16:02:12 +10:00
README.md docs: add archival message 2026-04-02 16:01:54 +10:00
ROADMAP.md feat(exceptions): enrich error context on all exceptions (Phase 4) 2026-03-28 11:32:25 +10:00
ruff.toml Update dependencies 2024-02-19 10:34:02 +10:00
uv.lock bump: version 2.1.0 → 2.1.1 2026-04-02 16:02:12 +10:00

Warning

This project is archived and no longer maintained.

Please migrate to longwei — the successor project. Documentation: https://marvinsmastodontools.codeberg.page/longwei/latest/

Minimal-ActivityPub

Repo CI Downloads uv_secure gitleaks pysentry complexipy Codestyle Version Wheel License: AGPL-3.0-or-later

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 files
  • mkdocs.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