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 --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


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.3.0.tar.gz (319.8 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.3.0-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: almabtrieb-0.3.0.tar.gz
  • Upload date:
  • Size: 319.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.23.3","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for almabtrieb-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1ef1d4524a05597cda4dd33c86ef84aacef2184764014beca1e0316c70651b2e
MD5 312370b4b9063ecc77f5b2edccbfe34a
BLAKE2b-256 03d27b8e204c11c16b2b04bfa393d4455ea9b9e54d238e24ed4a56c4fbd91040

See more details on using hashes here.

File details

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

File metadata

  • Download URL: almabtrieb-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.23.3","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for almabtrieb-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95834e136fcdb0fe823af1471d220846f6e7708ad92afa3c8931f65fdaaf4272
MD5 8b07ca4b2f257b55e50aca298027cea6
BLAKE2b-256 1c97ca1fbd85caf564fc852f6f2962857716660b02c907c2fa6f78536e1a0eaf

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