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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| AssertWT-2.3.1.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|