Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

canairy

Python client for public air-quality APIs: Umweltbundesamt (UBA) and Hamburger Luftmessnetz.

Example 1

Use data from the Umwelt Bundesamt (UBA)

from datetime import datetime

from canairy.uba import UBAClient
import polars as pl


client = UBAClient()

# plot hourly NO2 values measured at station 'DENW124' between January and February 2019 
rsp = client.get_measures(
    datetime(2019, 1, 1, 0, 0),
    datetime(2019, 2, 1, 0, 0),
    "DENW134",
    5,
    2
)
df = pl.DataFrame(rsp.data)
df.plot.line(x='date_start', y='value').properties(width=600)

Example 2

Use data from the Hamburger Luftmessnetz

Display monthly PM10 data.

import canairy.hh as hh
import polars as pl


client = hh.HHClient()

res = client.get_component_data("pm10_1m")
res = pl.DataFrame(res)

res.plot.line(x='datetime', y='value', color='station').properties(width=800, height=400)

Metadata

Release files for canairy 0.3.0rc1

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

Source distribution (sdist)

Source distribution for canairy 0.3.0rc1
File Size Uploaded Provenance Actions
canairy-0.3.0rc1.tar.gz 12.9 kB Without provenance Details for canairy-0.3.0rc1.tar.gz

Built distribution (wheel)

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

Total release size: 31.2 kB

Release files / canairy-0.3.0rc1.tar.gz

Download URL canairy-0.3.0rc1.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
51b4f0c39ec785e2a0b3e9826a3a04eebb5bbd163da12989eecb3570d1508d63
BLAKE2b-256 checksum
How to use checksums
1c55c0dfc89a1a3b08476054619c25284fd9166cbe45b726f8d4c7da15721dc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Release files / canairy-0.3.0rc1-py3-none-any.whl

Download URL canairy-0.3.0rc1-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eac6a065fd31c317f21e08cabf48487bcebd56c3418caa9fe5ab6ca1cbd11bdc
BLAKE2b-256 checksum
How to use checksums
29011bb00529c2b9cb0000f8962ca9499edc44db91121b200a3edeaec9571d59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Security for canairy 0.3.0rc1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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