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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for PyNINA-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee1c63475d817ef89803c7f6ac800344cda8874609e5126c91923d4f7b389cb7 |
|
MD5 | a7b60889aa6f3e2a2c4a3cc58478a6ed |
|
BLAKE2b-256 | d1cd28839bbe4a3678ba5bc9b3ede4d37a51d809cb7f821be727976e5d7fcf15 |