Skip to main content

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 dictionaries
  • GiePandasClient: 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gie_py-0.4.5.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

gie_py-0.4.5-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file gie_py-0.4.5.tar.gz.

File metadata

  • Download URL: gie_py-0.4.5.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for gie_py-0.4.5.tar.gz
Algorithm Hash digest
SHA256 d788ed233bad70ef9d309c6f1b2fbdf20b8716153a3d107986740484e24e229f
MD5 f6572481af7815c0ba7afc50a74c6eac
BLAKE2b-256 0651d5b94c5ee9e954f5aafc01b15525e2e048f84b9c63e750b0326ea1dc1dab

See more details on using hashes here.

File details

Details for the file gie_py-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: gie_py-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for gie_py-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c377c3c718487c027f73f6cc40ba13f477714d6f8bee67f1b95778237cd6a5d2
MD5 fe1840da9f4adf358fade1dc80f62b8f
BLAKE2b-256 a56dd6b7fb3405c33ecc44c6c6153c230a587c32192ed5edfd2c260e890776bd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page