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.0.0.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

pyvirtualserial-1.0.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file pyvirtualserial-1.0.0.tar.gz.

File metadata

  • Download URL: pyvirtualserial-1.0.0.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

Hashes for pyvirtualserial-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9c0e86acb7deb0cd9139bb417cd68634852d861ea0fb8a6f7fbd3b8f204bcde6
MD5 9c53e5b9f7b3d82785a08de3d0ccdfd9
BLAKE2b-256 914bd2e5017d949dced4e055ffe2ad06cfe56df815bbe865c17654e45e38aeec

See more details on using hashes here.

File details

Details for the file pyvirtualserial-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyvirtualserial-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84609bea78bec775e9173dc1c940da01e73a0fadd8ceab82346dadb9504739c1
MD5 8e7312ae0c65d1584bf44ebc96270f94
BLAKE2b-256 748d05d7036519578d65aa6cb18a15357aeb72132f9b091c9df1f8f7b52bdfc6

See more details on using hashes here.

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