File: system.py

package info (click to toggle)
python-pvo 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 476 kB
  • sloc: python: 440; makefile: 3
file content (20 lines) | stat: -rw-r--r-- 429 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# pylint: disable=W0621
"""Asynchronous client for the PVOutput API."""

import asyncio

from pvo import PVOutput


async def main() -> None:
    """Show example on using the PVOutput API client."""
    async with PVOutput(
        api_key="API_KEY_FROM_PVOUTPUT_ORG",
        system_id=60017,
    ) as pvoutput:
        system = await pvoutput.system()
        print(system)


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