mercati-energetici
Async python library for Italian energy markets
Unofficial wrapper of the GME (Gestore dei Mercati Energetici S.p.A.) APP API. It allows to retrieve prices and volumes traded on the Italian energy markets (electricity, gas and environmental) in a simple and asynchronous way.
Disclaimer
This library is not affiliated with GME (Gestore dei Mercati Energetici S.p.A.) in any way. It is provided as is, without any warranty. By using this library, you agree to the terms of use of GME API, which can be obtained with get_general_conditions() or can be found here. Please, be aware that all the data belongs to GME and can't be used for profit. Also, be aware of the disclaimer from GME retrivable with get_disclaimer().
Example
"""How to get the average price of electricity in Italy (PUN) for a specific date."""
import asyncio
from mercati_energetici import MGP
from datetime import date
async def main():
async with MGP() as mgp:
# By using this library, you agree to the terms of use of GME API
# which can be obtained with:
print(mgp.get_general_conditions())
# Also, be aware of the following disclaimer from GME
print(mgp.get_disclaimer())
# Get PUN price
print("PUN avg: ", await mgp.daily_pun(date(2023, 3, 28)))
if __name__ == "__main__":
asyncio.run(main())
Documentation
The library exposes three low level classes to access the GME API: MercatiElettrici, MercatiGas and MercatiAmbientali. A further class, MGP, offers a higher level interface over the day-ahead electricity market.
Installation
pip install mercati-energetici
Usage
See the documentation for more details.
Metadata
Release files for mercati-energetici 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mercati_energetici-0.1.0.tar.gz | 17.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mercati_energetici-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.1 kB
Release files / mercati_energetici-0.1.0.tar.gz
| Download URL | mercati_energetici-0.1.0.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb03ff14e4deb517d91fac91c1c2ff8742563570036c0d0da8f4f9751df8f3de
|
|
BLAKE2b-256 checksum How to use checksums |
a824e8b4d64ef4333b507cab0b35fd2f997d5e2ac377ea72d3206479965be1de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.10.6 Linux/5.19.0-35-generic
|
Release files / mercati_energetici-0.1.0-py3-none-any.whl
| Download URL | mercati_energetici-0.1.0-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d1c3793f540ea4b8fe4275ab2d9490187d051940e5eef240a12d0e416441ff5
|
|
BLAKE2b-256 checksum How to use checksums |
ad8e212f8069ab9f16046c5c7062bbae62f9a027fc952b15ce6a30e4425b32be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.10.6 Linux/5.19.0-35-generic
|