Skip to content

Module

clak

Clak: A Command Line Application Kit.

Clak is a framework for building command line applications in Python. It extends and enhances Python's argparse with features like:

  • Simplified parser composition and inheritance
  • Rich command completion support
  • XDG config file integration
  • Structured logging configuration
  • Recursive subcommand handling

The framework provides both a classic API compatible with argparse and a modern, more declarative API for defining commands.

Key components: - Parser: Enhanced ArgumentParser with plugin support - SubParser: For creating command hierarchies - CompRenderCmdMixin: For command completion - XDGConfigMixin: For config file handling - LoggingOptMixin: For logging setup