Skip to content

simple wrapper of pexpect and pyserial to support serial on windows

License

Notifications You must be signed in to change notification settings

Hebertl/pexpect-serial-win

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is like pexpect, but it will work with serial port that you pass it. You are reponsible for opening and close the serial port. This allows you to use Pexpect with Serial port which pyserial supports.

Usage

import serial
from pexpect_serial import SerialSpawn

with serial.Serial('COM1', 115200, timeout=0) as ser:
    ss = SerialSpawn(ser)
    ss.sendline('start')
    ss.expect('done')

License

MIT

About

simple wrapper of pexpect and pyserial to support serial on windows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.2%
  • Shell 10.8%