A command-line interface for PyScript.
Quickly wrap Python scripts into a HTML template, pre-configured with PyScript.
$ pip install pyscript-cli
$ pyscript wrap <filename.py>
This will generate a file called <filename.html>
by default.
This can be overwritten with the -o
or --output
option:
$ pyscript wrap <filename.py> -o <another_filename.html>
$ pyscript wrap <filename.py> --show
You can set the title of the browser tab with the --title
option:
$ pyscript wrap <filename.py> --title "My cool app!"
The -c
or --command
option can be used to demo very simple cases.
In this case, if the --show
option is used and no --output
file is used, a temporary file will be generated.
$ pyscript wrap -c 'print("Hello World!")' --show