Skip to main content

Python tools for analyzing the European gas system

Project description

Documentation License

eurogastp - Python tools for analyzing the European gas system

Description and features

This Python package facilitates downloading and processing data from the following transparency platforms (TPs):

In the case of the ENTSOG TP, the package does not only help with merely downloading the data, but also with further processing it. The different functions allow for

  • periodizing and re-indexing (resampling the data with "gas days" as fixed frequency),
  • selecting and filtering (selecting the data of interest), and
  • aggregating (computing the sum over several data of interest) the data. Due to the nature of the data and the format it comes in (what ENTSOG calls the "compact" format), these steps are often required for making best use of the data. In the case of the two GIE TPs, the data is far less complex and those extra steps are not required. It is easy enough to combine data from the GIE TPs with the (periodized and reindexed) data from the ENTSOG TP.

The package makes use of the Pandas package, thus results of the function calls are usually Pandas DataFrames.

Quick start

We suggest to use pip to install eurogastp into your preferred Python environment:

pip install eurogastp

If you want to download the very latest version from GitLab for use or development purposes, you can of course also clone the repository directly using Git:

git clone https://code.europa.eu/jrc-energy-security/eurogastp.git

In that case, you have to make sure that the newly created folder "eurogastp" is added to your PYTHONPATH, so that you can import eurogastp inside your preferred Python environment.

For development and application we have used the Anaconda Python Distribution and Python 3.8 on Windows 10. However, it should also work within other Python environments.

To start off, there is a Jupyter notebook with a full example in the Examples directory that you can follow along.

Dependencies

eurogastp depends on the following 3rd-party Python packages:

pandas -> BSD-3-Clause Licence

numpy -> BSD-3-Clause Licence

requests -> Apache 2.0 Licence

tqdm -> MIT License

Python -> Python Software Foundation (PSF) License Agreement

openpyxl -> MIT License

pytables -> BSD 3-Clause License

eurogastp does not contain any code from these packages, neither in original nor in modified form. They are merely software dependencies for the user to run eurogastp on her own machine.

More details about the licenses of the 3rd-party software can be found in the attached Notice.txt.

Copyright notice

Copyright (C) 2022 European Union

Licensed under the EUPL, Version 1.2 or – as soon they will be approved by the European Commission – subsequent versions of the EUPL (the "Licence"); You may not use this work except in compliance with the Licence. You may obtain a copy of the Licence at:

https://joinup.ec.europa.eu/software/page/eupl5

Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Licence for the specific language governing permissions and limitations under the Licence.

Main developers

This software was initially developed by staff of the Joint Research Centre (JRC) of the European Commission (EC), Petten, Netherlands.

Initial contributors are:

How to contribute

For ways to contribute please refer to the separate document contributing.md.

References

Jung, D., Vuillaume, J., Fernandez Blanco Carramolino, R., Filipe Calisto, H., Rodriguez Gomez, N. and Bolado Lavin, R., Tools for analysing the European natural gas system with public data – The Python package eurogastp, EUR 31281 EN, Publications Office of the European Union, Luxembourg, 2022, ISBN 978-92-76-58764-4, doi:10.2760/153669, JRC130771; https://publications.jrc.ec.europa.eu/repository/handle/JRC130771.

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

eurogastp-0.1.3.tar.gz (534.8 kB view details)

Uploaded Source

Built Distribution

eurogastp-0.1.3-py3-none-any.whl (420.9 kB view details)

Uploaded Python 3

File details

Details for the file eurogastp-0.1.3.tar.gz.

File metadata

  • Download URL: eurogastp-0.1.3.tar.gz
  • Upload date:
  • Size: 534.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for eurogastp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4424563c3dbe0540e32ddf68c276a24f29537bcd9c5aaf314b78e2793371c5c4
MD5 56395bea9e14da6573536a4289952447
BLAKE2b-256 8da8ac6cb5199f1dc680049a36277984e8c2d9e073fc311002cf4ef270502e8c

See more details on using hashes here.

File details

Details for the file eurogastp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: eurogastp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 420.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for eurogastp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e731d5956417edd161bbf0e7f3fa6c9ba2d245ea9f2e28ec6f1ce9186e638c95
MD5 8f54fd40b5adb75975362acaa8f90117
BLAKE2b-256 00579ed6b817ec71403e67ff6b4154e5a577d93aeefccd8c45d739b80f3dd058

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