Skip to main content

Interact with serial devices using pexpect

Project description

Serial spawn for pexpect

Build PyPI 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.5.tar.gz (4.8 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.5-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pexpect_serialspawn-0.0.5.tar.gz
  • Upload date:
  • Size: 4.8 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.5.tar.gz
Algorithm Hash digest
SHA256 da676602b9f0d4cadee294d0605a743b20452b81cc31c0b217098596465be378
MD5 47bc4af8b6755f2bad0208eae4d9f5bf
BLAKE2b-256 a93fe80263940f04a4f97bc9f51240692a3a9e8c071a24eb49be03c4f6a50ef5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pexpect_serialspawn-0.0.5.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.5-py3-none-any.whl.

File metadata

File hashes

Hashes for pexpect_serialspawn-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0733539a9635f78ec7ac13da258a346a8ce525f3d3476d229303467dde130700
MD5 8f3c14a18b57b784208ee52f053477e1
BLAKE2b-256 82c5ded11e4f1e84287160acfb9d44010de6e590eb4f104311d1915921f7e1e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pexpect_serialspawn-0.0.5-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