Skip to main content

novant-python

Python SDK for the Novant API.

Full documentation at docs.novant.io/sdk/python.

Installation

pip install novant

Quick Start

from novant import NovantClient

client = NovantClient(api_key="ak_xxx")

# Get project info
proj = client.project()
print(proj.city)        # "Richmond, VA"
print(proj.tz)          # "New_York"

# List assets
for asset in client.assets():
    print(asset.name, asset.type)

# Read current values
for v in client.values(source_id="s.2"):
    print(v.id, v.val, v.status)

# Get trend data
for row in client.trends(point_ids=["s.2.4", "s.2.5"], date="2026-03-09"):
    print(row.ts, row.values)

Organization Keys

Project keys (ak_xxx) are bound to a single project. Organization keys (ak_org_xxx) can access any project in the organization, and must specify which project to act on with proj_id:

client = NovantClient(api_key="ak_org_xxx")

# List all projects in the organization
for p in client.org_projects():
    print(p.proj_id, p.proj_name)

# Pass proj_id per call
zones = client.zones(proj_id=4821)

# Or set a default proj_id for all calls
client = NovantClient(api_key="ak_org_xxx", proj_id=4821)
zones = client.zones()

All responses from project endpoints include the proj_id they were served from:

print(zones.proj_id)    # 4821

Development

git clone https://github.com/novant-io/novant-python.git
cd novant-python
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -e ".[dev]"

The dev extra installs pytest, build, and twine — everything needed for testing and publishing.

Testing

Tests are integration tests that run against the live Novant API. Place a test project's API key at secret/test.key, then:

pytest

Tests are skipped automatically if secret/test.key is missing.

Organization key tests additionally require an org key at secret/test.org_key, for an organization that contains the test project. These tests are skipped if the key is missing.

Metadata

Release files for novant 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for novant 0.7.0
File Size Uploaded Provenance Actions
novant-0.7.0.tar.gz 25.2 kB Without provenance Details for novant-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for novant 0.7.0
File Interpreter ABI Platform Actions
novant-0.7.0-py3-none-any.whl Python 3 none any Details for novant-0.7.0-py3-none-any.whl

Total release size: 41.0 kB

Release files / novant-0.7.0.tar.gz

Download URL novant-0.7.0.tar.gz
Size 25.2 kB
Tags Source
SHA-256 checksum
How to use checksums
904bf8c287e9d1e005aef280a37560cd36f8b8a1e3d79601e1b9c2805e93ce52
BLAKE2b-256 checksum
How to use checksums
2110fad76042cdc833a74835ef879c143965784a6308a0bda0164f6ed29cfe56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release files / novant-0.7.0-py3-none-any.whl

Download URL novant-0.7.0-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef84faecebbc0ad318f67f056dc3c515600c084f25d47bdef9158b5b7f996a5e
BLAKE2b-256 checksum
How to use checksums
50c4b9aad598616e0bac85092cf80e3592b2e00f5f5a0543a360ad1a44270be6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Security for novant 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page