Skip to main content

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


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.3.3.tar.gz (8.5 kB view hashes)

Uploaded Source

Built Distribution

PyNINA-0.3.3-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page