Skip to main content

AMQP implementation using trio

Project description

Join chatroom Documentation Status Automated test status Test coverage

trio-amqp

The trio-amqp library is a pure-Python implementation of the AMQP 0.9.1 protocol.

Built on top of Trio, it provides an API based on coroutines, making it easy to write highly concurrent applications.

Bug reports, patches and suggestions welcome! Just open an issue or send a pull request.

Status

The code works. Porting code that uses aioamqp (or even plain python-amqp) should be reasonably straightforward.

All tests from aioamqp have been ported and succeed.

tests

To run the tests, you’ll need to install the Python test dependencies:

pip install -r ci/requirements_dev.txt

Tests require an instance of RabbitMQ. You can start a new instance using docker:

docker run -d --log-driver=syslog -e RABBITMQ_NODENAME=my-rabbit --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management

Then you can run the tests with make test (requires pytest).

Future work

  • Add coverage reporting. Increase coverage (duh).

  • Try restarting a failed AMQP connection instead of cancelling everything.

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

trio_amqp-0.2.12.tar.gz (38.5 kB view details)

Uploaded Source

File details

Details for the file trio_amqp-0.2.12.tar.gz.

File metadata

  • Download URL: trio_amqp-0.2.12.tar.gz
  • Upload date:
  • Size: 38.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for trio_amqp-0.2.12.tar.gz
Algorithm Hash digest
SHA256 6f98e7369d5316f02b6ccc57322b13991fb3c41c1c9e304f1b820d82264969e9
MD5 c10f40036a2117d33a1bc0990f16a130
BLAKE2b-256 e04567c86ce2242b1d679e17e7de34573f70651c3fc920ec372f4f8fcc0c9923

See more details on using hashes here.

Provenance

Supported by

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