Statnett API Client
Project description
Statnett API Client
Client presents methods for reading real-time Nordic power balance data provided by the Norwegian Transmission System Operator (statnett.no).
The full list of topics accessible via Statnett REST API can be seen here.
Client supports reading of the following data:
Installation
To install the Client, simply use pip:
$ pip install statnett_api_client
Client initialization
Firstly, you need to initialize the client. By default, it will return data in json format.
You can specify fmt
parameter to receive data as pandas dataframe.
from statnett_api_client import Client
# this client will return json array
client = Client()
# this client will return pandas dataframe
client = Client(fmt='pandas')
# this client will return pandas dataframe with datetime index
client = Client(fmt='pandas', date2index=True)
By default, the time is in UTC. To add a column with Central European Time (CET),
you need to specify time_cet
parameter.
client = Client(fmt='pandas', time_cet=True)
Reading data
After you have set the client, you can read data from supported topics.
# read power flow
flow = client.get('flow')
# read power balance
balance = client.get('balance')
License
The Client is released under MIT License.
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
Built Distribution
Hashes for statnett-api-client-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8f734d147428a5de30ac019eedfcc21f00ed88e2d35950ad372d41d1b4bb350 |
|
MD5 | 5dd8e6670b639d8bf51d92896aed27dc |
|
BLAKE2b-256 | ba83e08b9523bf1250edaeab85923c11d2c1ff07a8bdfadb76b7349792677023 |
Hashes for statnett_api_client-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3220baa080e0ab57e4404db36fb237f60f0c5e2423a61185017947ce3f9a155a |
|
MD5 | 59ae5bdb4007e06883cd1fb48240991a |
|
BLAKE2b-256 | ba20b3d1bf1e269d822b6c841265568c0ee0be499a150f2f0690155060765896 |