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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ngilive-0.5.4.tar.gz.
File metadata
- Download URL: ngilive-0.5.4.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.11 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f51d44856f44f908916ef7f6d19575d12238074af57c6dcc49c002f19a82977
|
|
| MD5 |
1bdd296950b4b1df79199a140424b0a1
|
|
| BLAKE2b-256 |
78962978a2b113f9a88c3eab499c83a3ba8bfa565e4241db30f42c51726be35d
|
File details
Details for the file ngilive-0.5.4-py3-none-any.whl.
File metadata
- Download URL: ngilive-0.5.4-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.11 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
852e348ac21a6cb54ec7bd8c9561a109f3a9ca9d5fc5b8dcd86a0a193d9788f3
|
|
| MD5 |
d6ea9b4c9de7bb96939b921c30e04c8b
|
|
| BLAKE2b-256 |
dce5564e57a66ac0f3a2643d4444b8ce3a6c18b5e01c8cc23873198e4bd21e16
|