Metadata-Version: 2.4 Name: pynina Version: 1.0.2 Summary: A Python API wrapper to retrieve warnings from the german NINA app. Author-email: DeerMaximum Maintainer-email: DeerMaximum License-Expression: MIT Project-URL: homepage, https://gitlab.com/DeerMaximum/pynina Project-URL: repository, https://gitlab.com/DeerMaximum/pynina Keywords: api,wrapper,nina,warning Classifier: Development Status :: 5 - Production/Stable Classifier: Framework :: AsyncIO Classifier: Intended Audience :: Developers Classifier: Intended Audience :: Information Technology Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3.13 Classifier: Topic :: Internet :: WWW/HTTP Classifier: Topic :: Software Development Requires-Python: >=3.13.2 Description-Content-Type: text/markdown License-File: LICENSE Requires-Dist: aiohttp>=3.13.3 Dynamic: license-file # Nina-API A Python API wrapper to retrieve warnings from the german NINA app. ## How to use package ```python import asyncio from pynina import Nina, ApiError async def main(): try: n: Nina = Nina() n.add_region("146270000000") await n.update() for i in n.warnings["146270000000"]: print(i) print(i.is_valid()) except ApiError as error: print(f"Error: {error}") loop = asyncio.get_event_loop() loop.run_until_complete(main()) loop.close() ```