Skip to main content

AssertWT

Assert that a Python script is run in the Windows Terminal 'wt.exe' instead of the standard 'conhost.exe' console.

    >>> import assertwt
    >>> assertwt.restart()

By default the script is run with cmd.exe and the window is closed when the script ends.

# Default behaviour: cmd.exe and window closes after script:
assertwt.restart(["wt", "-d", assertwt.CD, "cmd", "/C", assertwt.ARGV])

# cmd.exe and windows does not close after script:
assertwt.restart(["wt", "-d", assertwt.CD, "cmd", "/K", assertwt.ARGV])

# Powershell and window closes after script:
assertwt.restart(["wt", "-d", assertwt.CD, "powershell", "-Command", assertwt.ARGV])

# Powershell and windows does not close after script:
assertwt.restart(["wt", "-d", assertwt.CD, "powershell", "-NoExit", "-Command", assertwt.ARGV])

# New tab in existing Windows Terminal window:
assertwt.restart(["wt", "new-tab", "-d", assertwt.CD, "cmd", "/K", assertwt.ARGV])

Install

pip install assertwt

See: https://pypi.org/project/assertwt/

Documentation

https://assertwt.readthedocs.io

Metadata

Release files for AssertWT 2.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AssertWT 2.3.1
File Size Uploaded
AssertWT-2.3.1.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for AssertWT 2.3.1
File Interpreter ABI Platform
AssertWT-2.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / AssertWT-2.3.1.tar.gz

Download URL AssertWT-2.3.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3796fb65a26967f595d8bc9d5457d0567be9d1149551f9bebb32d5ffda85d573
BLAKE2b-256 checksum
How to use checksums
c1e8474ecac65e087693991e2dac2ac1399a4754e5f4cc58aa3eb399a646c562
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / AssertWT-2.3.1-py3-none-any.whl

Download URL AssertWT-2.3.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5de0892078f9637addf03067fde163f3be055a87aa4d6726968d46e3b54db75f
BLAKE2b-256 checksum
How to use checksums
ab920f04b37412cdd7f1c6f4f26c040d6db4d044a12946d5318ab0fd115f7f40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

2.3.1 This release

2 release files

2.3.0

1 release file

2.2.0

1 release file

2.1.0

1 release file

1.0.0

2 release 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