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.0.2.tar.gz
.
File metadata
- Download URL: pyvirtualserial-1.0.2.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5935a12a7ef798b2c6394294ffac9e791689ce441ee0f7716724ef7a7f5583c0 |
|
MD5 | 6a165b9905c9f38fbf5772119a1d47f9 |
|
BLAKE2b-256 | b6ba0e82839371a4cea60b0dacb02b37816049f133abc20c0bb1969772e737ce |
File details
Details for the file pyvirtualserial-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: pyvirtualserial-1.0.2-py3-none-any.whl
- Upload date:
- Size: 7.9 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 | e6a826e64ec2c94815f401445cb2920fbde92787b5df4aafba44b97730a3d3d6 |
|
MD5 | 74d5bf78db51d03a1fcb8a6d5de224a5 |
|
BLAKE2b-256 | 6d7f6090078e2958c06e8859be9eaad31ab9dd8bedb20894f84fbaf0acf4ed24 |