xvzf / asyncserial-py

Asyncio wrapper for pyserial
Apache License 2.0
6 stars 3 forks source link

What Does This Offer Beyond pyserial-asyncio? #1

Open kb1lqc opened 6 years ago

kb1lqc commented 6 years ago

Curious as to what this solves that Pyserial-Asyncio doesn't? It appears that you have a more simple routine. What are your goals with this?

https://github.com/pyserial/pyserial-asyncio

I intend to use pyserial-asyncio for my @FaradayRF project https://github.com/FaradayRF/faradayio but am curious to see if your project solves some of my issues implementing it with a serial port and a TUN adapter. https://github.com/FaradayRF/faradayio/issues/65

xvzf commented 6 years ago

Hi there!

One of the main reasons for developing this library was the aweful interface to pyserial-asyncio! I just wanted to use the standard interface of pyserial with an async framework.

Most basic example: You cannot read a few bytes using await with the pyserial-asyncio library - instead you have to implement a full asyncio.Protocol factory. You can implement a similar interace using asyncserial but you don't have to - that's the difference!

I just had a quick look at your project - it seems like you could quite benefit from the asyncio framework (or maybe even uvloop!). loop.create_task() is pretty handy!

PS: Readthedocs seems to be broken at the moment, I don't know whats wrong! If you want to read the documentation, just go into the docs directory and generate the html using make html!

xvzf commented 6 years ago

Hi!

Just out of curiosity - what was your decision? :-)

Cheers, Matthias