delfick / photons

Python3.6+ asyncio framework for interacting with LIFX devices
https://photons.delfick.com
MIT License
73 stars 6 forks source link

Convert photons interactor to sanic #124

Closed delfick closed 5 months ago

delfick commented 9 months ago

I'm pretty sure I started this in late 2020. For various reasons my time to work on it was not large over that time, but I persevered and here we are!

This will replace the use of tornado in the interactor with sanic.

This involves a new way of expressing the routes, using strcs.readthedocs.io

There is also a /v2 api, but it's untested and undocumented, and will be expand on in the future. The existing v1 api should behave as it did before (though with slightly worse error paths because reasons).

There is definitely room for more cleanup, but it's finally reached feature parity and can be improved from main