Python library that implements a simple Kombu producer
Project description
Kombu Producer
Python library that implements a simple Kombu producer
Installation
pip install kombu-producer
Publishing event with payload
from kombu_producer import KombuProducer
from json import dumps
KombuProducer(
exchange_name="<EXCHANGE_NAMED>",
exchange_type="<EXCHANGE_TYPE>",
routing_key="<ROUTING_KEY>",
broker_url="<BROKER_URL>"
).publish_payload(
payload=dumps(
{
"event": "<EVENT_NAME>",
"data": {
"<KEY1>": "<VAL1>",
"<KEY2>": "<VAL2>",
},
}
)
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kombu_producer-0.1.1.tar.gz
(2.5 kB
view details)
File details
Details for the file kombu_producer-0.1.1.tar.gz
.
File metadata
- Download URL: kombu_producer-0.1.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c5f8b81551c9b754387ac08cce967163a1ceedf288f897799279e1fbe050aab |
|
MD5 | 6b883ff72e767d3fc003f3f288a7bf8b |
|
BLAKE2b-256 | e9ce3ad24b55958516402d5adb2120f94df086dc400f19a164e0821b3549bd33 |