Skip to main content

NGILive SDK

Utilities that makes it easier to work with NGI Live from python.

For more information about how to use the SDK, please visit https://sdk.ngilive.no.

Usage

It helps you get access to data via the API by doing all the difficult auth things.

Additionally it provides nice type hinted bindings for the API endpoints, so you can follow code completion instead of reading documentation!

from ngilive import NGILive

nl = NGILive()


sensor_response = nl.sensor_search(
    20190539,
    logger="IK50",
    unit="V",
)

The first time you run it, you will see an output like this in your terminal. Perform the log in as prompted, and you will not see it again until your access has expired.

[18:41:13] ngilive.auth INFO: Please complete the authentication in your browser: https://keycloak.ngiapi.no/auth/...

Development

Requirements

  • poetry 2+
  • python

Set up

poetry install

Tests

poetry run pytest .

Build/Run docs locally

poetry run pdoc \
    -o build/docs \
    -t docs/templates/ \
    src/ngilive/__init__.py \
    src/ngilive/schema.py \
    src/ngilive/auth.py \
    src/ngilive/credentials.py \
    src/ngilive/config.py

python -m http.server --directory build/docs 8000

Metadata

Release files for ngilive 0.5.16

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

Source distribution (sdist)

Source distribution for ngilive 0.5.16
File Size Uploaded Provenance Actions
ngilive-0.5.16.tar.gz 15.8 kB Without provenance Details for ngilive-0.5.16.tar.gz

Built distribution (wheel)

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

Total release size: 35.6 kB

Release files / ngilive-0.5.16.tar.gz

Download URL ngilive-0.5.16.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
936673d73f848b75274b3086ac99987cdf29570b19b629e14dd020c2c286a1df
BLAKE2b-256 checksum
How to use checksums
c37ae20a1b3f9c14c40ffd38bf5e0f9bcdd79cd1352ef5b46b472c815be10720
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.13 Linux/6.17.0-1020-azure

Release files / ngilive-0.5.16-py3-none-any.whl

Download URL ngilive-0.5.16-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8756cf67385ee1e2c1ad7f5840e1b9ddbd199f5411e886c7f480c08935115be0
BLAKE2b-256 checksum
How to use checksums
e708c2e8f2c12864784d32282ee1ec6be092fc025fe9905e604600e7e5646daa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.13 Linux/6.17.0-1020-azure

Security for ngilive 0.5.16

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