Skip to main content

Interact with serial devices using pexpect

Project description

Serial spawn for pexpect

Build pexpect-serialspawn

Interact with serial devices using pexpect.

Installation

Just use pip :)

pip install pexpect-serialspawn

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.3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pexpect_serialspawn-0.0.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file pexpect_serialspawn-0.0.3.tar.gz.

File metadata

  • Download URL: pexpect_serialspawn-0.0.3.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pexpect_serialspawn-0.0.3.tar.gz
Algorithm Hash digest
SHA256 4e5aaed77998c4767a1d78d9f16f60322cd5c0a6e768bb7bb8a1a07be491e957
MD5 bf8455c9519c00792dbb4aea15de1c54
BLAKE2b-256 cee9aec22323a112494ed66ad729c01dc0f9dd190051ada8c2d28c7f8b496bba

See more details on using hashes here.

Provenance

The following attestation bundles were made for pexpect_serialspawn-0.0.3.tar.gz:

Publisher: build.yml on antoniovazquezblanco/pexpect-serialspawn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pexpect_serialspawn-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 375ba6fe037f7dc4e13fc9e68f4858d95ecca5db68f53132214c47c9dd11353b
MD5 19d25b000728db0e6a101e0b0ddf5e14
BLAKE2b-256 9e6d8724a03316da054826c7c120768fa266684ef4a6ab1fbc9ecbcc1da82680

See more details on using hashes here.

Provenance

The following attestation bundles were made for pexpect_serialspawn-0.0.3-py3-none-any.whl:

Publisher: build.yml on antoniovazquezblanco/pexpect-serialspawn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page