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 Provenance Actions
AssertWT-2.3.1.tar.gz 3.5 kB Without provenance Details for AssertWT-2.3.1.tar.gz

Built distribution (wheel)

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

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

Security for AssertWT 2.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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