lhp


Namelhp JSON
Version 0.0.4 PyPI version JSON
download
home_pagehttps://github.com/embeddedfiedel/python-lhp
SummaryAsynchronous client for the Länderübergreifendes Hochwasserportal (LHP) API.
upload_time2023-07-03 11:09:40
maintainerKarsten Bade
docs_urlNone
authorKarsten Bade
requires_python>=3.8,<4.0
licenseMIT
keywords lhp lhp-api api async client
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python: Asynchronous client for the Länderübergreifendes Hochwasserportal (LHP) API.

[![GitHub Release][releases-shield]][releases]
[![Python Versions][python-versions-shield]][pypi]
![Project Stage][project-stage-shield]
![Project Maintenance][maintenance-shield]
[![License][license-shield]](LICENSE.md)

[![Build Status][build-shield]][build]

Asynchronous client for the Länderübergreifendes Hochwasserportal (LHP) API.

## About

Länderübergreifendes Hochwasserportal (LHP) offers free APIs for open-source developers and
non-commercial use. No API key is required. You can start using it immediately!

## Installation

```bash
pip install lhp
```

## Usage

```python
import asyncio

from lhp import LHPClient


async def main():
    """Show example on using the LHP API client."""
    async with LHPClient() as lhp_client:
        currentWaterLevel = await lhp_client.currentwaterlevel(
            pgnr="SH_111015",
        )
        print(currentWaterLevel)


if __name__ == "__main__":
    asyncio.run(main())
```

## Changelog & Releases

This repository keeps a change log using [GitHub's releases][releases]
functionality. The format of the log is based on
[Keep a Changelog][keepchangelog].

Releases are based on [Semantic Versioning][semver], and use the format
of `MAJOR.MINOR.PATCH`. In a nutshell, the version will be incremented
based on the following:

- `MAJOR`: Incompatible or major changes.
- `MINOR`: Backwards-compatible new features and enhancements.
- `PATCH`: Backwards-compatible bugfixes and package updates.

## Contributing

This is an active open-source project. We are always open to people who want to
use the code or contribute to it.

We've set up a separate document for our
[contribution guidelines](CONTRIBUTING.md).

Thank you for being involved! :heart_eyes:

## Setting up development environment

This Python project is fully managed using the [Poetry][poetry] dependency
manager. But also relies on the use of NodeJS for certain checks during
development.

You need at least:

- Python 3.8+
- [Poetry][poetry-install]
- NodeJS 14+ (including NPM)

To install all packages, including all development requirements:

```bash
npm install
poetry install
```

As this repository uses the [pre-commit][pre-commit] framework, all changes
are linted and tested with each commit. You can run all checks and tests
manually, using the following command:

```bash
poetry run pre-commit run --all-files
```

To run just the Python tests:

```bash
poetry run pytest
```

## Authors & contributors

The original setup of this repository is by [EmbeddedFiedel].

For a full list of all authors and contributors,
check [the contributor's page][contributors].

## License

MIT License

Copyright (c) 2023 EmbeddedFiedel

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.

[build-shield]: https://github.com/embeddedfiedel/python-lhp/actions/workflows/tests.yaml/badge.svg
[build]: https://github.com/embeddedfiedel/python-lhp/actions/workflows/tests.yaml
[code-quality-shield]: https://img.shields.io/lgtm/grade/python/g/embeddedfiedel/python-lhp.svg?logo=lgtm&logoWidth=18
[code-quality]: https://lgtm.com/projects/g/embeddedfiedel/python-lhp/context:python
[codecov-shield]: https://codecov.io/gh/embeddedfiedel/python-lhp/branch/master/graph/badge.svg
[codecov]: https://codecov.io/gh/embeddedfiedel/python-lhp
[contributors]: https://github.com/embeddedfiedel/python-lhp/graphs/contributors
[embeddedfiedel]: https://github.com/embeddedfiedel
[keepchangelog]: http://keepachangelog.com/en/1.0.0/
[license-shield]: https://img.shields.io/github/license/embeddedfiedel/python-lhp.svg
[maintenance-shield]: https://img.shields.io/badge/maintained-yes-brightgreen.svg
[poetry-install]: https://python-poetry.org/docs/#installation
[poetry]: https://python-poetry.org
[pre-commit]: https://pre-commit.com/
[project-stage-shield]: https://img.shields.io/badge/Project%20Stage-Concept-red.svg
[pypi]: https://pypi.org/project/lhp/
[python-versions-shield]: https://img.shields.io/pypi/pyversions/lhp
[releases-shield]: https://img.shields.io/github/release/embeddedfiedel/python-lhp.svg
[releases]: https://github.com/embeddedfiedel/python-lhp/releases
[semver]: http://semver.org/spec/v2.0.0.html

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/embeddedfiedel/python-lhp",
    "name": "lhp",
    "maintainer": "Karsten Bade",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "karsten@bade.dev",
    "keywords": "lhp,lhp-api,api,async,client",
    "author": "Karsten Bade",
    "author_email": "karsten@bade.dev",
    "download_url": "https://files.pythonhosted.org/packages/ca/1c/37f99a132f962f92c016c76811ea0418cbd57fa18440443e7b8e5b21acc2/lhp-0.0.4.tar.gz",
    "platform": null,
    "description": "# Python: Asynchronous client for the L\u00e4nder\u00fcbergreifendes Hochwasserportal (LHP) API.\n\n[![GitHub Release][releases-shield]][releases]\n[![Python Versions][python-versions-shield]][pypi]\n![Project Stage][project-stage-shield]\n![Project Maintenance][maintenance-shield]\n[![License][license-shield]](LICENSE.md)\n\n[![Build Status][build-shield]][build]\n\nAsynchronous client for the L\u00e4nder\u00fcbergreifendes Hochwasserportal (LHP) API.\n\n## About\n\nL\u00e4nder\u00fcbergreifendes Hochwasserportal (LHP) offers free APIs for open-source developers and\nnon-commercial use. No API key is required. You can start using it immediately!\n\n## Installation\n\n```bash\npip install lhp\n```\n\n## Usage\n\n```python\nimport asyncio\n\nfrom lhp import LHPClient\n\n\nasync def main():\n    \"\"\"Show example on using the LHP API client.\"\"\"\n    async with LHPClient() as lhp_client:\n        currentWaterLevel = await lhp_client.currentwaterlevel(\n            pgnr=\"SH_111015\",\n        )\n        print(currentWaterLevel)\n\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\n## Changelog & Releases\n\nThis repository keeps a change log using [GitHub's releases][releases]\nfunctionality. The format of the log is based on\n[Keep a Changelog][keepchangelog].\n\nReleases are based on [Semantic Versioning][semver], and use the format\nof `MAJOR.MINOR.PATCH`. In a nutshell, the version will be incremented\nbased on the following:\n\n- `MAJOR`: Incompatible or major changes.\n- `MINOR`: Backwards-compatible new features and enhancements.\n- `PATCH`: Backwards-compatible bugfixes and package updates.\n\n## Contributing\n\nThis is an active open-source project. We are always open to people who want to\nuse the code or contribute to it.\n\nWe've set up a separate document for our\n[contribution guidelines](CONTRIBUTING.md).\n\nThank you for being involved! :heart_eyes:\n\n## Setting up development environment\n\nThis Python project is fully managed using the [Poetry][poetry] dependency\nmanager. But also relies on the use of NodeJS for certain checks during\ndevelopment.\n\nYou need at least:\n\n- Python 3.8+\n- [Poetry][poetry-install]\n- NodeJS 14+ (including NPM)\n\nTo install all packages, including all development requirements:\n\n```bash\nnpm install\npoetry install\n```\n\nAs this repository uses the [pre-commit][pre-commit] framework, all changes\nare linted and tested with each commit. You can run all checks and tests\nmanually, using the following command:\n\n```bash\npoetry run pre-commit run --all-files\n```\n\nTo run just the Python tests:\n\n```bash\npoetry run pytest\n```\n\n## Authors & contributors\n\nThe original setup of this repository is by [EmbeddedFiedel].\n\nFor a full list of all authors and contributors,\ncheck [the contributor's page][contributors].\n\n## License\n\nMIT License\n\nCopyright (c) 2023 EmbeddedFiedel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n[build-shield]: https://github.com/embeddedfiedel/python-lhp/actions/workflows/tests.yaml/badge.svg\n[build]: https://github.com/embeddedfiedel/python-lhp/actions/workflows/tests.yaml\n[code-quality-shield]: https://img.shields.io/lgtm/grade/python/g/embeddedfiedel/python-lhp.svg?logo=lgtm&logoWidth=18\n[code-quality]: https://lgtm.com/projects/g/embeddedfiedel/python-lhp/context:python\n[codecov-shield]: https://codecov.io/gh/embeddedfiedel/python-lhp/branch/master/graph/badge.svg\n[codecov]: https://codecov.io/gh/embeddedfiedel/python-lhp\n[contributors]: https://github.com/embeddedfiedel/python-lhp/graphs/contributors\n[embeddedfiedel]: https://github.com/embeddedfiedel\n[keepchangelog]: http://keepachangelog.com/en/1.0.0/\n[license-shield]: https://img.shields.io/github/license/embeddedfiedel/python-lhp.svg\n[maintenance-shield]: https://img.shields.io/badge/maintained-yes-brightgreen.svg\n[poetry-install]: https://python-poetry.org/docs/#installation\n[poetry]: https://python-poetry.org\n[pre-commit]: https://pre-commit.com/\n[project-stage-shield]: https://img.shields.io/badge/Project%20Stage-Concept-red.svg\n[pypi]: https://pypi.org/project/lhp/\n[python-versions-shield]: https://img.shields.io/pypi/pyversions/lhp\n[releases-shield]: https://img.shields.io/github/release/embeddedfiedel/python-lhp.svg\n[releases]: https://github.com/embeddedfiedel/python-lhp/releases\n[semver]: http://semver.org/spec/v2.0.0.html\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Asynchronous client for the L\u00e4nder\u00fcbergreifendes Hochwasserportal (LHP) API.",
    "version": "0.0.4",
    "project_urls": {
        "Bug Tracker": "https://github.com/embeddedfiedel/python-lhp/issues",
        "Changelog": "https://github.com/embeddedfiedel/python-lhp/releases",
        "Documentation": "https://github.com/embeddedfiedel/python-lhp",
        "Homepage": "https://github.com/embeddedfiedel/python-lhp",
        "Repository": "https://github.com/embeddedfiedel/python-lhp"
    },
    "split_keywords": [
        "lhp",
        "lhp-api",
        "api",
        "async",
        "client"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0f35e98dfe468ed293418156056c8f5f7498f814cd0d1b9d132fb3814d0dbfe0",
                "md5": "84bce9aa4fbbaf3b5c0489ad1e742ebe",
                "sha256": "4630b467834439f11ff584909a48fe10d14b5ce86a8b46bc13a0a2961ddbe662"
            },
            "downloads": -1,
            "filename": "lhp-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "84bce9aa4fbbaf3b5c0489ad1e742ebe",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 7888,
            "upload_time": "2023-07-03T11:09:38",
            "upload_time_iso_8601": "2023-07-03T11:09:38.930910Z",
            "url": "https://files.pythonhosted.org/packages/0f/35/e98dfe468ed293418156056c8f5f7498f814cd0d1b9d132fb3814d0dbfe0/lhp-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ca1c37f99a132f962f92c016c76811ea0418cbd57fa18440443e7b8e5b21acc2",
                "md5": "48d8a7aa51e1462c7b578a808080f0bf",
                "sha256": "55929b753073135d9793067098df3dfd78efe59c0653c58a2e455ade70cc52d4"
            },
            "downloads": -1,
            "filename": "lhp-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "48d8a7aa51e1462c7b578a808080f0bf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 6470,
            "upload_time": "2023-07-03T11:09:40",
            "upload_time_iso_8601": "2023-07-03T11:09:40.549615Z",
            "url": "https://files.pythonhosted.org/packages/ca/1c/37f99a132f962f92c016c76811ea0418cbd57fa18440443e7b8e5b21acc2/lhp-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-03 11:09:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "embeddedfiedel",
    "github_project": "python-lhp",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "lhp"
}
        
Elapsed time: 0.22981s