Skip to main content

A python library for retrieving and parsing air quality data from the CHMI opendata portal.

Project description

czech_air_quality

This library provides a python client for simply retrieving and processing air quality data from the CHMI OpenData portal, that provides data hourly.

It also contains the optional logic for automatically picking closest weather station to a location via Nominatim, automatically fetching multiple close stations to get measurements of all pollutants, caching, and a EAQI calculation

PyPI - Version PyPI - Downloads PyPI - Typing


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.0.tar.gz (29.9 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.0-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for czech_air_quality-2.0.0.tar.gz
Algorithm Hash digest
SHA256 5d70d82a1682cf58c872dd797cdf9d85f8289fa35f9f92cf525ee2de718da859
MD5 ae87629f0ec4fc5c9787b38e6f4c0d25
BLAKE2b-256 28be84b64da13d1cac027093223eeced7433d6500eb7c79f17401f06fb4a06be

See more details on using hashes here.

Provenance

The following attestation bundles were made for czech_air_quality-2.0.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for czech_air_quality-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c53d7e386f59b6a87aed110b462be14fe8d72386149b5cfc6eac4262f948d23
MD5 b2911f1d91e569ac5762d4ad428b09da
BLAKE2b-256 b7ce95897992958cef3e0047af791fb4d48eaef5bac4d7a7eda951f0ebd13c64

See more details on using hashes here.

Provenance

The following attestation bundles were made for czech_air_quality-2.0.0-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