A Python API wrapper to retrieve warnings from the german NINA app.
Project description
Nina-API
A Python API wrapper to retrieve warnings from the german NINA app.
How to use package
import asyncio
from pynina import Nina, ApiError
async def main():
try:
n: Nina = Nina()
n.addRegion("146270000000")
await n.update()
for i in n.warnings["146270000000"]:
print(i)
print(i.isValid())
except ApiError as error:
print(f"Error: {error}")
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
loop.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyNINA-0.1.8.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for PyNINA-0.1.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65c5951c81a42b4babdccc571b55755409cf5b7c06d9afb6a2678d0e34980c0a |
|
MD5 | c0a022d1de379245d90bef16cb99b407 |
|
BLAKE2b-256 | 20c66ca4b5612bbce9dacd52379df714628541b3375759e18762f19fb08e0e51 |