tw-cli
Run scratch projects in the terminal
- Uses playwright and turbowarp scaffolding
- Supports the turbowarp debugger's log, warn, error and breakpoint blocks.
Installation
pip install turbowarp-cli
Bleeding edge:
1. git clone this repo 2. `pip install -e .` 3. to update, use `git pull`Usage
twcli run <Project path>
It only works on project files.
If you want to automatically supply inputs to ask and wait blocks, use the -i command:
twcli run .\Project.sb3 -i "hi" "there
This provides the arguments:
hithere
If you want to disable headless mode (to see the browser), use -H:
twcli run .\Project.sb3 -i "hi" "there" -H
If the exit code is 1, a Runtime error will always be raised. The only way to exit with code 1 is with a breakpoint block. Otherwise, the program will exit with code 0 when it naturally stops.
If you want to use your own 'error codes'
- Use the error block. This will print in red but not exit the program
- Use the breakpoint block
This is ^^ intentional design to keep things simpler.
Metadata
Release files for turbowarp-cli 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| turbowarp_cli-1.1.0.tar.gz | 2.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| turbowarp_cli-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.8 MB
Release files / turbowarp_cli-1.1.0.tar.gz
| Download URL | turbowarp_cli-1.1.0.tar.gz |
|---|---|
| Size | 2.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c1e73b558a2bf7ba71cdbe19b3efe962bcb951ef14e62151138efe1178ff7ab
|
|
BLAKE2b-256 checksum How to use checksums |
ec606a3f86126377c27bd93bee02061fb1e8b664be0b156ef0b850e17f684e13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|
Release files / turbowarp_cli-1.1.0-py3-none-any.whl
| Download URL | turbowarp_cli-1.1.0-py3-none-any.whl |
|---|---|
| Size | 2.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
927bb4ee4563ca12401295e07d02fb0f2ab8c40b257120f3dbbc12058bfb998c
|
|
BLAKE2b-256 checksum How to use checksums |
586647815fccec6d4ac020ed8e75dc0036717eb29915a9425a9c5ebc8e8ced7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|