Installation¶
This page covers detailed installation instructions for litestar-flags.
Requirements¶
Python 3.11 or higher
Litestar 2.0.0 or higher
Installing from PyPI¶
The simplest way to install litestar-flags is via your preferred package manager:
uv add litestar-flags
pip install litestar-flags
Optional Dependencies¶
litestar-flags supports multiple storage backends through optional dependencies:
Redis Support¶
For distributed feature flag storage using Redis:
uv add litestar-flags[redis]
pip install litestar-flags[redis]
This installs redis>=5.0.0 as a dependency.
Database Support¶
For persistent storage using SQLAlchemy (supports PostgreSQL, MySQL, SQLite, etc.):
uv add litestar-flags[database]
pip install litestar-flags[database]
This installs advanced-alchemy>=0.10.0 and sqlalchemy[asyncio]>=2.0.0.
Workflow Support¶
For approval workflows and governance features using litestar-workflows:
uv add litestar-flags[workflows]
pip install litestar-flags[workflows]
This installs litestar-workflows>=0.1.0 for human-in-the-loop approval
workflows, scheduled rollouts, and auditable flag changes.
All Dependencies¶
To install all optional dependencies:
uv add litestar-flags[all]
pip install litestar-flags[all]
Development Installation¶
For contributing to litestar-flags:
git clone https://github.com/JacobCoffee/litestar-flags.git
cd litestar-flags
uv sync
pip install -e ".[dev]"
Verifying Installation¶
You can verify the installation by importing the package:
>>> import litestar_flags
>>> print(litestar_flags.__version__)
0.1.0