Skip to main content

Python library for retrieving and processing current air quality data from the CHMI OpenData portal.

Project description

czech_air_quality

PyPI - Version PyPI - Downloads PyPI - Typing

Python library for retrieving and processing current air quality data from the CHMI OpenData portal, that provides data hourly.

Features:

  • Fetch air quality report/pollutant measurements and EAQI data of a location.
  • Resolve locations to the nearest physical weather station automatically using Nominatim.
  • Ability to automatically fetch multiple close stations to get measurements of all pollutants at a location
  • Caching mechanism

Installation

pip install czech_air_quality

Requirements:

  • Python 3.10+
  • requests >= 2.28.0
  • geopy >= 2.3.0

Quick Start

from czech_air_quality import AirQuality

client = AirQuality()
aqi_level, description = client.get_air_quality_index("Prague")
print(f"AQI: {aqi_level} ({description})")
# Output: "AQI: 3 (Moderate)"

API documentation

References/docs can be found below, this library also supports full typing hints:

https://czech-air-quality.readthedocs.io

Data Source

Data from CHMI (Czech Hydrometeorological Institute) OpenData portal, updated hourly.

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

czech_air_quality-2.0.3.tar.gz (30.4 kB view details)

Uploaded Source

Built Distribution

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

czech_air_quality-2.0.3-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file czech_air_quality-2.0.3.tar.gz.

File metadata

  • Download URL: czech_air_quality-2.0.3.tar.gz
  • Upload date:
  • Size: 30.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for czech_air_quality-2.0.3.tar.gz
Algorithm Hash digest
SHA256 751668e747fd91685d6ee40df41e18d51cd834c73e56b5aa35bf4195d5ea6d53
MD5 036e9aa4bb31d27df41d623a0cf302d1
BLAKE2b-256 3eb0e8ac306528acf3f35ddbb9656d82c4f34f07a3afa503d1ce22b2eaa5cf22

See more details on using hashes here.

Provenance

The following attestation bundles were made for czech_air_quality-2.0.3.tar.gz:

Publisher: publish.yml on chickendrop89/czech_air_quality

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

File details

Details for the file czech_air_quality-2.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for czech_air_quality-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e5b99e21f09e94d24802cd9c2189ea6ff0aea63adb6d677724eeba0f753fce60
MD5 c3c00c843ee6f18d86da76d83d81dff4
BLAKE2b-256 0b91586a10de21778a60785be120aeb283b269f9b333d1741f1d93bf66ad8673

See more details on using hashes here.

Provenance

The following attestation bundles were made for czech_air_quality-2.0.3-py3-none-any.whl:

Publisher: publish.yml on chickendrop89/czech_air_quality

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