Python client library for ActivityPub-compatible servers
Project description
longwei
Longwei is a minimal Python implementation of the ActivityPub REST API used by Mastodon, Pleroma, GotoSocial, 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.
So far Longwei only implements the activtiy pub API calls I need for my other projects Fedinesia, Feed2Fedi, FenLiu and Zhongli.
DO NOT expect a full or complete implementation of all ActivityPub API functionality.
API References
Heavy Development / Breaking Changes
I have only just forked this from minimal_activitypub and am still working on it. Expect some major changes still and some breaking changes. It is not a drop in replacement and will need some adjustments, even when I am done with the rework.
I advise not to use this at until at least version 1.0.0 (non dev)
Contributing
Issues and pull requests are welcome.
longwei 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
longwei is licenced with the GNU Affero General Public License v3.0
Supporting longwei
There are a number of ways you can support longwei:
- Create an issue with problems or ideas you have with/for longwei
- 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 longwei-1.0.0.dev0.tar.gz.
File metadata
- Download URL: longwei-1.0.0.dev0.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"25.11","id":"xantusia","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65fd22347d33949d8a977c36b63b7ea2638ee34f82a4b47096eed05beb927ccf
|
|
| MD5 |
ed4b61cd1fa717e7d358b3f4daed1a4b
|
|
| BLAKE2b-256 |
88dad09876be5782e3a74ef773fafbd272f750f76068a7f56262ff15576d1424
|
File details
Details for the file longwei-1.0.0.dev0-py3-none-any.whl.
File metadata
- Download URL: longwei-1.0.0.dev0-py3-none-any.whl
- Upload date:
- Size: 22.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"25.11","id":"xantusia","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3134f6279b7baaaf121d27709accf3b89df218696c7501bdb13ce4ef905e0eca
|
|
| MD5 |
2b4d5d03168978d10210584e6659a813
|
|
| BLAKE2b-256 |
cf6352f778a950d35b95261863f88cf06794a8dba742f130a63013b2e920f57e
|