Skip to main content

Test codecov Maintainability Library version Supported versions Downloads Formated with Black

aiopegelonline

Asynchronous library to retrieve data from PEGELONLINE.

⚠️ this is in early development state ⚠️

breaking changes may occure at every time

Requirements

  • Python >= 3.9
  • aiohttp

Installation

pip install aiopegelonline

Examples

Get all available measurement stations

import asyncio
import aiohttp
from aiopegelonline import PegelOnline


async def main():
    async with aiohttp.ClientSession() as session:
        pegelonline = PegelOnline(session)
        stations = await pegelonline.async_get_all_stations()
        for uuid, station in stations.items():
            print(f"uuid: {uuid} name: {station.name}")


if __name__ == "__main__":
    asyncio.run(main())

Get current measurement

import asyncio
import aiohttp
from aiopegelonline import PegelOnline


async def main():
    async with aiohttp.ClientSession() as session:
        pegelonline = PegelOnline(session)
        measurements = await pegelonline.async_get_station_measurements("70272185-b2b3-4178-96b8-43bea330dcae")

    for name, data in measurements.as_dict().items():
        if data is None:
            print(f"{name} not provided by measurement station")
        else:
            print(f"{name}: {data.value} {data.uom}")

if __name__ == "__main__":
    asyncio.run(main())

References


You like my work?

Buy Me A Coffee

Metadata

Release files for aiopegelonline 0.1.2

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

Built distribution (wheel)

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

Release files / aiopegelonline-0.1.2-py3-none-any.whl

Download URL aiopegelonline-0.1.2-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab002d89dcb3c60b11ad684775e88d06556777aa0fd8d34ed9f10bead96da10e
BLAKE2b-256 checksum
How to use checksums
b092abaf89af367bcc3b40a5d161e7bdbd715c12c98f2ccbb212f034c083a576
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for aiopegelonline 0.1.2

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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