awesome-repositories.com
Blog
awesome-repositories.com

Entdecke die besten Open-Source-Repositories mit KI-gestützter Suche.

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektÜber unsRanking-MethodikPresseMCP-Server
RechtlichesDatenschutzAGB
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
docopt avatar

docopt/docopt

0
View on GitHub↗
8,008 Stars·558 Forks·Python·MIT·4 Aufrufe

Docopt

Docopt ist ein Parser für Befehlszeilenargumente und ein deklaratives Schnittstellentool, das rohe Terminaleingaben in eine strukturierte Datenkarte umwandelt. Es leitet seine Parsing-Logik und Anforderungen direkt aus einer standardisierten POSIX-Hilfenachricht ab und verwendet die Dokumentation als formale Spezifikation für die Schnittstelle.

Das System implementiert einen POSIX-Usage-Pattern-Parser, um menschenlesbare Hilfe-Strings in Regeln für die Extraktion von Optionen und Positionsargumenten zu übersetzen. Es generiert automatisch Hilfebildschirme und Versionsinformationen basierend auf den internen Nutzungsmustern, die vom Benutzer definiert wurden.

Das Tool sorgt für eine vorhersehbare Benutzererfahrung durch strikte Argument- und Optionsreihenfolge und verhindert das Mischen von Eingaben, sobald Positionsargumente auftreten. Es bietet eine vollständige Implementierung für das Design von Befehlszeilenschnittstellen und gleicht Eingabe-Token mit vordefinierten Mustern ab, um Datenstrukturen zu befüllen.

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.

Star-Verlauf

Star-Verlauf für docopt/docoptStar-Verlauf für docopt/docopt

KI-Suche

Entdecke weitere awesome Repositories

Beschreibe in einfachen Worten, was du brauchst — die KI bewertet tausende kuratierte Open-Source-Projekte nach Relevanz.

Start searching with AI

Open-Source-Alternativen zu Docopt

Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit Docopt.
  • commandlineparser/commandlineAvatar von commandlineparser

    commandlineparser/commandline

    4,817Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗4,817
  • remkop/picocliAvatar von remkop

    remkop/picocli

    5,387Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗5,387
  • fastapi/typerAvatar von fastapi

    fastapi/typer

    19,632Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗19,632
  • pallets/clickAvatar von pallets

    pallets/click

    17,560Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗17,560
Alle 30 Alternativen zu Docopt anzeigen→

Häufig gestellte Fragen

Was macht docopt/docopt?

Docopt ist ein Parser für Befehlszeilenargumente und ein deklaratives Schnittstellentool, das rohe Terminaleingaben in eine strukturierte Datenkarte umwandelt. Es leitet seine Parsing-Logik und Anforderungen direkt aus einer standardisierten POSIX-Hilfenachricht ab und verwendet die Dokumentation als formale Spezifikation für die Schnittstelle.

Was sind die Hauptfunktionen von docopt/docopt?

Die Hauptfunktionen von docopt/docopt sind: 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.

Welche Open-Source-Alternativen gibt es zu docopt/docopt?

Open-Source-Alternativen zu docopt/docopt sind unter anderem: 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…