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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pexpect_serialspawn-0.0.1.tar.gz
.
File metadata
- Download URL: pexpect_serialspawn-0.0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c53b1d4e2e322562a276e4c923941c4ddd5ae5ef80759fff74842177a2cc6f1 |
|
MD5 | 7d430b9dc94cf6a6ea4b811f6e1db779 |
|
BLAKE2b-256 | 31942105f7022921e698b93ff174951475d45151dfcb52b2832ac79e936d093c |
File details
Details for the file pexpect_serialspawn-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pexpect_serialspawn-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73b6b2dbcc41f6a93872ce24d61ec4f2fd800ea51e63d66b9dbfd070e68a45d1 |
|
MD5 | 9db455f9e1eba7c2c2069abff826cf06 |
|
BLAKE2b-256 | ad5c2a786a3f119130bdb127028fe70727017ccdc0a2cf8858e15554985d639d |