Library to create virtual serial ports on Windows and Linux.
Project description
Library to create virtual serial ports on Windows and Linux.
On Windows Com0Com and admin permissions are needed. Using the library will ask you for elevation and install Com0Com for you if needed. On Linux It uses the pty native library, simple as always.
Virtual serial creates a pair of virtual serials, anything sent to the master will be received in the slave and viceversa.
Installation
pip install PyVirtualSerial
Usage
Using Virtual serial is pretty simple, here is a simple script to create an echo Serial:
from pyvirtualserial import VirtualSerial virtual_serial = VirtualSerial(timeout=60) while True: b = virtual_serial.read(1) virtual_serial.write(b)
Note
This project has been set up using PyScaffold 4.5. For details and usage information on PyScaffold see https://pyscaffold.org/.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyvirtualserial-1.1.0.tar.gz
.
File metadata
- Download URL: pyvirtualserial-1.1.0.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fda69ee405b8cb0805c5b9ee9f59daf8ff0ea1005c3132b159dad0cc9d86724 |
|
MD5 | 23edcf595a0c71b5afc6e1aceb465bb2 |
|
BLAKE2b-256 | 077423181a82d27497796cc9b764f4bc46362fea41d6ff79791957e005f99c5d |
File details
Details for the file pyvirtualserial-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: pyvirtualserial-1.1.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7f220d2a32391ee8b296c20c859b501192bb2003e3d04c1edd4eeebd4ad4199 |
|
MD5 | 41f2f9dee7b08525109126c29a910b80 |
|
BLAKE2b-256 | a2dc9463dc69f048150f49a08070964eba73382ce1fdd37d5540cfa50bdf53a2 |