Skip to main content

Interact with serial devices using pexpect

Project description

Serial spawn for pexpect

Interact with serial devices using pexpect.

Usage

import serial
from pexpect_serialspawn import SerialSpawn

# Initialize your serial device
ser = serial.Serial('COM1', 115200)

# Spawn a pexpect object
ss = SerialSpawn(ser, encoding='utf-8')

# Use as any other pexpect spawns...
ss.sendline('Hello')
ss.expect('World')

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

pexpect_serialspawn-0.0.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

pexpect_serialspawn-0.0.1-py3-none-any.whl (2.7 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