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.2.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

swisshydrodata-0.2.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file swisshydrodata-0.2.1.tar.gz.

File metadata

  • Download URL: swisshydrodata-0.2.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for swisshydrodata-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e5dfd9d867c79a5aa52025df8ed291fea0b5290f19bf3eb30390b91acb0b2eb1
MD5 22db35d6534507f7f43ef8ef52b005e8
BLAKE2b-256 56a35f53d42b9f6ced1ed0895607764d1933962694a0fe8e81cb98e9b58e4952

See more details on using hashes here.

File details

Details for the file swisshydrodata-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for swisshydrodata-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ddb96ddc885e0bd254b1d3b1a9411005b91a7ca00c66f0d99284da05e3565da8
MD5 9c6402cfc7aef5b71ea13908770cb8bf
BLAKE2b-256 db158749b9ab985f907d550f3939458e147021898012cb6e17063770c8716d47

See more details on using hashes here.

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