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.
Release files for async-amqp 0.5.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| async_amqp-0.5.5.tar.gz | 54.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| async_amqp-0.5.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 76.0 kB
Release files / async_amqp-0.5.5.tar.gz
| Download URL | async_amqp-0.5.5.tar.gz |
|---|---|
| Size | 54.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d47840fcec3b5994fe570151c2bd2096d25714bec99fc949c814a088be6f713d
|
|
BLAKE2b-256 checksum How to use checksums |
7440ee5526ac7ddd879f2d85850342e8e3b3cb32b4310460e4338b8f5e700823
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / async_amqp-0.5.5-py3-none-any.whl
| Download URL | async_amqp-0.5.5-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
19cb55f27cd2104b343563f697c5a2e5ff56f9d4a4f6ad7a9a5151426b526126
|
|
BLAKE2b-256 checksum How to use checksums |
233781c27a4b73dc2808fad2839573506a74bd23b687adbd1d3965fc0a841734
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|