Skip to main content

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:

Supported protocols

Currently, supported are connection strings starting with amqp, amqps, mqtt, mqtts, ws, and wss.

  • MQTT 5
  • AMQP, I think 0.9.1 as supported by RabbitMQ

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

almabtrieb-0.1.3.tar.gz (98.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

almabtrieb-0.1.3-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file almabtrieb-0.1.3.tar.gz.

File metadata

  • Download URL: almabtrieb-0.1.3.tar.gz
  • Upload date:
  • Size: 98.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.13

File hashes

Hashes for almabtrieb-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f561953ef2cd3dd977aed08aa864569fc7909844f120877dae5eed6d328d3893
MD5 847bfd3aca6fa2b2b20604068e98db31
BLAKE2b-256 1c97d5fcf1d435d5509eb5be42a2d4a7d1eb3cafa1e3329214d5b90b4fec91a5

See more details on using hashes here.

File details

Details for the file almabtrieb-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: almabtrieb-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.13

File hashes

Hashes for almabtrieb-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 17d780e6c1ec722f9c2b93b01680643392b020ac0743bc91663e3f3b07966116
MD5 30c5c0e5eaf10aa3ed37c48714abc58f
BLAKE2b-256 35a1d56869b879b85a8232f370ec813fa8673837c98b379d1baa87a182d439d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page