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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gas_station_spain_api-1.2.tar.gz
Algorithm Hash digest
SHA256 aeeff94d38c54c4040a8ca99f8824a3d4b20bbc301e9cf69faef2722747ef1f7
MD5 2fca4700b205ef2d3adbdbe97785d667
BLAKE2b-256 9547d79935934e09c6fcfc6774352a40fedf7831469253ce6c1631650f86aaa2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gas_station_spain_api-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5f3548bb13b54851644536f8d4faa0c8a24a880c1d34bab52ba5dd45268db3a5
MD5 ecee00702f4552985c48f3a9c7e7557a
BLAKE2b-256 4ee7a2451a4e3b24c2c07e34f1ed68e154522899e4b87d6ce33af75b89da5bfe

See more details on using hashes here.

Provenance

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