# Asynchronous Python client for the Tado 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]
[![Code Coverage][codecov-shield]][codecov]
[![Quality Gate Status][sonarcloud-shield]][sonarcloud]
[![Documentation Status][readthedocs-shield]][readthedocs]
[![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.
## Documentation
A full documentation can be found at [Read the Docs][readthedocs].
## Installation
```bash
pip install tadoasync
```
## Usage
```python
import asyncio
from tadoasync import Tado
async def main() -> None:
"""Example on how to retrieve all devices."""
async with Tado("username", "password") as tado:
await tado.get_devices()
if __name__ == "__main__":
asyncio.run(main())
```
Keep in mind that if you use `async with`, the `aenter` and `aexit` methods are called automatically. It's recommended you use session control, if you don't use `async with`, you need to call `tado.close()` to close the session.
## 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/tadoasync/
[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
[readthedocs-shield]: https://readthedocs.org/projects/python-tado/badge/?version=latest
[readthedocs]: https://python-tado.readthedocs.io/en/latest/index.html
Raw data
{
"_id": null,
"home_page": "https://github.com/erwindouna/python-tado",
"name": "tadoasync",
"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/9c/f5/310b42c4e0aee73095b149a4f52fafa344da9993ecbad9088326bb781a2d/tadoasync-0.1.21.tar.gz",
"platform": null,
"description": "# Asynchronous Python client for the Tado 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[![Code Coverage][codecov-shield]][codecov]\n[![Quality Gate Status][sonarcloud-shield]][sonarcloud]\n[![Documentation Status][readthedocs-shield]][readthedocs]\n[![Open in Dev Containers][devcontainer-shield]][devcontainer]\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## Documentation\nA full documentation can be found at [Read the Docs][readthedocs].\n\n## Installation\n\n```bash\npip install tadoasync\n```\n\n## Usage\n\n```python\nimport asyncio\n\nfrom tadoasync import Tado\n\n\nasync def main() -> None:\n \"\"\"Example on how to retrieve all devices.\"\"\"\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\nKeep in mind that if you use `async with`, the `aenter` and `aexit` methods are called automatically. It's recommended you use session control, if you don't use `async with`, you need to call `tado.close()` to close the session.\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/tadoasync/\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[readthedocs-shield]: https://readthedocs.org/projects/python-tado/badge/?version=latest\n[readthedocs]: https://python-tado.readthedocs.io/en/latest/index.html\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Asynchronous Python client for controlling Tado devices.",
"version": "0.1.21",
"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": "b0fa027104de1360d672bb4ef9fc7abf7308b0fe06aa5341d4c4a0083b9f7c87",
"md5": "ac94edfcdb7b0663ce591c68bda958c2",
"sha256": "3b6d4dc1f5c4ec4ada79b58eae116c61a57b8478bbcbab8bd40bf37e79b3b2e4"
},
"downloads": -1,
"filename": "tadoasync-0.1.21-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ac94edfcdb7b0663ce591c68bda958c2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.12",
"size": 14923,
"upload_time": "2024-12-07T19:45:27",
"upload_time_iso_8601": "2024-12-07T19:45:27.210040Z",
"url": "https://files.pythonhosted.org/packages/b0/fa/027104de1360d672bb4ef9fc7abf7308b0fe06aa5341d4c4a0083b9f7c87/tadoasync-0.1.21-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9cf5310b42c4e0aee73095b149a4f52fafa344da9993ecbad9088326bb781a2d",
"md5": "9013d4434103910153f9fd9a27af2e63",
"sha256": "4d85fe61fc27d3fb6c18efc53d1e4d05ca057ed6b87065acf04fc1c07cd76e6e"
},
"downloads": -1,
"filename": "tadoasync-0.1.21.tar.gz",
"has_sig": false,
"md5_digest": "9013d4434103910153f9fd9a27af2e63",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.12",
"size": 16683,
"upload_time": "2024-12-07T19:45:29",
"upload_time_iso_8601": "2024-12-07T19:45:29.264901Z",
"url": "https://files.pythonhosted.org/packages/9c/f5/310b42c4e0aee73095b149a4f52fafa344da9993ecbad9088326bb781a2d/tadoasync-0.1.21.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-07 19:45:29",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "erwindouna",
"github_project": "python-tado",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "tadoasync"
}