Installation
humanbaselines requires Python 3.10 or newer 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 in 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.
Base URL
By default the client talks to https://humanbaselines.com, which proxies the /v1/* endpoints. This rarely needs changing. See the client reference for base_url, timeout, and retry options, including 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.