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.13.tar.gz (12.5 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.13-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngilive-0.5.13.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.13 Linux/6.17.0-1013-azure

File hashes

Hashes for ngilive-0.5.13.tar.gz
Algorithm Hash digest
SHA256 dd7f00c17fd4ff035bb0859753ec366df642bd45d061a1834375a0b68b3d5d26
MD5 cf31a409eb93598717e393f671f31007
BLAKE2b-256 5251dafb8acc00890c198c60158d2099dfb16f6f6f50d4f097ad639428d3f176

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngilive-0.5.13-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.13 Linux/6.17.0-1013-azure

File hashes

Hashes for ngilive-0.5.13-py3-none-any.whl
Algorithm Hash digest
SHA256 6673a231b4fd48df0dc60d8f5960503d295c12edb2552a4e9c125b7b51ef9d02
MD5 2e8ecdf977a17bec1bf265e1804b8fc1
BLAKE2b-256 32c7afdfe67658737df4bd62a5c20a26b9fd8d3407cd2a09b1f55a40495fea09

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