Skip to main content

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.
  • v0.0.7: remove pkg_resources dependency for Python 3.13 compatibility.

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wexpect_uv-0.0.7.tar.gz (104.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wexpect_uv-0.0.7-py3-none-any.whl (50.7 kB view details)

Uploaded Python 3

File details

Details for the file wexpect_uv-0.0.7.tar.gz.

File metadata

  • Download URL: wexpect_uv-0.0.7.tar.gz
  • Upload date:
  • Size: 104.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for wexpect_uv-0.0.7.tar.gz
Algorithm Hash digest
SHA256 7d34c250e83111a56b07aa2999e2732ec46e4e5e80d64618d5e3d939aab7a0fe
MD5 169af3deeefd24d5a4731dbe886169e2
BLAKE2b-256 e2e66af48255f9de58d638387cf18b13435cece19aea04adfb12ef498b267922

See more details on using hashes here.

File details

Details for the file wexpect_uv-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: wexpect_uv-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 50.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for wexpect_uv-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9ef3d5ebed2d3c68138f11600d27d13e0315e409dcbd7219909868c26c5379b2
MD5 ed07b4a7ec1f675de990a2c1027fb8f2
BLAKE2b-256 93fd52539a4995d2a93aa0de0efe9b800834df004a1c11733f30b895ae10d952

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page