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 details)

Uploaded Source

Built Distribution

pexpect_serialspawn-0.0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

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

Hashes for pexpect_serialspawn-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4c53b1d4e2e322562a276e4c923941c4ddd5ae5ef80759fff74842177a2cc6f1
MD5 7d430b9dc94cf6a6ea4b811f6e1db779
BLAKE2b-256 31942105f7022921e698b93ff174951475d45151dfcb52b2832ac79e936d093c

See more details on using hashes here.

File details

Details for the file pexpect_serialspawn-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pexpect_serialspawn-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 73b6b2dbcc41f6a93872ce24d61ec4f2fd800ea51e63d66b9dbfd070e68a45d1
MD5 9db455f9e1eba7c2c2069abff826cf06
BLAKE2b-256 ad5c2a786a3f119130bdb127028fe70727017ccdc0a2cf8858e15554985d639d

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