Kafka broker for taskiq
Project description
AioKafka broker for taskiq
This library 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!")
Non-obvious things
You can configure kafka producer and consumer with special methods configure_producer and configure_consumer.
Example:
from taskiq_aio_kafka import AioKafkaBroker
broker = AioKafkaBroker(bootstrap_servers="localhost")
# configure producer, you can set any parameter from
# base AIOKafkaProducer, except `loop` and `bootstrap_servers`
broker.configure_producer(request_timeout_ms=100000)
# configure consumer, you can set any parameter from
# base AIOKafkaConsumer, except `loop` and `bootstrap_servers`
broker.configure_consumer(group_id="the best group 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.kafka_admin_client- customkafkaadmin 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file taskiq_aio_kafka-0.3.0.tar.gz.
File metadata
- Download URL: taskiq_aio_kafka-0.3.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4f8cfe016a4fbd7f29fef3faf65e0604b3db4557dcc2ccec4401f56be463fdf
|
|
| MD5 |
21ea172af842fe9a2f7d149fe969de71
|
|
| BLAKE2b-256 |
56ee09cd801fe73e5de03e89f83298c6076bcec995ed5b51b916864e11820e6a
|
File details
Details for the file taskiq_aio_kafka-0.3.0-py3-none-any.whl.
File metadata
- Download URL: taskiq_aio_kafka-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55b310c8ba9cfdc5590d9a0a9aee58dbc1251859996b3cc55c0e0a7a41569714
|
|
| MD5 |
dfe1d58977b99a9bb1ebad09b266b5f7
|
|
| BLAKE2b-256 |
b76f7775aad8a43e51a0fc8e8685cec11aa939cd1741aa44e38bdaa715a80fa3
|