I fork it from : raczben/wexpect
And it is rebuild by uv, for branch dev.
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.
pip install wexpect-uvimport wexpect as pexpect
# You can use it like pexpectFor more information see examples folder.
You need uv, see installation.
Then,
git clone https://github.com/XnneHangLab/wexpect-uv.git
uv lock
uv syncThen 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.