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"
print(proj.access)      # "read", "edit", or "control"

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

# List source maps and their points
for m in client.source_maps():
    print(m.id, m.name, m.num_bound, len(m.points))

# 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.8.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.8.0
File Size Uploaded Provenance Actions
novant-0.8.0.tar.gz 28.4 kB Without provenance Details for novant-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 45.6 kB

Release files / novant-0.8.0.tar.gz

Download URL novant-0.8.0.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ab82e0770de645d63bc4ddfb36fbc783a28ed4ce379534d7a8c3f6507a28804f
BLAKE2b-256 checksum
How to use checksums
a84f6eb16dd15ea84fab7d428a01472ed2afc089ae5603f0c8c35411bdde9d17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.22

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

Download URL novant-0.8.0-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d169cf10cf3a78d59dc739eb8c545f8ae4df7884d7fd74be109a2fbf2081f7f4
BLAKE2b-256 checksum
How to use checksums
681e682a01a43066d036ab260afe8dc197af125a092f12eb4733944bb2bd76d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.22

Security for novant 0.8.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