palazzem / econnect-python

API adapter used to control programmatically an Elmo alarm system
BSD 3-Clause "New" or "Revised" License
8 stars 5 forks source link

Provide asyncio implementation #54

Open palazzem opened 4 years ago

palazzem commented 4 years ago

Overview

In some cases (i.e. Home Assistant), it could be required/preferred to have the async version of the library.

At the time of writing, the library uses requests as a main dependency to retrieve data and further processing, even if not expensive, is not structured to be run in an asyncio context. This issue is a tracker for implementing the right solution to avoid code duplication.

palazzem commented 5 months ago

Asyncio implementation can be easily achieved using https://www.python-httpx.org/ library. We should take it into consideration instead of using requests.