awesome-repositories.com
Blog
awesome-repositories.com

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectDespreCum realizăm clasamentulPresăServer MCP
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
docopt avatar

docopt/docopt

0
View on GitHub↗
8,008 stele·558 fork-uri·Python·MIT·4 vizualizări

Docopt

Docopt este un parser de argumente pentru linia de comandă și un instrument de interfață declarativă care convertește input-ul brut din terminal într-o hartă de date structurată. Acesta își derivă logica de parsare și cerințele direct dintr-un mesaj de ajutor standardizat de tip POSIX, folosind documentația ca specificație formală pentru interfață.

Sistemul implementează un parser de tipar de utilizare POSIX pentru a traduce șirurile de ajutor lizibile pentru oameni în reguli pentru extragerea opțiunilor și a argumentelor poziționale. Acesta generează automat ecrane de ajutor și informații despre versiune bazate pe tiparele de utilizare interne definite de utilizator.

Instrumentul asigură o experiență previzibilă pentru utilizator prin ordonarea strictă a argumentelor și opțiunilor, prevenind amestecarea input-urilor odată ce argumentele poziționale sunt întâlnite. Oferă o implementare completă pentru designul interfeței de linie de comandă, potrivind token-urile de input cu tipare predefinite pentru a popula structurile de date.

Features

  • Usage-Pattern-Based Parsing - Translates a formal help string into a set of rules for extracting options and positional arguments from input.
  • CLI Token Consumption - Processes the input stream sequentially to identify flags and arguments while adhering to specified order constraints.
  • CLI Token Matching - Matches raw command line tokens against defined usage patterns to populate a structured data map.
  • Declarative Argument Definitions - Defines CLI interfaces using a human-readable help message as a declarative source of truth instead of imperative logic.
  • Command Line Argument Parsers - Parses raw shell input strings into structured objects based on a predefined usage pattern.
  • POSIX Usage Parsers - Derives command-line logic and requirements directly from a standardized POSIX-style help message.
  • POSIX CLI Compliance - Creates command line tools that follow standard POSIX conventions for flags and arguments.
  • CLI Specification Design - Defines how a program accepts user inputs by writing a clear usage message that the system automatically parses.
  • Strict Argument Ordering - Ensures all options appear before positional arguments to prevent mixing inputs and ensure predictable command parsing.
  • Command Help Displays - Displays formatted help screens and version information when specific command flags are provided.
  • Help Generators - Automatically generates terminal-friendly documentation and version information from the internal usage specification.
  • Help Text Generators - Automatically constructs and formats instructional help documentation based on the parsed usage patterns.
  • Strict Option Sequencing - Stops accepting options once the first positional argument is encountered to maintain a strict sequence of command inputs.
  • CLI Development - Creates command-line interfaces based on usage documentation strings.
  • Python CLI Frameworks - Pythonic argument parser based on help messages.

Istoric stele

Graficul istoricului de stele pentru docopt/docoptGraficul istoricului de stele pentru docopt/docopt

Căutare AI

Explorează mai multe repository-uri excelente

Descrie ce ai nevoie în limbaj simplu — AI-ul sortează mii de proiecte open source selectate în funcție de relevanță.

Start searching with AI

Alternative open-source pentru Docopt

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu Docopt.
  • commandlineparser/commandlineAvatar commandlineparser

    commandlineparser/commandline

    4,817Vezi pe GitHub↗

    This library is a .NET command line parser for C# and F# that implements POSIX getopt conventions to map shell arguments into strongly typed objects. It provides a framework for building console applications that process Unix-style flags and options. The project features a routing system that directs program execution based on action-oriented verbs, supporting sub-commands and default actions. It includes an automatic help generator that produces localized usage instructions and formatted help screens based on the defined command options. The toolset covers argument parsing with strongly typ

    C#command-linedotnetdotnet-core
    Vezi pe GitHub↗4,817
  • remkop/picocliAvatar remkop

    remkop/picocli

    5,387Vezi pe 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
    Vezi pe GitHub↗5,387
  • fastapi/typerAvatar fastapi

    fastapi/typer

    19,632Vezi pe 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
    Vezi pe GitHub↗19,632
  • pallets/clickAvatar pallets

    pallets/click

    17,560Vezi pe 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
    Vezi pe GitHub↗17,560
Vezi toate cele 30 alternative pentru Docopt→

Întrebări frecvente

Ce face docopt/docopt?

Docopt este un parser de argumente pentru linia de comandă și un instrument de interfață declarativă care convertește input-ul brut din terminal într-o hartă de date structurată. Acesta își derivă logica de parsare și cerințele direct dintr-un mesaj de ajutor standardizat de tip POSIX, folosind documentația ca specificație formală pentru interfață.

Care sunt principalele funcționalități ale docopt/docopt?

Principalele funcționalități ale docopt/docopt sunt: Usage-Pattern-Based Parsing, CLI Token Consumption, CLI Token Matching, Declarative Argument Definitions, Command Line Argument Parsers, POSIX Usage Parsers, POSIX CLI Compliance, CLI Specification Design.

Care sunt câteva alternative open-source pentru docopt/docopt?

Alternativele open-source pentru docopt/docopt includ: commandlineparser/commandline — This library is a .NET command line parser for C# and F# that implements POSIX getopt conventions to map shell… remkop/picocli — picocli is a command line interface development framework and argument parser for JVM-based applications. It maps… 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… google/python-fire — Python Fire is a library that automatically generates command line interfaces from any Python object, function, or… cliutils/cli11 — CLI11 is a header-only C++ library for parsing command line arguments and managing configuration files. It maps shell…