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
Installation
pip install czech_air_quality
Requirements:
Python3.10+requests>= 2.28.0geopy>= 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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d70d82a1682cf58c872dd797cdf9d85f8289fa35f9f92cf525ee2de718da859
|
|
| MD5 |
ae87629f0ec4fc5c9787b38e6f4c0d25
|
|
| BLAKE2b-256 |
28be84b64da13d1cac027093223eeced7433d6500eb7c79f17401f06fb4a06be
|
Provenance
The following attestation bundles were made for czech_air_quality-2.0.0.tar.gz:
Publisher:
publish.yml on chickendrop89/czech_air_quality
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
czech_air_quality-2.0.0.tar.gz -
Subject digest:
5d70d82a1682cf58c872dd797cdf9d85f8289fa35f9f92cf525ee2de718da859 - Sigstore transparency entry: 747436092
- Sigstore integration time:
-
Permalink:
chickendrop89/czech_air_quality@05a21ea07b25008a62b94d19b6bd09a36fec3085 -
Branch / Tag:
refs/tags/2.0.0 - Owner: https://github.com/chickendrop89
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@05a21ea07b25008a62b94d19b6bd09a36fec3085 -
Trigger Event:
release
-
Statement type:
File details
Details for the file czech_air_quality-2.0.0-py3-none-any.whl.
File metadata
- Download URL: czech_air_quality-2.0.0-py3-none-any.whl
- Upload date:
- Size: 27.3 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 |
6c53d7e386f59b6a87aed110b462be14fe8d72386149b5cfc6eac4262f948d23
|
|
| MD5 |
b2911f1d91e569ac5762d4ad428b09da
|
|
| BLAKE2b-256 |
b7ce95897992958cef3e0047af791fb4d48eaef5bac4d7a7eda951f0ebd13c64
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
czech_air_quality-2.0.0-py3-none-any.whl -
Subject digest:
6c53d7e386f59b6a87aed110b462be14fe8d72386149b5cfc6eac4262f948d23 - Sigstore transparency entry: 747436114
- Sigstore integration time:
-
Permalink:
chickendrop89/czech_air_quality@05a21ea07b25008a62b94d19b6bd09a36fec3085 -
Branch / Tag:
refs/tags/2.0.0 - Owner: https://github.com/chickendrop89
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@05a21ea07b25008a62b94d19b6bd09a36fec3085 -
Trigger Event:
release
-
Statement type: