Skip to main content

A library to fetch data from the Swiss federal Office for Environment FEON

Project description

swisshydrodata

swisshydrodata is a library that allow you to get data from the Swiss Federal Office for the Environment FOEN. To find a station near to you, use the list of stations on the FEON website.

The library uses a REST API which hands out the data because the FEON does not allow to use their data service as backend.

The data update interval is limited to onece every 10 minutes by FEON, so thats how often the API has new data available.

Example

from swisshydrodata import SwissHydroData 

s = SwissHydroData()

# returns a list of station numbers
s.get_stations()

# returns all data available for station #2143
s.get_station(2143)

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

swisshydrodata-0.1.0.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

swisshydrodata-0.1.0-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page