Skip to main content

gevent-serial

A python 3 gevent friendly access to the serial port.

Deeply inspired by pyserial. It tries to mimic its interface but it doesn't aim to garantee full API compatibility.

For now only Linux (and possibly any BSD or posix complient system) is supported.

Support for local serial port, RFC2217, and RS485 (untested).

Includes an optional serial to TCP bridge (experimental).

Installation

From within your favourite python environment:

$ pip install gevent-serial

Serial to TCP bridge

To be available, it requires you to install the optional server package with:

$ pip install gevent-serial[ser2tcp]

The ser2tcp server needs a configuration file written in YAML. It consists of a list of serial entries. Each entry describes the serial port address (url), the TCP port (listener) and optionally a TCP mode and other serial line options (baudrate, parity, byte size, etc.)

Here is an example:

- url: /dev/ttyS0
  baudrate: 9600
  listener: :2217   # listen on all network interfaces, TCP port 2217
  mode: rfc2217

- url: /dev/ttyS1
  baudrate: 115200
  mode: raw
  listener: :2218

- url: loop://
  listener: :2219
  baudrate: 115200
  mode: raw

- url: loop://
  listener: :2220
  baudrate: 9600
  mode: rfc2217

Metadata

Release files for gevent-serial 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gevent-serial 0.2.4
File Size Uploaded
gevent-serial-0.2.4.tar.gz 30.3 kB Details

Release files / gevent-serial-0.2.4.tar.gz

Download URL gevent-serial-0.2.4.tar.gz
Size 30.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a3913e4bb4f7c3cf68647956ad7e4da8da54ba909250dee525f2f157b5bd2bdb
BLAKE2b-256 checksum
How to use checksums
5d5ae27778671183ffaea88c8850c1d991c4ef565ab6798f54464fdb8855fba0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

Release history Release notifications | RSS feed

This release

0.2.4 This release

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page