PyNINA


NamePyNINA JSON
Version 0.3.4 PyPI version JSON
download
home_pagehttps://gitlab.com/DeerMaximum/pynina
SummaryA Python API wrapper to retrieve warnings from the german NINA app.
upload_time2024-11-20 16:36:16
maintainerNone
docs_urlNone
authorDeerMaximum
requires_pythonNone
licenseMIT License Copyright (c) 2021 DeerMaximum Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.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()
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/DeerMaximum/pynina",
    "name": "PyNINA",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "DeerMaximum",
    "author_email": "git983456@parabelmail.de",
    "download_url": "https://files.pythonhosted.org/packages/a2/4e/9c69bfa041ae37a963c249748659e1a979fe78a5e2549cc9c0fad3db9f49/PyNINA-0.3.4.tar.gz",
    "platform": null,
    "description": "# Nina-API\nA Python API wrapper to retrieve warnings from the german NINA app.\n\n## How to use package\n\n```python\nimport asyncio\n\nfrom pynina import Nina, ApiError\n\n\nasync def main():\n    try:\n        n: Nina = Nina()\n        n.addRegion(\"146270000000\")\n        await n.update()\n    \n        for i in n.warnings[\"146270000000\"]:\n            print(i)\n            print(i.isValid())\n\n    except ApiError as error:\n        print(f\"Error: {error}\")\n\nloop = asyncio.get_event_loop()\nloop.run_until_complete(main())\nloop.close()\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2021 DeerMaximum  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "A Python API wrapper to retrieve warnings from the german NINA app.",
    "version": "0.3.4",
    "project_urls": {
        "Homepage": "https://gitlab.com/DeerMaximum/pynina"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "41979fcafbecd69cfe5e7de29fb0ec90cd2ddb68f3c028ebbf4e87eee3e67214",
                "md5": "8769bc7663c9447d2480cf2d01850a17",
                "sha256": "036cfc4eb2d2a2d5f84701fb156b9ac04925a88622fa462ff51f831cb0ca0222"
            },
            "downloads": -1,
            "filename": "PyNINA-0.3.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8769bc7663c9447d2480cf2d01850a17",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10299,
            "upload_time": "2024-11-20T16:36:15",
            "upload_time_iso_8601": "2024-11-20T16:36:15.807796Z",
            "url": "https://files.pythonhosted.org/packages/41/97/9fcafbecd69cfe5e7de29fb0ec90cd2ddb68f3c028ebbf4e87eee3e67214/PyNINA-0.3.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a24e9c69bfa041ae37a963c249748659e1a979fe78a5e2549cc9c0fad3db9f49",
                "md5": "c309edc06007d95ac3a8332f96ec11ff",
                "sha256": "fc1793d397473c77eac9bb25cb44146c13c5149284afaeef1b5c5b05f65742e6"
            },
            "downloads": -1,
            "filename": "PyNINA-0.3.4.tar.gz",
            "has_sig": false,
            "md5_digest": "c309edc06007d95ac3a8332f96ec11ff",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8523,
            "upload_time": "2024-11-20T16:36:16",
            "upload_time_iso_8601": "2024-11-20T16:36:16.763689Z",
            "url": "https://files.pythonhosted.org/packages/a2/4e/9c69bfa041ae37a963c249748659e1a979fe78a5e2549cc9c0fad3db9f49/PyNINA-0.3.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-20 16:36:16",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "DeerMaximum",
    "gitlab_project": "pynina",
    "lcname": "pynina"
}
        
Elapsed time: 0.32381s