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.4.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.4-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pexpect_serialspawn-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 7edd7ed7cebf6445171b1c3effad1fb5fb28dbf3397202bc237c302b4810869a
MD5 9308a55d140bbe837c4cbfbf57c10162
BLAKE2b-256 caba71da0ea3fc81e6996d596ddb2c1f1aec4f719f50102e1e0bdeab05bbde70

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pexpect_serialspawn-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 58b04ac2db93d354fcc391a205f0f9463b967a43b08ccc8505e96f08533179ef
MD5 c8b07abc45776444a8e8271d83e6f095
BLAKE2b-256 50d6dd3aa3145fec9f50de475df4813d37c3154f0f173fed2fb52677e132fddd

See more details on using hashes here.

Provenance

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