Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What Does This Offer Beyond pyserial-asyncio? #1

Open
kb1lqc opened this issue May 2, 2018 · 2 comments
Open

What Does This Offer Beyond pyserial-asyncio? #1

kb1lqc opened this issue May 2, 2018 · 2 comments

Comments

@kb1lqc
Copy link

kb1lqc commented May 2, 2018

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. FaradayRF/faradayio#65

@xvzf
Copy link
Owner

xvzf commented May 2, 2018

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
Copy link
Owner

xvzf commented May 22, 2018

Hi!

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

Cheers,
Matthias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants