Skip to main content

aioprecioscarburantes

Async Python client for Spanish fuel prices, from the Spanish Ministry's official PreciosCarburantes REST service (the data behind Geoportal Gasolineras). No API key needed. Prices are updated every 30 minutes.

import asyncio
from aioprecioscarburantes import FuelType, PreciosCarburantes


async def main() -> None:
    async with PreciosCarburantes() as client:
        result = await client.get_stations_by_municipality("6139")
        for station in result.stations:
            print(station.brand, station.prices.get(FuelType.DIESEL_A))


asyncio.run(main())

Methods: get_provinces(), get_municipalities(province_id), get_stations_by_municipality(municipality_id), get_stations_by_province(province_id), get_station(municipality_id, station_id). Pass an existing aiohttp.ClientSession to share it.

Metadata

Release files for aioprecioscarburantes 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aioprecioscarburantes 0.1.0
File Size Uploaded Provenance Actions
aioprecioscarburantes-0.1.0.tar.gz 7.4 kB With provenance Details for aioprecioscarburantes-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aioprecioscarburantes 0.1.0
File Interpreter ABI Platform Actions
aioprecioscarburantes-0.1.0-py3-none-any.whl Python 3 none any Details for aioprecioscarburantes-0.1.0-py3-none-any.whl

Total release size: 14.0 kB

Release files / aioprecioscarburantes-0.1.0.tar.gz

Download URL aioprecioscarburantes-0.1.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5d9c982642de1d44c8d4529dec96b3cca4f8c2460bc30e8b8146c8963163f762
BLAKE2b-256 checksum
How to use checksums
13289bb8eb54566ca823a7db3473745a94755af0cce02ef0fd19952ac7992f81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / aioprecioscarburantes-0.1.0-py3-none-any.whl

Download URL aioprecioscarburantes-0.1.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
408b14e9dfc8530bb7e0a9acf6d0bbe6f4358cfa39bce2986129746d376ad591
BLAKE2b-256 checksum
How to use checksums
03774a29a3f2e2b1fee0039e8bebb31f08b3d5232a8b39acf49a8b20d96a7fcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for aioprecioscarburantes 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aioprecioscarburantes-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page