A library for the cattle drive protocol
Project description
almabtrieb
This is a client library for the CattleDrive protocol as used by cattle_grid. This protocol is still somewhat in development.
This library enables one to create applications using cattle_grid as a middle ware to connect to the Fediverse. Examples:
- cattle_grid_rss, see also the deployed version at rss.bovine.social.
- roboherd
Supported protocols
Currently, supported are connection strings starting with amqp, amqps, mqtt, mqtts, ws, and wss.
Authentication is relegated to the underlying protocol.
Development
Run tests with
uv run pytest
This will lead to a lot of skipped tests. By running
uv sync --all-extras
you can install the amqp and mqtt libraries and thus run more tests. For the tests against an actual connection, see the next subsection.
Running tests against a running cattle_grid instance
Create an account on cattle_grid with
python -mcattle_grid account new almabtrieb password --admin
Then with cattle grid running one can run
CONNECTION_STRING=mqtt://almabtrieb:password@localhost:11883 \
uv run pytest almabtrieb/test_real.py
CONNECTION_STRING=ws://almabtrieb:password@localhost:15675/ws \
uv run pytest almabtrieb/test_real.py
CONNECTION_STRING="amqp://almabtrieb:password@localhost:5672/" \
uv run pytest almabtrieb/test_real.py
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 almabtrieb-0.2.5.tar.gz.
File metadata
- Download URL: almabtrieb-0.2.5.tar.gz
- Upload date:
- Size: 108.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97ca80614993f26f2ea7c1f61a687f108b3eedd99bb10181cc9fce2c4e75cc0d
|
|
| MD5 |
3683c4b57d05210d134b839ce488cb62
|
|
| BLAKE2b-256 |
05a5aa86b7618bbe29813348a7a317995c2297b3cb9600a7e222075528bdc42e
|
File details
Details for the file almabtrieb-0.2.5-py3-none-any.whl.
File metadata
- Download URL: almabtrieb-0.2.5-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
556227b2d4b3c4614a12d2bc96a0c4fb9258de201880541327a9084c8c2f6124
|
|
| MD5 |
60fe826d1e9a1081c6b723c470d0f4c2
|
|
| BLAKE2b-256 |
024f6114ba75444709abe94d8be203526821616c02aa825bb8e7cc1f4147d977
|