AMQP implementation using anyio
Project description
async_amqp
The async_amqp library is a pure-Python implementation of the AMQP 0.9.1 protocol.
Built on top of anyio, 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.
async_amqp was renamed from asyncamqp, but that was taken on pypi. asyncamqp was renamed from trio_amqp but anyio support was deemed to be a good idea. trio_amqp in turn was forked from aioamqp.
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
RabbitMQ requires a “guest” user (password “guest”) with admin privileges.
You can run the tests with make test (requires pytest).
tests using docker-compose
Start RabbitMQ using docker-compose up -d rabbitmq. When RabbitMQ has started, start the tests using docker-compose up --build aioamqp-test
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
Built Distribution
File details
Details for the file async_amqp-0.5.5.tar.gz
.
File metadata
- Download URL: async_amqp-0.5.5.tar.gz
- Upload date:
- Size: 54.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d47840fcec3b5994fe570151c2bd2096d25714bec99fc949c814a088be6f713d |
|
MD5 | 4cf2ea123a3d12829aed50e55cafab14 |
|
BLAKE2b-256 | 7440ee5526ac7ddd879f2d85850342e8e3b3cb32b4310460e4338b8f5e700823 |
File details
Details for the file async_amqp-0.5.5-py3-none-any.whl
.
File metadata
- Download URL: async_amqp-0.5.5-py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19cb55f27cd2104b343563f697c5a2e5ff56f9d4a4f6ad7a9a5151426b526126 |
|
MD5 | 2824c3a530e3ee6e592f5f75e96d0ba0 |
|
BLAKE2b-256 | 233781c27a4b73dc2808fad2839573506a74bd23b687adbd1d3965fc0a841734 |