Skip to content

Installation

Requirements

  • Python 3.14 or higher

Install from PyPI

pip install haiway

Optional Dependencies

You may choose to install haiway including optional support for OpenTelemetry, httpx, Postgres, RabbitMQ, Starlette, and FastAPI.

OpenTelemetry Support

For distributed tracing and observability:

pip install "haiway[opentelemetry]"

For the httpx implementation of the http client (installs httpx2):

pip install "haiway[httpx]"

For Postgres (asyncpg) support:

pip install "haiway[postgres]"

For RabbitMQ (pika) support:

pip install "haiway[rabbitmq]"

For the Starlette integration - middleware and application helpers plugging the context into request handling:

pip install "haiway[starlette]"

For the same integration with a FastAPI application factory (installs fastapi):

pip install "haiway[fastapi]"

Now you're ready to continue with the Quick Start guide!