Skip to main content

Python API client for the open meteo data V1 service, provided by Provincia autonoma di Bolzano - Informatica Alto Adige SPA.

Project description

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 raises ValueError if 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 or None.

Sensor

  • Represents a single sensor reading with type, unit, value, and date.
  • parsed_datetime: computed datetime parsed from the raw date string.
  • 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)

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

open_data_bz_meteo-1.0.0a1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

open_data_bz_meteo-1.0.0a1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file open_data_bz_meteo-1.0.0a1.tar.gz.

File metadata

  • Download URL: open_data_bz_meteo-1.0.0a1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for open_data_bz_meteo-1.0.0a1.tar.gz
Algorithm Hash digest
SHA256 235b0e53783c5a55592ad56787d924f04c347a22875adb33bfdec3f7fc8eb529
MD5 8efaeb1359c20e9c44b08553abd58106
BLAKE2b-256 abb85292f45b9b96b13668188c435413dfecc0c012db73fcae626b5f044d431c

See more details on using hashes here.

File details

Details for the file open_data_bz_meteo-1.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for open_data_bz_meteo-1.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 04cef7708c1c695d96bb1b5ddccb673b667fe95e7b9a8b090399ebce4513bbb8
MD5 f803623a8c1111cadb1f3a5aeb9b866c
BLAKE2b-256 beff3b2f33666712d9f81ea1799020998e79c969f8206a3f12d231e2470dd1e1

See more details on using hashes here.

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