pyodide-pack CLI#
This page documents the pyodide-pack Command Line Interface (CLI) interface,
pyodide pack#
Create a minimal bundle for a Pyodide application with the required dependencies
Experimental: this is based on runtime dependency analysis and may not work for all applications.
pyodide pack [OPTIONS] EXAMPLE_PATH
Options
- -v#
Increase verbosity (currently ignored)
- Default:
False
- --config <config_path>#
Path to the pyproject.toml with the tool.pyodide_pack section
- --include <include_paths>#
One or multiple glob patterns separated by “,” of extra files to include
- --write-debug-map, --no-write-debug-map#
Write a debug map (to ‘./debug-map.json’) with allthe detected imports for the generated bundle
- Default:
False
- --install-completion#
Install completion for the current shell.
- --show-completion#
Show completion for the current shell, to copy it or customize the installation.
Arguments
- EXAMPLE_PATH#
Required argument
pyodide minify#
Minify a folder of Python files.
Note: this API will change before the next release
pyodide minify [OPTIONS] INPUT_DIR
Options
- --strip-docstrings, --no-strip-docstrings#
Strip docstrings
- Default:
False
- --strip-module-docstrings, --no-strip-module-docstrings#
Strip module lebel docstrings
- Default:
False
- --install-completion#
Install completion for the current shell.
- --show-completion#
Show completion for the current shell, to copy it or customize the installation.
Arguments
- INPUT_DIR#
Required argument