Skip to main content

Introduction

This is like pexpect, but it will work with serial port that you pass it. You are reponsible for opening and close the serial port. This allows you to use Pexpect with Serial port which pyserial supports.

Usage

import serial
from pexpect_serial import SerialSpawn

with serial.Serial('COM1', 115200, timeout=0) as ser:
    ss = SerialSpawn(ser)
    ss.sendline('start')
    ss.expect('done')

License

MIT

Release files for pexpect-serial 0.1.0

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

Source distribution (sdist)

Source distribution for pexpect-serial 0.1.0
File Size Uploaded
pexpect-serial-0.1.0.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pexpect-serial 0.1.0
File Interpreter ABI Platform
pexpect_serial-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / pexpect-serial-0.1.0.tar.gz

Download URL pexpect-serial-0.1.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5cdf36a5d0a91ea36515ed53f47f047b4dc7366b974e954650fa6fe9ca367f92
BLAKE2b-256 checksum
How to use checksums
f0795361054b34f1406d7b79b0325f66ba0a95a6621bf63332f6c3ea5b6e76d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.3

Release files / pexpect_serial-0.1.0-py3-none-any.whl

Download URL pexpect_serial-0.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57a69c20f32d745269ea520ba60bdf7a0771497a0d53d800464957c1e4cbc48e
BLAKE2b-256 checksum
How to use checksums
93d15469e463c0608d8af45beacc26bd9c695dab5718915f430f62857a53fcc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

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