Skip to main content
# Asynchronous AMQP base Consumer and Producer.

AMQP Consumer and Producer base classes. Working on top of `aioamqp`.

## Usage

Producer:

from aioamqp_ext import BaseProducer

producer = BaseProducer(**{
'url': 'amqp://localhost:5672/',
'exchange': 'my_exchange'
})
producer.publish_message(
payload='foo',
routing_key='bar'
)
producer.close()

Consumer:

from aioamqp_ext import BaseConsumer

class Consumer(BaseConsumer):
async def process_request(self, data):
print(data)

if __name__ == "__main__":
consumer = Consumer(**{
'url': 'amqp://localhost:5672/',
'exchange': 'my_exchange',
'queue': 'my_queue',
'routing_key': 'foo.bar'
})
try:
loop = asyncio.get_event_loop()
loop.run_until_complete(consumer.consume())
loop.run_forever()
except KeyboardInterrupt:
loop.run_until_complete(consumer.close())
finally:
loop.close()

## Tests

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

pip install -r ./requirements-ci.txt

Then you can run the tests with `make unit-test `.

Metadata

Release files for aioamqp-ext 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aioamqp-ext 0.1.5
File Size Uploaded Provenance Actions
aioamqp_ext-0.1.5.tar.gz 3.7 kB Without provenance Details for aioamqp_ext-0.1.5.tar.gz

Release files / aioamqp_ext-0.1.5.tar.gz

Download URL aioamqp_ext-0.1.5.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
80c5d9225ad653b3c16ab9528757e2e2c199aa5f5c971fd0fbca6899caa4c4fb
BLAKE2b-256 checksum
How to use checksums
75ffd9378acbcc6f944d8082955d8b8a727d39b59135c2c84bdba60ef3c789c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for aioamqp-ext 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page