Module

_cli

Command-line interface for pounce.

Provides thepouncecommand::

pounce myapp:app --host 0.0.0.0 --port 8000 --workers 4

Uses argparse (stdlib) — no extra dependencies.

Functions

main 1 None
Entry point for the ``pounce`` CLI command.
def main(args: list[str] | None = None) -> None
Parameters
Name Type Description
args list[str] | None

Command-line arguments (defaults to sys.argv[1:]).

Default:None
parse_extensions 1 tuple[str, ...]
Parse a comma-separated extensions string into a normalized tuple. Ensures eac…
def parse_extensions(raw: str | None) -> tuple[str, ...]

Parse a comma-separated extensions string into a normalized tuple.

Ensures each extension starts with a dot and strips whitespace. Empty entries are filtered out.

Parameters
Name Type Description
raw str | None

Comma-separated string (e.g.".html,.css,md"), or None.

Returns
tuple[str, ...]
parse_dirs 1 tuple[str, ...]
Parse a list of directory strings into a cleaned tuple. Strips whitespace and …
def parse_dirs(raw: list[str] | None) -> tuple[str, ...]

Parse a list of directory strings into a cleaned tuple.

Strips whitespace and filters empty entries.

Parameters
Name Type Description
raw list[str] | None

List of directory paths (from argparseappend), or None.

Returns
tuple[str, ...]
_build_parser 0 argparse.ArgumentParser
Build the argument parser for the pounce CLI.
def _build_parser() -> argparse.ArgumentParser
Returns
argparse.ArgumentParser