Face: Command-line application framework

26.0.0 · active · verified Sun Apr 05

Face is a Pythonic microframework for building command-line applications (CLI parser). It provides first-class subcommand support, a powerful middleware architecture, a separate Parser layer, built-in flagfile support, handy testing utilities, and a themeable help display. The current version is 26.0.0, released on February 13, 2026, indicating active development.

Warnings

Install

Imports

Quickstart

This quickstart defines a simple command-line application with a 'hello' command that takes an optional 'name' argument. Running this script will execute the CLI parser and dispatch to the 'hello' function.

from face import Command, echo

@Command
def hello(name: str = 'World'):
    """A simple greeting command."""
    echo(f"Hello, {name}!")

if __name__ == '__main__':
    hello.run()

view raw JSON →