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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
101b757964ee314f818b2946f3fa46cc8aa0a46b85c5b622607bbf673ac8a262
|
|
| MD5 |
9aa6fc12c21da7cdeecde0427c6ba64d
|
|
| BLAKE2b-256 |
b1f5ec5f35a691265629936772d8ec56706abdac08c72d701e51b8961c3db588
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gas_station_spain_api-1.4.0.tar.gz -
Subject digest:
101b757964ee314f818b2946f3fa46cc8aa0a46b85c5b622607bbf673ac8a262 - Sigstore transparency entry: 1215588328
- Sigstore integration time:
-
Permalink:
MiguelAngelLV/python-gas-station-spain@295a3506d8101098ff74c2d6d7fc960d33a6cb1d -
Branch / Tag:
refs/tags/V1.4 - Owner: https://github.com/MiguelAngelLV
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@295a3506d8101098ff74c2d6d7fc960d33a6cb1d -
Trigger Event:
release
-
Statement type:
File details
Details for the file gas_station_spain_api-1.4.0-py3-none-any.whl.
File metadata
- Download URL: gas_station_spain_api-1.4.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c4240ba0d4bb57b2ee1155c183c4f1684426f281b18e4237aff0ca309ba0c0c
|
|
| MD5 |
97f651ccf5940c81dea4cfa40aefba94
|
|
| BLAKE2b-256 |
5e7ad7f04a80a76d6b8ecdad26422587a65e634f8ea322815b05def6137ddbba
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gas_station_spain_api-1.4.0-py3-none-any.whl -
Subject digest:
2c4240ba0d4bb57b2ee1155c183c4f1684426f281b18e4237aff0ca309ba0c0c - Sigstore transparency entry: 1215588368
- Sigstore integration time:
-
Permalink:
MiguelAngelLV/python-gas-station-spain@295a3506d8101098ff74c2d6d7fc960d33a6cb1d -
Branch / Tag:
refs/tags/V1.4 - Owner: https://github.com/MiguelAngelLV
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@295a3506d8101098ff74c2d6d7fc960d33a6cb1d -
Trigger Event:
release
-
Statement type: