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.1.tar.gz (30.0 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.1-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: czech_air_quality-2.0.1.tar.gz
  • Upload date:
  • Size: 30.0 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.1.tar.gz
Algorithm Hash digest
SHA256 913e03e9e1acbb0a2b116adc7d4ba903643ad99efe4f6f1030b0b531f49261e4
MD5 8a7225e77ea9ff90427fa88768f3ce1c
BLAKE2b-256 14c9f4cc5c1f56386044b5067ad83d19d5eca64582881d1847c34f553c5ed8dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for czech_air_quality-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d3d9b6abf239e4df5d6d0f50ef17101c58c6d90c451bed88dd0c1f4b44850e4
MD5 c012699cd51e6ba332cd5f668b6e517e
BLAKE2b-256 a4cbd64291a478f63ae631edae3512131bfc97188c1f9c0a4b2d713e2e377deb

See more details on using hashes here.

Provenance

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