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

telnetlib3 without asyncio? #78

Open
alex4200 opened this issue Jul 13, 2023 · 3 comments
Open

telnetlib3 without asyncio? #78

alex4200 opened this issue Jul 13, 2023 · 3 comments

Comments

@alex4200
Copy link

Hello, would it be possible to create a telnetlib module without this asyncio overhead? In my case this makes the code EXTREMLY more cumbersome, unreadable and complicated. Thanks

@jquast
Copy link
Owner

jquast commented Jul 13, 2023

Hello @alex4200, I understand the need to write code without asyncio and I would like to do that.

In the mean time, I suggest https://github.com/shmup/miniboa for a server without asyncio, @shmup maintains it well. As for client, even though python 3.11 warns that telnet.py is to be deprecated, you can simply copy telnet.py into your own project.


Roughly thinking, telnetlib3 without asyncio would still use asyncio under the hood.

@alex4200
Copy link
Author

Thanks for your input @jquast

@Chef-de-IT
Copy link

I definitely support this enhancement, @jquast !

Transitioning from telnetlib to telnetlib3 would, for sure ,benefit from adding a sync API to the latter (with it being perfectly fine to use asyncio under the hood). Some use cases (e.g. AppDaemon in Home Assistant) make it fairly difficult to integrate and troubleshoot a telnetlib3 client without a sync way to interface with it, such as perhaps via a sync connection call and callbacks for any "see text from server and respond to it" shell interactions.

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

No branches or pull requests

3 participants