Skip to main content

No project description provided

Project description

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/config.py

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

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

ngilive-0.5.8.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

ngilive-0.5.8-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file ngilive-0.5.8.tar.gz.

File metadata

  • Download URL: ngilive-0.5.8.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.12 Linux/6.14.0-1017-azure

File hashes

Hashes for ngilive-0.5.8.tar.gz
Algorithm Hash digest
SHA256 d98c57b819a2dc13d6f1f8e47269a9389501320ec1791cf7146252b1bd91638e
MD5 b3a11b948f93daa3c060fdf480d9d6bf
BLAKE2b-256 6fbfc52fc04c1008ed81c23a70b7f57fc67a1014bdf301ff597e87598ccd4ac8

See more details on using hashes here.

File details

Details for the file ngilive-0.5.8-py3-none-any.whl.

File metadata

  • Download URL: ngilive-0.5.8-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.12 Linux/6.14.0-1017-azure

File hashes

Hashes for ngilive-0.5.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3d4f9802db044c67b10d8f914925ea2ef78627fb0ec10fe2660f2cf8803de53a
MD5 bba247cf295c5666abad180f2a47a065
BLAKE2b-256 1651deeacbc95cd8ec85ce30b8c252ebe9716e27d191177c5f63e72d3a2f04d0

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