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 | Provenance | Actions |
|---|---|---|---|---|
| turbowarp_cli-1.1.0.tar.gz | 2.4 MB | Without provenance | Details for turbowarp_cli-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| turbowarp_cli-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for turbowarp_cli-1.1.0-py3-none-any.whl |
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
|
Security for turbowarp-cli 1.1.0
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.