Kafka broker for taskiq
Project description
AioKafka broker for taskiq
This lirary provides you with aiokafka broker for taskiq.
Usage:
from taskiq_aio_kafka import AioKafkaBroker
broker = AioKafkaBroker(bootstrap_servers="localhost")
@broker.task
async def test() -> None:
print("The best task ever!")
Configuration
AioKafkaBroker parameters:
bootstrap_servers
- url to kafka nodes. Can be either string or list of strings.kafka_topic
- custom topic in kafka.result_backend
- custom result backend.task_id_generator
- custom task_id genertaor.aiokafka_producer
- customaiokafka
producer.aiokafka_consumer
- customaiokafka
consumer.kafka_admin_client
- customkafka
admin client.delete_topic_on_shutdown
- flag to delete topic on broker shutdown.
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
taskiq_aio_kafka-0.1.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for taskiq_aio_kafka-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b360319698019579a4ae31c211d3c57ff67e379e67e255f1ba837a8a1bc0136 |
|
MD5 | a971dd3ee2448e00a075476d043b23bd |
|
BLAKE2b-256 | d5090c16036a98ab5b7921dc9becca5f4289114ea228955813d62bc339ac1264 |