17 个仓库
Extensive collection of libraries for building CLI applications in Python.
Explore 17 awesome GitHub repositories matching part of an awesome list · Python CLI Frameworks. Refine with filters or upvote what's useful.
Python Fire is a library that automatically generates command line interfaces from any Python object, function, or class. It removes the need for manual argument parsing by mapping Python dictionaries, lists, and classes directly to terminal commands. The tool converts Python docstrings into formatted terminal help screens and produces shell scripts to enable tab-completion for available commands. It can wrap existing libraries or external modules to expose their functionality via the terminal without requiring modifications to the original source code. The library supports hierarchical comm
A tool that maps Python dictionaries, lists, and classes directly to terminal commands for rapid prototyping and debugging.
Click is a Python framework for building command-line interfaces. It provides a declarative approach to defining command structures, allowing developers to map functions to command-line arguments, options, and nested groups using decorators. The framework handles the complexities of parameter parsing, type validation, and help documentation generation automatically. The project distinguishes itself through its hierarchical context system, which propagates configuration and state across nested commands, and its environment-aware parameter resolution that prioritizes command-line inputs, enviro
Package for creating composable command-line interfaces.
This project is a Python terminal user interface library and toolkit designed for building interactive command-line applications. It provides a terminal input manager and a widget toolkit for rendering dashboards, menus, and editors within a terminal emulator. The library enables the creation of full-screen terminal interfaces and interactive shells. It distinguishes itself with advanced input handling, including lexer-based syntax highlighting for visual feedback on code structure and support for industry-standard keyboard navigation modes such as Emacs and Vi. The capability surface covers
Library for building powerful interactive CLI applications.
Docopt 是一个命令行参数解析器和声明式接口工具,可将原始终端输入转换为结构化数据映射。它直接从标准化的 POSIX 风格帮助信息中推导解析逻辑和需求,将文档作为接口的正式规范。 该系统实现了 POSIX 用法模式解析器,将人类可读的帮助字符串转换为提取选项和位置参数的规则。它根据用户定义的内部用法模式自动生成帮助屏幕和版本信息。 该工具通过严格的参数和选项排序确保可预测的用户体验,防止在遇到位置参数后混入其他输入。它为命令行接口设计提供了完整的实现,通过将输入标记与预定义模式匹配来填充数据结构。
Pythonic argument parser based on help messages.
Translates command-line arguments into the same configuration dictionary used by the Python API.
A Python module for common interactive command line user interfaces
Library for creating beautiful, interactive CLI prompts.
Library for rendering ASCII art text in terminals.
Create beautiful and testable command-line interfaces.
Library for creating beautiful and testable interfaces.
Application Framework for Python
Advanced application framework focused on CLI development.
Intuitive, easy CLIs based on python type hints.
Intuitive CLI builder based on type hints.
CLI interfaces & config objects, from types
Tool for generating interfaces and configuration objects.
Tap is a typed modernization of Python's argparse library.
Typed modernization of the standard argument parser.
simple-parsing allows you to transform your ugly argparse scripts into beautifully structured, strongly typed little works of art. This isn't a fancy, complicated new command-line tool either, this simply adds new features to plain-old argparse! Using dataclasses, simple-parsing makes it easier…
Library for creating structured, typed CLI interfaces.
plac is a Python package that can generate command line parameters from function signatures.
Library to generate parameters from function signatures.
Team and repository tags
Framework for building programs with subcommands and formatters.
docopt-ng is a fork of the original docopt, now maintained by the jazzband project. Now with maintenance, typehints, and complete test coverage!
Maintained version of the docopt argument parser.