Installation¶
xanax requires Python 3.12 or later and has two runtime dependencies: httpx and pydantic.
pip¶
pip install xanax
uv¶
uv add xanax
From source¶
git clone https://github.com/violhex/xanax
cd xanax
uv sync --extra dev
The --extra dev flag pulls in pytest, ruff, mypy, and pytest-asyncio for development work.
Verifying the install¶
import xanax
print(xanax.__version__)
Python version¶
xanax uses str | None union syntax, StrEnum, and other features that require Python 3.12+. Older versions are not supported.