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.13.tar.gz (38.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: trio_amqp-0.2.13.tar.gz
  • Upload date:
  • Size: 38.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for trio_amqp-0.2.13.tar.gz
Algorithm Hash digest
SHA256 41901aa1482ed20d8e45ea39f91836ed1f0efb337ae8f60d2b1c4b9a0df0375f
MD5 102acd13211df4262b8d3ffbd16a62e0
BLAKE2b-256 21692b468b732e5b789f705f9a7e6debb73de41c8b794735fdcaec47e46b22ef

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