An async Python client for connecting to the Evohome webservice
Reason this release was yanked:
dated dependencies
Project description
evohome-async
Python client to asynchronously access the Total Connect Comfort RESTful API.
It is a faithful port of https://github.com/watchforstock/evohome-client, which is not async-aware.
It provides support for Evohome and the Round Thermostat. It supports only EU/EMEA-based systems, please use somecomfort for US-based systems.
This client uses the aiohttp library. If you prefer an async-friendly client, evohome-async has been ported to use aiohttp instead.
Provides Evohome support for Home Assistant (and other automation platforms), see http://home-assistant.io/components/evohome/
Documentation (from evohomeclient) is available at http://evohome-client.readthedocs.org/en/latest/
Differences from non-async version
Note that this library is not intended to expose more functionality than it's non-async cousin, other than asyncio.
The difference between the evohomeasync and evohomeclient libraries have been keep to the minimum, and it is planned for exisiting docs to be useful. Thus, it should be relatively easy to port your code over to this async library should you wish.
Currently, only evohomeclient2
has been fully tested, and evohomeclient
(the older API) is a WIP has not been fully tested.
This library is used by Home Assistant, see: http://home-assistant.io/components/evohome/
Technical differences
In both cases (evohomeclient2
and evohomeclient
):
- uses aiohttp instead of requests:
- most instantiation arguments (except for username, password) are now kwargs
- added a new instantiation argument,
session
to allow the client to utilize the consumer's session
self._session = kwargs.get('session', aiohttp.ClientSession(
timeout=aiohttp.ClientTimeout(total=30)
))
For the newer evohome API (evohomeclient2):
import evohomeasync2
instead ofimport evohomeclient2
- need to add a call
await client.login()
after initialising Exceptions
have changed...requests.ConnectionError
becomes:aiohttp.ClientConnectionError
requests.HTTPError
becomesaiohttp.ClientResponseError
For the older evohome API (evohomeclient):
import evohomeasync
instead ofimport evohomeclient
- Exceptions change similar to the above
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file evohome-async-0.3.5.post2.tar.gz
.
File metadata
- Download URL: evohome-async-0.3.5.post2.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00c0a557d26dff24b3b14591a03a2d555834a2fbccaa7151ba7b71eeafadd787 |
|
MD5 | 34896bb15d69caa2b3890d17f52468de |
|
BLAKE2b-256 | e010285fb0063e69ef184bed170c50e8da0d2579affa0d61e426dc84e550c89d |