NovantClient
NovantClient is the main entry point for the Novant API.
Create a single instance with your API key and reuse it across
calls:
from novant import NovantClient
client = NovantClient(api_key="ak_xxx")Arguments
| Argument | Default | Description |
|---|---|---|
api_key |
— | Your Novant project or organization API key |
timeout |
30 |
Request timeout in seconds |
proj_id |
None |
Default project ID for project methods |
api_key may be a project key (ak_xxx) or an
organization key (ak_org_xxx). An organization key must
name a project for every call to a project method, either with a default
proj_id here or per call. See Organization.
Example
# Default timeout
client = NovantClient(api_key="ak_xxx")
# Custom timeout
client = NovantClient(api_key="ak_xxx", timeout=60)
# Organization key with a default project
client = NovantClient(api_key="ak_org_xxx", proj_id=4821)