Open Data BZ Meteo - API Client
Python API client for the "Open Meteo Data V1" service, provided by Provincia autonoma di Bolzano - Informatica Alto Adige SPA. The API documentation can be found here.
Core classes
Client
Main entrypoint to the API.
get_stations()fetches all stations and caches them on the client.get_station(station_code)looks up a single station by code (refreshes cache).get_sensors(station)fetches sensors for a given station.get_sensor(station, sensor_type)fetches a single sensor and raisesValueErrorif not found.
Station
- Represents a station with location data (
latitude,longitude,altitude) and localized names (name_deu,name_eng,name_ita,name_lld). sensor_types: sensor types available at this station.get_sensor(sensor_type): returns the first matching sensor orNone.
Sensor
- Represents a single sensor reading with
type,unit,value, anddate. parsed_datetime: computeddatetimeparsed from the rawdatestring.- Localized description (
description_deu,description_ita,description_lld).
Usage
from open_data_bz_meteo import Client
client = Client(timeout=5)
# List available stations
stations = client.get_stations()
print(stations[0].name_eng, stations[0].latitude)
# Fetch sensors for a single station
station = stations[0]
station.sensors = client.get_sensors(station)
print([s.type for s in station.sensors])
# Fetch a single sensor by type
sensor = client.get_sensor(station, "WT")
print(sensor.value, sensor.unit)
Metadata
Release files for open-data-bz-meteo 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| open_data_bz_meteo-1.0.0.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| open_data_bz_meteo-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / open_data_bz_meteo-1.0.0.tar.gz
| Download URL | open_data_bz_meteo-1.0.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9ca91aa85a1ac09d65fcba5c96382331195e97d2a10ac4b92711bc86b9a8eec
|
|
BLAKE2b-256 checksum How to use checksums |
57994b8b98fd8276ded31c34154e3154c69da185dfb0a3433977d3c37aebcd2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / open_data_bz_meteo-1.0.0-py3-none-any.whl
| Download URL | open_data_bz_meteo-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd561392650cdb06ed3e50c5b4a2485572b672506a779e7d4f36a77722473824
|
|
BLAKE2b-256 checksum How to use checksums |
fc8c10ab11522e82ee04894eea77a40f8633c3c35ca8e0516fe72ef5eef8afe4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|