Metadata-Version: 2.1
Name: asyncio-telnet
Version: 0.1.11
Summary: Asyncio-based Telnet library
Home-page: https://github.com/ForceFledgling/asyncio-telnet
Author: Vladimir Penzin
Author-email: pvenv@icloud.com
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: asyncio

# **Python Telnet Utility: asyncio-powered**

The \`**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.

- **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.
- **Ease of Use**: The library provides a user-friendly interface for both synchronous and asynchronous cases, making it adaptable to different project needs.
- **Telnet Protocol Handling**: Transparently handles the intricacies of the Telnet protocol, allowing you to focus on the logic of your application.
- **Flexible Integration**: Easily integrate Telnet functionality into your Python applications with a simple API.

# Installation

You can install the library using pip. Make sure you have Python 3.6 or later installed.

`pip install asyncio-telnet`

# Usage

Here is a simple example of using in an asynchronous context:

```python
import asyncio
from asyncio_telnet import Telnet

async def main():
    async with Telnet(host='example.com', port=23) as telnet:
        await telnet.write(b'Hello, Telnet!\r\n')
        response = await telnet.read_until_eof()
        print(response)

if __name__ == '__main__':
    asyncio.run(main())
```

For synchronous usage, you can use the library in a similar way:

```python
from asyncio_telnet import Telnet

def main():
    with Telnet(host='example.com', port=23) as telnet:
        telnet.write(b'Hello, Telnet!\r\n')
        response = telnet.read_until_eof()
        print(response)

if __name__ == '__main__':
    main()
```

Feel free to check the documentation for more detailed information and examples.
