Installation
humanbaselines requires Python 3.10+ and depends only on requests and pydantic.
bash
pip install humanbaselinesOr install the latest from source:
bash
pip install "git+https://github.com/valgorithmic/humanbaselines.git"Authentication
Every call needs an API key. Set it via the HUMANBASELINES_API_KEY environment variable (or pass api_key=...) and the client sends it automatically:
bash
export HUMANBASELINES_API_KEY="hbk_..."python
from humanbaselines import HumanBaselines
hb = HumanBaselines() # key read from the environmentSee API access for how to request a key and the full details.
Base URL
By default the client talks to https://humanbaselines.com, which proxies the /v1/* endpoints. You usually don't need to change this. See the client reference for base_url, timeout, and retry options (and the one caveat about health()).
Verify
python
hb = HumanBaselines()
print(hb.regions()) # regions + modes this server offers
print(hb.filters().modes.keys()) # dict_keys(['geofence', 'route', 'depot'])Then head to the Quickstart.