PTWM
ext_tooling

ptwm.ext_tooling.pack

ptwm ext pack — bundle into -.tar.zst.

ptwm.ext_tooling.pack

ptwm ext pack — bundle into -.tar.zst.

pymodule

ptwm.ext_tooling.pack

python/ptwm/ext_tooling/pack.py:1
module ptwm.ext_tooling.pack

ptwm ext pack — bundle into <name>-<version>.tar.zst.

pyfunction

ptwm.ext_tooling.pack.pack_bundle

python/ptwm/ext_tooling/pack.py:11
def pack_bundle(cwd: Path) -> Path

Create a ``<name>-<version>.tar.zst`` archive from the bundle in *cwd*.

The archive contains ``manifest.toml``, ``signature.bin`` (if present), and ``<name>.wasm`` (if present).
NameTypeDescription
cwdPathRoot directory of the extension bundle.
Returns
PathPath to the written ``.tar.zst`` archive (placed inside *cwd*).
Raises
  • ImportError — When ``zstandard`` is not installed. Install it via ``pip install ptwm[ext-dev]``.