Skip to main content

Python SDK

PyPIfact0-sdk v1.0.6
Importimport fact0
APIhttps://api.fact0.io
RequiresPython 3.10+

Installation

1

Create an account

Sign up at app.fact0.io and complete onboarding.
2

Get your API key

Dashboard → Settings → API Keys → New key. Choose write scope. Copy the key - shown once.
export FACT0_API_KEY="f0_live_..."
3

Install

pip install fact0-sdk
Requires Python 3.10+. Import as import fact0 (PyPI name is fact0-sdk because fact0 is reserved on PyPI).
4

Verify

python -c "import fact0; print(fact0.__version__)"
Store API keys in a secrets manager. Raw keys are shown only once at creation.
The SDK defaults to https://api.fact0.io. For local development, pass base_url="http://localhost:8000" to Client(...). Continue to the Quickstart.