Skip to main content

Obtiene el precio actual del combustible en las distintas gasolineras de España

Project description

Python Gas Station Spain

Descripción

Esta es una biblioteca para obtener el precio actual del combustible en las distintas gasolineras españolas.

Fuente de datos

Los datos son extraídos de de la API oficial del estado: Geoportal Gasolineras.

Desgraciadamente, el servicio no es muy estable y es posible que ocurran errores de conexión

Uso

import gas_station_spain_api as gss

# Obtener listado de provincias
provinces = await gss.get_provinces()

# Obtener listado de municipios
municipalities = await gss.get_municipalities(provinces[0].id)

# Obtener estaciones de una provincia
p1_gas_stations = await gss.get_gas_stations(province_id=provinces[1].id)

# Obtener estaciones de un municipio
m1_gas_stations = await gss.get_gas_stations(provinces[0].id, municipalities[0].id)

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

gas_station_spain_api-1.3.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

gas_station_spain_api-1.3.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file gas_station_spain_api-1.3.0.tar.gz.

File metadata

  • Download URL: gas_station_spain_api-1.3.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gas_station_spain_api-1.3.0.tar.gz
Algorithm Hash digest
SHA256 c114b2d3d15b43ad79a6b82ae306b9e27f460e96f1ac01bb1e59af85644de4ee
MD5 ca5c4ae6d14150e12c266314c587bdfa
BLAKE2b-256 77046d1958129c5149d46cd0e131206fbb85ec7bb3a210cf0c0e9d0fedfdd6f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for gas_station_spain_api-1.3.0.tar.gz:

Publisher: publish.yaml on MiguelAngelLV/python-gas-station-spain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gas_station_spain_api-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gas_station_spain_api-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da49fbec2635c9b1ea12f5fc6a1d406b405b23255e032b6ae9acbfa411449486
MD5 15c965183cc32330289506acf77204d4
BLAKE2b-256 beea40e08b48b8383cfc0427b6cb5ade3a9db357d49d67284e189336c8150fe7

See more details on using hashes here.

Provenance

The following attestation bundles were made for gas_station_spain_api-1.3.0-py3-none-any.whl:

Publisher: publish.yaml on MiguelAngelLV/python-gas-station-spain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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