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.4.0.tar.gz (6.7 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.4.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gas_station_spain_api-1.4.0.tar.gz
  • Upload date:
  • Size: 6.7 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.4.0.tar.gz
Algorithm Hash digest
SHA256 101b757964ee314f818b2946f3fa46cc8aa0a46b85c5b622607bbf673ac8a262
MD5 9aa6fc12c21da7cdeecde0427c6ba64d
BLAKE2b-256 b1f5ec5f35a691265629936772d8ec56706abdac08c72d701e51b8961c3db588

See more details on using hashes here.

Provenance

The following attestation bundles were made for gas_station_spain_api-1.4.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.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gas_station_spain_api-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c4240ba0d4bb57b2ee1155c183c4f1684426f281b18e4237aff0ca309ba0c0c
MD5 97f651ccf5940c81dea4cfa40aefba94
BLAKE2b-256 5e7ad7f04a80a76d6b8ecdad26422587a65e634f8ea322815b05def6137ddbba

See more details on using hashes here.

Provenance

The following attestation bundles were made for gas_station_spain_api-1.4.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