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.5.tar.gz
(4.0 kB
view hashes)
Built Distribution
PyNINA-0.1.5-py3-none-any.whl
(5.6 kB
view hashes)