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.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ngilive-0.5.19.tar.gz | 15.9 kB | Without provenance | Details for ngilive-0.5.19.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ngilive-0.5.19-py3-none-any.whl | Python 3 | none | any | Details for ngilive-0.5.19-py3-none-any.whl |
Total release size: 35.8 kB
Release files / ngilive-0.5.19.tar.gz
| Download URL | ngilive-0.5.19.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a96be1b174a5cbc657a22514d607285e0dc2cc4be959e4bc312f934cc9aab7a4
|
|
BLAKE2b-256 checksum How to use checksums |
60acdf7ecfd0124a923f654e3ee4e4e37d3f16e592763c2ade93eabd536a3414
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.14 Linux/6.17.0-1022-azure
|
Release files / ngilive-0.5.19-py3-none-any.whl
| Download URL | ngilive-0.5.19-py3-none-any.whl |
|---|---|
| Size | 19.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb7c593cc2681b48096588273702c188b206bb2d64fecaceab6b95af3af08d0d
|
|
BLAKE2b-256 checksum How to use checksums |
3d1da3509a69be4758122dacb2ca19f10c44841cbb6612846d865c331ccf9ccd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.14 Linux/6.17.0-1022-azure
|
Security for ngilive 0.5.19
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.