Thumper
Simplifies interactions with RabbitMQ by focusing on design patterns based on Topic Exchanges. More information can be found here: http://www.rabbitmq.com/tutorials/tutorial-five-python.html
Goals
Embrace Kenneth Reitz’s thoughts on the 90% rule, i.e. requests module.
Messages are serialized as needed, starting from no serialization for strings to json and falling back to yaml if the more simple open serialization methods are not capable of serializing the object/message. i.e. datetime/date/decimal/etc.
#!/usr/bin/env python
from rabbit import Producer
with Producer(uri) as producer:
for message in <iterable/generator>:
producer.publish(message, routing_key)
from rabbit import Consumer
with Consumer(uri, exchange, queue, routing_key) as consumer:
consumer.attach_action(...)
consumer.handle_messages(...)
or for even more control of exchanges and queues:
from rabbit import Consumer
with Consumer(uri) as consumer:
consumer.declare_exchange(...)
consumer.declare_queue(...)
consumer.attach_action(...)
consumer.handle_messages(...)
uri is a messge queue uri in the form, mq://user:pass@host/vhost where mq://user:pass@localhost == mq://user:pass@localhost/
Within the uri you can pass user, password, host, port and vhost information. see thumper/test/test_mquri.py for more details
Metadata
Release files for thumper 0.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| thumper-0.0.13.tar.gz | 160.4 kB | Without provenance | Details |
Release files / thumper-0.0.13.tar.gz
| Download URL | thumper-0.0.13.tar.gz |
|---|---|
| Size | 160.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ba10e9b5045c52e9cc5f7c5d855e2fb42c204f29e2949f3378ddb98a1cc69a0
|
|
BLAKE2b-256 checksum How to use checksums |
ec645fd74b46c002038260d0ba35777fc7e0ddb5ef8b3892daef8825dbcefc3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for thumper 0.0.13
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.