Installation¶
Install civicrm-py using your preferred package manager.
uv add civicrm-py
pip install civicrm-py
Framework Extras¶
Install with optional framework integrations to unlock additional features.
uv add civicrm-py[django]
# or
pip install civicrm-py[django]
Adds middleware, management commands, admin integration, and template tags.
uv add civicrm-py[litestar]
# or
pip install civicrm-py[litestar]
Adds plugin, dependency injection, routes, and health checks.
uv add civicrm-py[flask]
# or
pip install civicrm-py[flask]
Adds extension and CLI commands.
uv add civicrm-py[fastapi]
# or
pip install civicrm-py[fastapi]
Adds dependency injection helpers.
Requirements¶
Python 3.11 or later
httpx for HTTP requests
msgspec for serialization
Optional dependencies vary by framework integration.
From Source¶
Clone and install for development:
git clone https://github.com/JacobCoffee/civicrm-py
cd civicrm-py
uv sync --all-extras