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

Uploaded Source

Built Distribution

pyvirtualserial-1.0.4-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyvirtualserial-1.0.4.tar.gz
  • Upload date:
  • Size: 21.9 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.4.tar.gz
Algorithm Hash digest
SHA256 5d9a2a652aeaeb400cdec2f126c1104a17aa9f4eb6ddb82ad8fe617d25cd8d96
MD5 d4cd7410f64a46de3666cfa5920f8129
BLAKE2b-256 04b9c7e746d5aaf74bc85be54ca72eead03c8920b178d0289924865ef8dcfcb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyvirtualserial-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fd2ec32ab240313637bcbfa48d1c4b81cac6ce7e3fbab3c0e33552baf7e4289b
MD5 a2d8222736ab139d582dd9a0fd167a25
BLAKE2b-256 bb611e1af6265a932dece5e89a335c8a2959b92f892f3e86d17bd02cb9d5dc9d

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