A python API wrapper for alsi.gie.eu and agsi.gie.eu
Project description
gie-py
Python client for the API endpoints of gie.eu. Both ASGI for gas storage and ALSI for LNG terminals and lso's are supported
Using it requires an api key which you can get by registering an account at the alsi website. API keys are valid for both ASGI and ALSI if you set "access to" to "Both ALSI and AGSI+" when registering or later in account settings.
Installation
python3 -m pip install gie-py
Usage
The package comes with 2 clients:
GieRawClient
: Returns data in its raw format direct from api, a list of dictionariesGiePandasClient
: Returns data parsed as a Pandas DataFrame
Supported methods:
The same for both clients. Each method has same setup for arguments, a string to denominate the target and a start and end parameter which is either a pandas timestamp or a string
query_gas_storage
query_gas_company
query_gas_country
query_lng_terminal
query_lng_lso
query_lng_country
Example
from gie import GiePandasClient
client = GiePandasClient(api_key=<YOUR API KEY>)
df_terminal=client.query_lng_terminal('zeebrugge', start='2020-01-01', end='2022-07-10')
df_lso=client.query_lng_lso('fluxys_lng', start='2020-01-01', end='2022-07-10')
meaning of dataframe columns
For the meaning of the columns in the resulting dataframes please consult the official documentation chapter 2 page 5 and 6
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
File details
Details for the file gie-py-0.4.4.tar.gz
.
File metadata
- Download URL: gie-py-0.4.4.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6711bff21c37cee91ce81f38f6eec10c43f47497c0c22145fc3a91a79ae6551 |
|
MD5 | ef1c7c5ef8dc072b3e4687b5f4cce4fa |
|
BLAKE2b-256 | 33031f9ebc6df3e94baddf6d940e6864114ef9477d94bc1524d822ffef546c9a |
File details
Details for the file gie_py-0.4.4-py3-none-any.whl
.
File metadata
- Download URL: gie_py-0.4.4-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65983d75c33f6f14b3991d7bc63efdcd5abeed1dd1d34d4b725562cdd79a2452 |
|
MD5 | 6d0d1a9b9ae04eacd92b29f8b4f5871d |
|
BLAKE2b-256 | 3fe90009a85a4d4557386a3f60e2365eb290777cddef1f050601f294aaa8bac0 |