Skip to main content

Simple interface for GME Web API

Project description

GME Web API

Simple Interface to use the GME Web Api programmatically

As the GME does not provide a public API to access data, I've made this library to allow the use of the web facing API used by the site to retrieve the values for various energy prices.

It may be subject to changes and the mechanism used for auth by the site could change anytime.

For now this has the package "requests" as the only dependency, this could be removed by using the built-in urllib3 module, but it's much more cumbersome to use, so that's it, if you don't like it, contributions are welcome!

Usage is pretty basic.
import the package, initialize the api, get prices

everything apart the dates are type checked and enumerated trough classes so just check the source to get the options for the parameters, default to today pun with 15m prices.

it should be a package on pypi but i had no time for that yet, so you'll need to use this as a repo dependency if you want to use it programmatically.

import gmewebapi
#or
#from src import gmewebapi 
#if using locally from venv


gme = gmewebapi.GME()
gme.initialize()
gme.getPrice(20260620, 20260621, Granularita, Mercato, Zona, Tipologia)

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

gmewebapi-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gmewebapi-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file gmewebapi-0.1.1.tar.gz.

File metadata

  • Download URL: gmewebapi-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.20

File hashes

Hashes for gmewebapi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7f0fc77d020fd4e251ede0e4180811d145ebf5abbaab3efea7c2020edc4b782d
MD5 5b0a8c6c3ecc0775d0f145268e1efd8a
BLAKE2b-256 182e03a7f3914f9f96009f9a1ad5317b7f8d10e34c646adaa52d70835ce32913

See more details on using hashes here.

File details

Details for the file gmewebapi-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gmewebapi-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.20

File hashes

Hashes for gmewebapi-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 29ee3650ce78596b7fd0bc3998df8778f2585740e2cd57a22615a073fbae1144
MD5 35d58fd8ca86d5226949e19752123356
BLAKE2b-256 6f583c1c1f126ccce3dc64e1e60dde816fa4a5f92cca274c52777dcd92fc32ff

See more details on using hashes here.

Supported by

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