{"id":37063006,"url":"https://github.com/forcefledgling/asyncio-telnet","last_synced_at":"2026-01-14T07:01:26.937Z","repository":{"id":209207899,"uuid":"723464401","full_name":"ForceFledgling/asyncio-telnet","owner":"ForceFledgling","description":"Telnet client with asynchronous/synchronous capabilities 🤖✨","archived":true,"fork":false,"pushed_at":"2024-08-14T06:32:54.000Z","size":38,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-30T03:20:06.260Z","etag":null,"topics":["asyncio","asyncronous","synchronous","telnet","tty","vty","vtysh"],"latest_commit_sha":null,"homepage":"https://limku.com/Projects/python/proxyhub/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ForceFledgling.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-25T18:48:33.000Z","updated_at":"2025-03-23T13:02:25.000Z","dependencies_parsed_at":"2024-08-16T23:32:15.747Z","dependency_job_id":null,"html_url":"https://github.com/ForceFledgling/asyncio-telnet","commit_stats":null,"previous_names":["forcefledgling/asyncio-telnet"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/ForceFledgling/asyncio-telnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForceFledgling%2Fasyncio-telnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForceFledgling%2Fasyncio-telnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForceFledgling%2Fasyncio-telnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForceFledgling%2Fasyncio-telnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ForceFledgling","download_url":"https://codeload.github.com/ForceFledgling/asyncio-telnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForceFledgling%2Fasyncio-telnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28412480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncio","asyncronous","synchronous","telnet","tty","vty","vtysh"],"created_at":"2026-01-14T07:01:26.255Z","updated_at":"2026-01-14T07:01:26.930Z","avatar_url":"https://github.com/ForceFledgling.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Python Telnet Utility: asyncio-powered**\n\nThe **asyncio-telnet** library designed for convenient interaction with Telnet devices in both synchronous and asynchronous modes, making the process straightforward and flexible in various usage scenarios.\n\n[![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](docs) [![License: Apache License 2.0](https://img.shields.io/badge/License-Apache2-brightgreen.svg)](https://choosealicense.com/licenses/apache-2.0/) [![PyPi Version](https://img.shields.io/pypi/v/asyncio-telnet.svg?style=flat-square\u0026logo=asyncio-telnet\u0026logoColor=white)](https://pypi.org/project/asyncio-telnet/) [![PyPi downloads](https://static.pepy.tech/personalized-badge/asyncio-telnet?period=total\u0026units=international_system\u0026left_color=grey\u0026right_color=orange\u0026left_text=pip%20downloads)](https://pypistats.org/packages/asyncio-telnet)\n\n- **Support for Asynchrony and Synchrony**: Harness the power of asyncio for efficient and non-blocking communication with Telnet servers. With this library, you have the option to choose between asynchronous and synchronous modes, depending on the requirements of your project.\n- **Ease of Use**: The library provides a user-friendly interface for both synchronous and asynchronous cases, making it adaptable to different project needs.\n- **Telnet Protocol Handling**: Transparently handles the intricacies of the Telnet protocol, allowing you to focus on the logic of your application.\n- **Flexible Integration**: Easily integrate Telnet functionality into your Python applications with a simple API.\n\n# Installation\n\nYou can install the library using pip. Make sure you have Python 3.6 or later installed.\n\n`pip install asyncio-telnet`\n\n# Usage\n\nExample: Asynchronous Telnet Connection with Default Timeout\n\n```python\nimport asyncio\nfrom asyncio_telnet import Telnet\n\nasync def main():\n    tn = Telnet()\n    await tn.open('example.com')\n    await tn.write(b'Vladimir\\r\\n')\n    response = await tn.read_until_eof()\n    await tn.close()\n    return response\n\nif __name__ == '__main__':\n    result = asyncio.run(main())\n    print(result)\n\n\n# Example of successful execution:\n# b'\\n***************** User Access Login ********************\\r\\n\\r\\nUser:'\n```\n\nExample: Synchronous Telnet Connection\n\n```python\nfrom asyncio_telnet import Telnet\n\ndef main():\n    tn = Telnet(sync_mode=True)\n    tn.open('example.com')\n    response = tn.read_until_eof()\n    tn.close()\n    return response\n\nif __name__ == '__main__':\n    result = main()\n    print(result)\n\n\n# Example of successful execution:\n# b'\\n***************** User Access Login ********************\\r\\n\\r\\nUser:'\n```\n\nExample: Asynchronous Telnet Connection with Custom Timeout.\n\nBy default, the timeout is set to 30 seconds.\n\n```python\nimport asyncio\nfrom asyncio_telnet import Telnet\n\nasync def main():\n    tn = Telnet(timeout=5)\n    try:\n        await tn.open('example.com')\n        response = await tn.read_until_eof()\n        await tn.close()\n        return response\n    except ValueError as e:\n        print(f\"Example of a timeout occurrence: {e}\")\n\nif __name__ == '__main__':\n    asyncio.run(main())\n\n\n# Example response:\n# Example of a timeout occurrence: Timeout connecting to example.com:23\n```\n\nExample: Asynchronous Telnet Connection with Write Operation\n\n```python\nimport asyncio\nfrom asyncio_telnet import Telnet\n\nasync def main():\n    tn = Telnet()\n    await tn.open('example.com')\n    await tn.write(b'Vladimir\\r\\n')\n    response = await tn.read_until_eof()\n    await tn.close()\n    return response\n\nif __name__ == '__main__':\n    result = asyncio.run(main())\n    print(result)\n\n\n# Example of successful execution:\n# b'\\n***************** User Access Login ********************\\r\\n\\r\\nUser:Vladimir\\r\\nPassword:'\n```\n\nFeel free to check the [documentation](docs) and [examples](examples) for more detailed information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforcefledgling%2Fasyncio-telnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforcefledgling%2Fasyncio-telnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforcefledgling%2Fasyncio-telnet/lists"}