Get started
Install
bash
pip install decaneOr with uv or Poetry:
bash
uv add decane
poetry add decanePython 3.10 or later. The two runtime dependencies are httpx for HTTP and PyJWT[crypto] for ES256 verification. The package ships a py.typed marker, so mypy and Pyright see full types. It is on pypi.org/project/decane.
Credentials
Verification needs no secret. The other features each need one credential from the Decane dashboard, read from the environment when you do not pass it:
| Credential | Env var | Needed for |
|---|---|---|
| Project id | DECANE_APP_ID (pass it yourself) | Checking a token belongs to your project |
| Verification key | DECANE_VERIFICATION_KEY | Offline verification (optional) |
API key dck_live_… | DECANE_API_KEY | Server-side sign-in |
Project secret dck_sk_… | DECANE_PROJECT_SECRET | Records by user id, wallet creation |
!
The API key and project secret are secrets. Keep them in server environment variables; never ship them to a browser or a mobile app.