Interact with serial devices using pexpect
Project description
Serial spawn for pexpect
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da676602b9f0d4cadee294d0605a743b20452b81cc31c0b217098596465be378
|
|
| MD5 |
47bc4af8b6755f2bad0208eae4d9f5bf
|
|
| BLAKE2b-256 |
a93fe80263940f04a4f97bc9f51240692a3a9e8c071a24eb49be03c4f6a50ef5
|
Provenance
The following attestation bundles were made for pexpect_serialspawn-0.0.5.tar.gz:
Publisher:
build.yml on antoniovazquezblanco/pexpect-serialspawn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pexpect_serialspawn-0.0.5.tar.gz -
Subject digest:
da676602b9f0d4cadee294d0605a743b20452b81cc31c0b217098596465be378 - Sigstore transparency entry: 973182867
- Sigstore integration time:
-
Permalink:
antoniovazquezblanco/pexpect-serialspawn@40714e231a182074c5352fa5429b8ffd698048e6 -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/antoniovazquezblanco
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@40714e231a182074c5352fa5429b8ffd698048e6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pexpect_serialspawn-0.0.5-py3-none-any.whl.
File metadata
- Download URL: pexpect_serialspawn-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0733539a9635f78ec7ac13da258a346a8ce525f3d3476d229303467dde130700
|
|
| MD5 |
8f3c14a18b57b784208ee52f053477e1
|
|
| BLAKE2b-256 |
82c5ded11e4f1e84287160acfb9d44010de6e590eb4f104311d1915921f7e1e6
|
Provenance
The following attestation bundles were made for pexpect_serialspawn-0.0.5-py3-none-any.whl:
Publisher:
build.yml on antoniovazquezblanco/pexpect-serialspawn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pexpect_serialspawn-0.0.5-py3-none-any.whl -
Subject digest:
0733539a9635f78ec7ac13da258a346a8ce525f3d3476d229303467dde130700 - Sigstore transparency entry: 973182873
- Sigstore integration time:
-
Permalink:
antoniovazquezblanco/pexpect-serialspawn@40714e231a182074c5352fa5429b8ffd698048e6 -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/antoniovazquezblanco
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@40714e231a182074c5352fa5429b8ffd698048e6 -
Trigger Event:
push
-
Statement type: