{"id":15357577,"url":"https://github.com/cvzi/assertwt","last_synced_at":"2025-04-15T06:52:40.054Z","repository":{"id":62591209,"uuid":"485137288","full_name":"cvzi/AssertWT","owner":"cvzi","description":"Run a Python script in Windows Terminal wt.exe","archived":false,"fork":false,"pushed_at":"2023-02-02T16:43:37.000Z","size":389,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T06:52:34.631Z","etag":null,"topics":["python","windows-console","windows-terminal"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/AssertWT/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cvzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-24T20:51:09.000Z","updated_at":"2024-03-29T22:24:43.000Z","dependencies_parsed_at":"2023-02-02T23:01:33.914Z","dependency_job_id":null,"html_url":"https://github.com/cvzi/AssertWT","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvzi%2FAssertWT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvzi%2FAssertWT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvzi%2FAssertWT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvzi%2FAssertWT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cvzi","download_url":"https://codeload.github.com/cvzi/AssertWT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249023710,"owners_count":21199958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","windows-console","windows-terminal"],"created_at":"2024-10-01T12:36:39.627Z","updated_at":"2025-04-15T06:52:40.034Z","avatar_url":"https://github.com/cvzi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"AssertWT\n========\n\nAssert that a Python script is run in the Windows Terminal 'wt.exe' instead\nof the standard 'conhost.exe' console.\n\n```python\n    \u003e\u003e\u003e import assertwt\n    \u003e\u003e\u003e assertwt.restart()\n```\n\nBy default the script is run with cmd.exe and the window is closed when the\nscript ends.\n\n```python\n\n# Default behaviour: cmd.exe and window closes after script:\nassertwt.restart([\"wt\", \"-d\", assertwt.CD, \"cmd\", \"/C\", assertwt.ARGV])\n\n# cmd.exe and windows does not close after script:\nassertwt.restart([\"wt\", \"-d\", assertwt.CD, \"cmd\", \"/K\", assertwt.ARGV])\n\n# Powershell and window closes after script:\nassertwt.restart([\"wt\", \"-d\", assertwt.CD, \"powershell\", \"-Command\", assertwt.ARGV])\n\n# Powershell and windows does not close after script:\nassertwt.restart([\"wt\", \"-d\", assertwt.CD, \"powershell\", \"-NoExit\", \"-Command\", assertwt.ARGV])\n\n# New tab in existing Windows Terminal window:\nassertwt.restart([\"wt\", \"new-tab\", \"-d\", assertwt.CD, \"cmd\", \"/K\", assertwt.ARGV])\n\n```\n\nInstall\n-------\n\n```shell\npip install assertwt\n```\n\nSee: [https://pypi.org/project/assertwt/](https://pypi.org/project/assertwt/)\n\nDocumentation\n-------------\n\nhttps://assertwt.readthedocs.io\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvzi%2Fassertwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcvzi%2Fassertwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvzi%2Fassertwt/lists"}