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.4.0.tar.gz (16.1 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.4.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for novant-0.4.0.tar.gz
Algorithm Hash digest
SHA256 256a143890987a53bea08f1995136630a228fd6e26e314a1869e4ab24cd62a28
MD5 4cad1d9dfb465b0486dc46a72c6d4af2
BLAKE2b-256 b73bb6fc08d9f3c039c7d6e6f5cc6c9894eb41497e9f75d73bdb7d14e21ab911

See more details on using hashes here.

File details

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

File metadata

  • Download URL: novant-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32f6eaf86fba4364e43935354e796dd5d419ff8c2b6046080fdd47e92c91c7a3
MD5 cfc866452125045bd8e1a70e94ac6b76
BLAKE2b-256 2c4748620df4e62fd1d5f2abaae4b679994f4ec45d8c3a9e8014e355841ff7b1

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