gusutabopb / aioinflux

Asynchronous Python client for InfluxDB
MIT License
159 stars 31 forks source link

Support for trio/curio #8

Closed miracle2k closed 6 years ago

miracle2k commented 6 years ago

Would you be open to adding support for trio (https://github.com/python-trio/trio) and curio (https://github.com/dabeaz/curio) as alt event loops?

This would mostly require supporting an optional non-aiohttp backend for the http calls.

gusutabopb commented 6 years ago

Aioinflux is tightly coupled with aiohttp (which is tightly coupled with asyncio), so unless aiohttp adds support to alternative async frameworks such as curio/trio, aioinflux won't support anything else besides stdlib asyncio.

Alternative event loops (e.g. uvloop) can be used though.