AssertWT-2.3.1
توضیحات
Run a Python script in Windows Terminal wt.exe
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | AssertWT-2.3.1 |
| نام | AssertWT |
| نسخه کتابخانه | 2.3.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | cuzi <cuzi@openmail.cc> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/AssertWT/ |
| مجوز | Unlicense |
AssertWT
========
Assert that a Python script is run in the Windows Terminal 'wt.exe' instead
of the standard 'conhost.exe' console.
```python
>>> import assertwt
>>> assertwt.restart()
```
By default the script is run with cmd.exe and the window is closed when the
script ends.
```python
# 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
-------
```shell
pip install assertwt
```
See: [https://pypi.org/project/assertwt/](https://pypi.org/project/assertwt/)
Documentation
-------------
https://assertwt.readthedocs.io
نحوه نصب
نصب پکیج whl AssertWT-2.3.1:
pip install AssertWT-2.3.1.whl
نصب پکیج tar.gz AssertWT-2.3.1:
pip install AssertWT-2.3.1.tar.gz