python-tado-async


Namepython-tado-async JSON
Version 0.1.4 PyPI version JSON
download
home_pagehttps://github.com/erwindouna/python-tado
SummaryAsynchronous Python client for controlling Tado devices.
upload_time2024-07-08 18:33:18
maintainerErwin Douna
docs_urlNone
authorErwin Douna
requires_python<4.0,>=3.12
licenseMIT
keywords tado homeassistant api async client
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python: Asynchronous Python client providing RDW vehicle information

[![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]
[![Code Coverage][codecov-shield]][codecov]
[![Quality Gate Status][sonarcloud-shield]][sonarcloud]
[![Open in Dev Containers][devcontainer-shield]][devcontainer]


Asynchronous Python client to control Tado devices.

## About

This package allows you to control Tado devices from within Python.
Although it can be used as a standalone package, it is current scope is to be used within Home Assistant.
Not all endpoints and features are fully supported.

## Installation

```bash
pip install python-tado
```

## Usage

```python
import asyncio

from tado import Tado


async def main() -> None:
    """Show example on how to use aiohttp.ClientSession."""
    async with Tado("username", "password") as tado:
        await tado.get_devices()


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](.github/CONTRIBUTING.md).

Thank you for being involved!

## Setting up a development environment

The easiest way to start, is by opening a CodeSpace here on GitHub, or by using
the [Dev Container][devcontainer] feature of Visual Studio Code.

[![Open in Dev Containers][devcontainer-shield]][devcontainer]

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.12+
- [Poetry][poetry-install]
- NodeJS 18+ (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 [Erwin Douna][erwindouna].

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

## License

MIT License

Copyright (c) 2024 Erwin Douna

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/erwindouna/python-tado/actions/workflows/tests.yaml/badge.svg
[build]: https://github.com/erwindouna/python-tado/actions/workflows/tests.yaml
[codecov-shield]: https://codecov.io/gh/erwindouna/python-tado/branch/main/graph/badge.svg
[codecov]: https://codecov.io/gh/erwindouna/python-tado
[contributors]: https://github.com/erwindouna/python-tado/graphs/contributors
[devcontainer-shield]: https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode
[devcontainer]: https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/erwindouna/python-tado
[erwindouna]: https://github.com/erwindouna
[github-sponsors-shield]: https://erwindouna.dev/wp-content/uploads/2019/12/github_sponsor.png
[github-sponsors]: https://github.com/sponsors/erwindouna
[keepchangelog]: http://keepachangelog.com/en/1.0.0/
[license-shield]: https://img.shields.io/github/license/erwindouna/python-tado.svg
[maintenance-shield]: https://img.shields.io/maintenance/yes/2024.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-production%20ready-brightgreen.svg
[pypi]: https://pypi.org/project/python-tado-async/
[python-versions-shield]: https://img.shields.io/pypi/pyversions/tado
[releases-shield]: https://img.shields.io/github/release/erwindouna/python-tado.svg
[releases]: https://github.com/erwindouna/python-tado/releases
[semver]: http://semver.org/spec/v2.0.0.html
[sonarcloud-shield]: https://sonarcloud.io/api/project_badges/measure?project=erwindouna_python-tado&metric=alert_status
[sonarcloud]: https://sonarcloud.io/summary/new_code?id=erwindouna_python-tado


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/erwindouna/python-tado",
    "name": "python-tado-async",
    "maintainer": "Erwin Douna",
    "docs_url": null,
    "requires_python": "<4.0,>=3.12",
    "maintainer_email": "e.douna@gmail.com",
    "keywords": "tado, homeassistant, api, async, client",
    "author": "Erwin Douna",
    "author_email": "e.douna@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/6e/b6/4651fba279412e6e2f0c71ac6683964fc4d98057c72847cb1879c3a5a717/python_tado_async-0.1.4.tar.gz",
    "platform": null,
    "description": "# Python: Asynchronous Python client providing RDW vehicle information\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[![Code Coverage][codecov-shield]][codecov]\n[![Quality Gate Status][sonarcloud-shield]][sonarcloud]\n[![Open in Dev Containers][devcontainer-shield]][devcontainer]\n\n\nAsynchronous Python client to control Tado devices.\n\n## About\n\nThis package allows you to control Tado devices from within Python.\nAlthough it can be used as a standalone package, it is current scope is to be used within Home Assistant.\nNot all endpoints and features are fully supported.\n\n## Installation\n\n```bash\npip install python-tado\n```\n\n## Usage\n\n```python\nimport asyncio\n\nfrom tado import Tado\n\n\nasync def main() -> None:\n    \"\"\"Show example on how to use aiohttp.ClientSession.\"\"\"\n    async with Tado(\"username\", \"password\") as tado:\n        await tado.get_devices()\n\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n\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](.github/CONTRIBUTING.md).\n\nThank you for being involved!\n\n## Setting up a development environment\n\nThe easiest way to start, is by opening a CodeSpace here on GitHub, or by using\nthe [Dev Container][devcontainer] feature of Visual Studio Code.\n\n[![Open in Dev Containers][devcontainer-shield]][devcontainer]\n\nThis Python project is fully managed using the [Poetry][poetry] dependency manager. But also relies on the use of NodeJS for certain checks during development.\n\nYou need at least:\n\n- Python 3.12+\n- [Poetry][poetry-install]\n- NodeJS 18+ (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 [Erwin Douna][erwindouna].\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) 2024 Erwin Douna\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/erwindouna/python-tado/actions/workflows/tests.yaml/badge.svg\n[build]: https://github.com/erwindouna/python-tado/actions/workflows/tests.yaml\n[codecov-shield]: https://codecov.io/gh/erwindouna/python-tado/branch/main/graph/badge.svg\n[codecov]: https://codecov.io/gh/erwindouna/python-tado\n[contributors]: https://github.com/erwindouna/python-tado/graphs/contributors\n[devcontainer-shield]: https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode\n[devcontainer]: https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/erwindouna/python-tado\n[erwindouna]: https://github.com/erwindouna\n[github-sponsors-shield]: https://erwindouna.dev/wp-content/uploads/2019/12/github_sponsor.png\n[github-sponsors]: https://github.com/sponsors/erwindouna\n[keepchangelog]: http://keepachangelog.com/en/1.0.0/\n[license-shield]: https://img.shields.io/github/license/erwindouna/python-tado.svg\n[maintenance-shield]: https://img.shields.io/maintenance/yes/2024.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-production%20ready-brightgreen.svg\n[pypi]: https://pypi.org/project/python-tado-async/\n[python-versions-shield]: https://img.shields.io/pypi/pyversions/tado\n[releases-shield]: https://img.shields.io/github/release/erwindouna/python-tado.svg\n[releases]: https://github.com/erwindouna/python-tado/releases\n[semver]: http://semver.org/spec/v2.0.0.html\n[sonarcloud-shield]: https://sonarcloud.io/api/project_badges/measure?project=erwindouna_python-tado&metric=alert_status\n[sonarcloud]: https://sonarcloud.io/summary/new_code?id=erwindouna_python-tado\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Asynchronous Python client for controlling Tado devices.",
    "version": "0.1.4",
    "project_urls": {
        "Bug Tracker": "https://github.com/erwindouna/python-tado/issues",
        "Changelog": "https://github.com/erwindouna/python-tado/releases",
        "Documentation": "https://github.com/erwindouna/python-tado",
        "Homepage": "https://github.com/erwindouna/python-tado",
        "Repository": "https://github.com/erwindouna/python-tado"
    },
    "split_keywords": [
        "tado",
        " homeassistant",
        " api",
        " async",
        " client"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "73f9e8a952f9c805dcd0c8017d4b08f0846184260873c9ed87f41c4947350a59",
                "md5": "ca44fd0653530d61c4abd4a7d7fa430b",
                "sha256": "fa4d379ecbe02a7e937bf57b5f702f10d8ac513d494950a7f7bbb01dc092f1f6"
            },
            "downloads": -1,
            "filename": "python_tado_async-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ca44fd0653530d61c4abd4a7d7fa430b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.12",
            "size": 10636,
            "upload_time": "2024-07-08T18:33:16",
            "upload_time_iso_8601": "2024-07-08T18:33:16.970430Z",
            "url": "https://files.pythonhosted.org/packages/73/f9/e8a952f9c805dcd0c8017d4b08f0846184260873c9ed87f41c4947350a59/python_tado_async-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6eb64651fba279412e6e2f0c71ac6683964fc4d98057c72847cb1879c3a5a717",
                "md5": "916c41a59601f4d67cb1387d4af508dd",
                "sha256": "235e8032dd6aea5f49df0b6f8a180dcaba085fd62947abd7d0e968193c430f83"
            },
            "downloads": -1,
            "filename": "python_tado_async-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "916c41a59601f4d67cb1387d4af508dd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.12",
            "size": 12259,
            "upload_time": "2024-07-08T18:33:18",
            "upload_time_iso_8601": "2024-07-08T18:33:18.862985Z",
            "url": "https://files.pythonhosted.org/packages/6e/b6/4651fba279412e6e2f0c71ac6683964fc4d98057c72847cb1879c3a5a717/python_tado_async-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-08 18:33:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "erwindouna",
    "github_project": "python-tado",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "python-tado-async"
}
        
Elapsed time: 0.95739s