Installation & Extras
Prerequisites
Section titled “Prerequisites”- Python 3.11+ (3.11 or 3.12)
- pip (or uv for faster installs)
- Docker (required only for
dockrion build)
Install Dockrion
Section titled “Install Dockrion”Base Installation
Section titled “Base Installation”pip install dockrionThis installs the CLI, SDK, schema validation, and all core dependencies:
typer— CLI frameworkrich— terminal formattingpyyaml— YAML parsingrequests— HTTP clientjinja2— template renderingpydantic— schema validation
Optional Extras
Section titled “Optional Extras”| Extra | Install command | What it adds |
|---|---|---|
langgraph | pip install dockrion[langgraph] | LangGraph + LangChain Core |
langchain | pip install dockrion[langchain] | LangChain + LangChain Core |
runtime | pip install dockrion[runtime] | FastAPI, uvicorn, prometheus-client |
jwt | pip install dockrion[jwt] | PyJWT with crypto support |
all | pip install dockrion[all] | Everything above |
Recommended for Most Users
Section titled “Recommended for Most Users”pip install dockrion[all]This gives you LangGraph support, the full runtime, and JWT authentication.
What Each Extra Includes
Section titled “What Each Extra Includes”| Extra | Packages |
|---|---|
langgraph | langgraph>=0.0.20, langchain-core>=0.1.0 |
langchain | langchain>=0.1.0, langchain-core>=0.1.0 |
runtime | fastapi>=0.109.0, uvicorn[standard]>=0.27.0, prometheus-client>=0.20 |
jwt | PyJWT[crypto]>=2.8.0 |
Verify Your Installation
Section titled “Verify Your Installation”Check the Version
Section titled “Check the Version”dockrion versionExpected output:
Dockrion CLI v0.1.0SDK v0.1.0Python 3.11.xRun the Doctor
Section titled “Run the Doctor”dockrion doctorThis checks:
- Docker availability
- Dockfile presence (if in a project directory)
- Schema validation
- Package imports (
dockrion_adapters,dockrion_common,dockrion_schema,dockrion_sdk)
Show Available Commands
Section titled “Show Available Commands”dockrion --helpDevelopment Setup (Contributors)
Section titled “Development Setup (Contributors)”For contributing to Dockrion itself:
git clone https://github.com/paritosh0707/Dockrion.gitcd DockrionIf you have uv:
uv pip install -e packages/common-pyuv pip install -e packages/schemauv pip install -e packages/adaptersuv pip install -e packages/eventsuv pip install -e packages/policy-engineuv pip install -e packages/telemetryuv pip install -e packages/runtimeuv pip install -e packages/sdk-pythonuv pip install -e packages/cliOr with pip:
pip install -e packages/common-pypip install -e packages/schema# ... same for each packageInstall order matters — common-py and schema must be installed before packages that depend on them.
Source:
packages/dockrion/pyproject.toml