Skip to main content

Installation

pymidil is the official open-source Python SDK for Midil. It's on PyPI and requires Python 3.12+.

pip install pymidil

Extras

The SDK is modular, so you only install what your service needs on top of the base package:

ExtraAddsUse when
pymidil[auth]An HTTP clientYou're sending telemetry to Observatory over HTTP. This is the path used throughout these docs
pymidil[aws]AWS SQS supportYou want to use the SDK's built-in SQS consumer/producer instead of your own
pymidil[redis]A Redis clientYou want a Redis-backed idempotency store, or the built-in Redis producer
pymidil[full]Everything aboveYou're not sure yet, or you use more than one of the above

For most first-time setups:

pip install "pymidil[auth]"

Next steps

Pick the path that matches how you want to instrument your services: