Skip to main content

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

import aiohttp
import asyncio
from swisshydrodata import SwissHydroData


async def main():
    async with aiohttp.ClientSession() as session:
        shd = SwissHydroData(session)
        # returns a list of station numbers
        data = await shd.async_get_stations()
        print(data)

        # returns all data available for station #2143
        data = await shd.async_get_station(2143)
        print(data)

asyncio.run(main())

Metadata

Release files for swisshydrodata 0.3.1

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

Source distribution (sdist)

Source distribution for swisshydrodata 0.3.1
File Size Uploaded Provenance
swisshydrodata-0.3.1.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for swisshydrodata 0.3.1
File Interpreter ABI Platform
swisshydrodata-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / swisshydrodata-0.3.1.tar.gz

Download URL swisshydrodata-0.3.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d278f15bc08d8236cfb9a105a7df16c8a792acae038d51e65f020becebe0f515
BLAKE2b-256 checksum
How to use checksums
0a163dca70c57fa6c01d34e057caaf5d6263cedbd8e5aedc1092d087e20ad8ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / swisshydrodata-0.3.1-py3-none-any.whl

Download URL swisshydrodata-0.3.1-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c47ad350a2172e6d36604fcdbaf6be3f875022b37c09d27c2aaf14f88ca5e513
BLAKE2b-256 checksum
How to use checksums
a94b6d592678a6d72bb6e1b70fd112681e2c23cd7feb701b6a14922a29518524
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Security for swisshydrodata 0.3.1

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.

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