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.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()

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-1.0.2.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pynina-1.0.2-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file pynina-1.0.2.tar.gz.

File metadata

  • Download URL: pynina-1.0.2.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.22

File hashes

Hashes for pynina-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ca96dfbe15cabb8a4aaff0eb5859c0870328a92849cd62ea940eff610cc9f6be
MD5 4b007564e3fd4f9577fe7649720331a8
BLAKE2b-256 f0aa6f8b7f5481993e7594c085efddc98b26483b127bda0256a4745a83d8c8e0

See more details on using hashes here.

File details

Details for the file pynina-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pynina-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.22

File hashes

Hashes for pynina-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4329edbc4aadca7a132e2de9eea2730775c60822d3055724654f9db53c785e96
MD5 a39ff535900867bfe79456d6ab661cf2
BLAKE2b-256 36a10b55d0227b8c46fd5aa17ec6a6dc3ed299add3099d4d075b96fce399d44d

See more details on using hashes here.

Supported by

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