Skip to main content

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

pyvirtualserial-1.1.0.tar.gz (22.0 kB view hashes)

Uploaded Source

Built Distribution

pyvirtualserial-1.1.0-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page