Skip to main content

Python SDK for the Novant API

Project description

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)

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

novant-0.2.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

novant-0.2.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file novant-0.2.0.tar.gz.

File metadata

  • Download URL: novant-0.2.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for novant-0.2.0.tar.gz
Algorithm Hash digest
SHA256 33cda363bef3402a2923b7dc434508db3caad368b63ee220f935cdac297ab3da
MD5 1cb40d77b8df192a086b542a349cbe1d
BLAKE2b-256 195957aed391e5eb6795b1b175418a0f3b4226527e1e13799863ca800548d0bd

See more details on using hashes here.

File details

Details for the file novant-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: novant-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for novant-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0cc5391aa50bb53ef9122b6245cb5fb6c35d198e17f991c7ef3e540f489270b
MD5 40c8e22f07badd3bdf4c79d42a7f34c2
BLAKE2b-256 e3ab527ed2a76fabcb3a37cf0174228929430ed415b1a339e6539da8e9c26e0d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page