awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
google avatar

google/python-fire

0
View on GitHub↗
28,208 stars·1,481 forks·Python·3 vues

Python Fire

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 command grouping and recursive object traversal to create structured, multi-level navigation trees. It includes the ability to parse complex data types from strings into Python literals and provides an integration to launch an interactive session immediately after executing a command.

Features

  • Object-to-CLI Mappers - A tool that maps Python dictionaries, lists, and classes directly to terminal commands for rapid prototyping and debugging.
  • Automatic CLI Generators - A library that automatically creates command line interfaces from any Python object, function, or class without manual argument parsing.
  • Function-to-CLI Converters - Turn functions, modules, or classes into a fully functional command line interface using Fire without writing manual argument parsing.
  • Source-to-CLI Generators - Generate a command line interface in Fire by mapping terminal arguments to functions, classes, dictionaries, lists, or object members.
  • CLI Synthesis - Uses Python runtime introspection to map object members and functions directly to command line arguments.
  • CLI Type Converters - Convert command line strings into Python literals such as integers, floats, booleans, lists, tuples, and dictionaries in Fire.
  • Command Line Literal Parsing - Converting terminal input strings into complex Python data types like lists and dictionaries for use in functions.
  • Nested Command Structures - Nest commands in Fire using classes or objects with member objects to create a structured, multi-level command hierarchy.
  • External Module Wrappers - Wrapping existing Python libraries or modules in a terminal interface to test functionality without modifying the source code.
  • Help Generators - Extracts function and class documentation strings to automatically build the user-facing command help interface.
  • Command Line Argument Casting - Converts string-based command line input into Python literals by analyzing the target object's expected types.
  • Object Hierarchy Navigation - Navigates nested classes and dictionaries to resolve hierarchical command paths during the execution phase.
  • Coroutine Integration - Execute coroutine functions through the Fire CLI and block until the asynchronous operation completes.
  • Interactive REPLs - Start a Python REPL session from the Fire command line to interact with objects directly after execution.
  • Command Line Handoffs - Launching a REPL session directly from the command line to inspect objects and variables after executing a specific command.
  • Stateful Handoffs - Transfers the current execution context and variable state into an interactive shell session after command completion.
  • Module Wrapping Interfaces - Wrap existing libraries or external modules in a Fire CLI to execute their functionality without modifying the source code.
  • Shell Completion Generators - Produce shell completion scripts in Fire to enable tab-completion for available commands and arguments in the terminal.
  • Asynchronous Function Execution - Detects asynchronous functions at runtime and manages the event loop to block until the operation finishes.
  • CLI Component Exposure - Limit CLI access to specific functions or classes in Fire to control which parts of a program are exposed.
  • CLI Development - Automatically generates CLIs from any Python object.
  • Python CLI Frameworks - Library for automatically generating CLIs from Python objects.

Historique des stars

Graphique de l'historique des stars pour google/python-fireGraphique de l'historique des stars pour google/python-fire

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Python Fire

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Python Fire.
  • fastapi/typerAvatar de fastapi

    fastapi/typer

    19,632Voir sur GitHub↗

    This project is a Python framework for building command-line interfaces by converting standard functions into executable programs. It uses type hints to automatically infer and generate argument parsers, validation logic, and help documentation, allowing developers to define complex terminal applications through simple function signatures. The framework distinguishes itself through a decorator-driven registration system that enables the construction of hierarchical command trees. It supports dependency injection to manage shared state and runtime configuration across subcommands, and it utili

    Pythoncliclickpython
    Voir sur GitHub↗19,632
  • pallets/clickAvatar de pallets

    pallets/click

    17,560Voir sur GitHub↗

    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

    Pythoncliclickpallets
    Voir sur GitHub↗17,560
  • remkop/picocliAvatar de remkop

    remkop/picocli

    5,387Voir sur GitHub↗

    picocli is a command line interface development framework and argument parser for JVM-based applications. It maps command line options and positional parameters to strongly typed Java methods and fields using a declarative, annotation-based model. The framework provides specific support for native image compilation, producing the reflection and resource configuration files necessary to build standalone binaries with reduced startup overhead. It further distinguishes itself with a dedicated system for generating shell autocompletion scripts and an ANSI terminal stylizer for applying colors and

    Java
    Voir sur GitHub↗5,387
  • clap-rs/clapAvatar de clap-rs

    clap-rs/clap

    16,528Voir sur GitHub↗

    Clap is a command-line argument parser for Rust that enables developers to define complex interfaces through strongly-typed data structures. It functions as a comprehensive framework for building terminal applications, automating the transformation of raw string inputs into validated, type-safe code representations while simultaneously generating help documentation and usage statements. The library distinguishes itself by offering both a declarative, attribute-based approach and a fluent builder-pattern API, allowing for flexible interface construction. It includes a sophisticated validation

    Rustargument-parserargument-parsingcommand-line
    Voir sur GitHub↗16,528
Voir les 30 alternatives à Python Fire→

Questions fréquentes

Que fait google/python-fire ?

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.

Quelles sont les fonctionnalités principales de google/python-fire ?

Les fonctionnalités principales de google/python-fire sont : Object-to-CLI Mappers, Automatic CLI Generators, Function-to-CLI Converters, Source-to-CLI Generators, CLI Synthesis, CLI Type Converters, Command Line Literal Parsing, Nested Command Structures.

Quelles sont les alternatives open-source à google/python-fire ?

Les alternatives open-source à google/python-fire incluent : fastapi/typer — This project is a Python framework for building command-line interfaces by converting standard functions into… pallets/click — Click is a Python framework for building command-line interfaces. It provides a declarative approach to defining… remkop/picocli — picocli is a command line interface development framework and argument parser for JVM-based applications. It maps… clap-rs/clap — Clap is a command-line argument parser for Rust that enables developers to define complex interfaces through… docopt/docopt — Docopt is a command-line argument parser and declarative interface tool that converts raw terminal input into a… rails/thor — Thor is a Ruby toolkit for building command line interfaces and task runners. It maps user flags and parameters to…