Skip to content

📦 Installation

Dispytch is backend-agnostic by default. This means it won't install Kafka or RabbitMQ dependencies unless explicitly requested.

Install with uv or pip, including extras for your preferred message broker:

With Kafka support

1
2
3
uv add dispytch[kafka]
# or
pip install dispytch[kafka]

Includes: aiokafka


With RabbitMQ support

1
2
3
uv add dispytch[rabbitmq]
# or
pip install dispytch[rabbitmq]

Includes: aio-pika


⚠️ No Backend by Default

If you install Dispytch without any extras:

1
2
3
uv add dispytch
# or
pip install dispytch

then no producer or consumer backends will be available. You'll need to install at least one extra ([kafka] or [rabbitmq]) or install the dependencies separately to use built-in event producers and consumers.


🔧 Custom Backends

If you're building your own backend implementation (e.g., for Redis, NATS, SQS, etc.), installing Dispytch without extras is exactly what you want.