Skip to content

XnneHangLab/wexpect-uv

 
 

Repository files navigation

wexpect

I fork it from : raczben/wexpect

And it is rebuild by uv, for branch dev.

Description

Wexpect is a Windows variant of pexpect.

  • v0.0.1: fix the Always Timeout && failed in uv
  • v0.0.2: fix cannot read console if endwith '\r' print("",end="\r"). .
  • v0.0.3: change the catch logic(catch all even cursor not change) and catch ascii colors.
  • v0.0.4: fix bugs in v0.0.3: remove extra \x1b[0m, catch all process-bar protect between \r.
  • v0.0.5: fix default front-color in windows 10.

Installation

pip install wexpect-uv

Usage

import wexpect as pexpect

# You can use it like pexpect

For more information see examples folder.

How to test and develop locally

You need uv, see installation.

Then,

git clone https://github.com/XnneHangLab/wexpect-uv.git
uv lock
uv sync

Then you can use uv run wexpect to use it in command line or import wexpect in python. You can modify the code and test then PR to me if you want.

About

Windows variant of pexpect rebuild in uv.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.9%
  • Just 0.1%