Skip to main content

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:

  • hi
  • there

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'

  1. Use the error block. This will print in red but not exit the program
  2. 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)

Source distribution for turbowarp-cli 1.1.0
File Size Uploaded
turbowarp_cli-1.1.0.tar.gz 2.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for turbowarp-cli 1.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page