awesome-repositories.com

AI-संचालित खोज के साथ बेहतरीन ओपन-सोर्स रिपॉजिटरी खोजें।

एक्सप्लोर करेंक्यूरेटेड खोजेंOpen-source alternativesSelf-hosted softwareब्लॉगसाइटमैप
प्रोजेक्टहमारे बारे मेंHow we rankप्रेसMCP सर्वर
कानूनीगोपनीयताशर्तें
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
awesome-repositories.comश्रेणियाँब्लॉग
docopt avatar

docopt/docopt

0
View on GitHub↗

Docopt

Docopt is a command-line argument parser and declarative interface tool that converts raw terminal input into a structured data map. It derives its parsing logic and requirements directly from a standardized POSIX-style help message, using the documentation as the formal specification for the interface.

The system implements a POSIX usage pattern parser to translate human-readable help strings into rules for extracting options and positional arguments. It automatically generates help screens and version information based on the internal usage patterns defined by the user.

The tool ensures a predictable user experience through strict argument and option ordering, preventing the mixing of inputs once positional arguments are encountered. It provides a complete implementation for command-line interface design, matching input tokens against predefined patterns to populate data structures.

AI सर्च

और अधिक बेहतरीन रिपॉजिटरी खोजें

अपनी ज़रूरत को सरल भाषा में बताएं — AI हजारों क्यूरेटेड ओपन-सोर्स प्रोजेक्ट्स को प्रासंगिकता के आधार पर रैंक करता है।

Start searching with AI

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.
8,008 स्टार्स·558 फोर्क्स·Python·MIT·2 व्यूज़

स्टार हिस्ट्री

docopt/docopt के लिए स्टार हिस्ट्री चार्टdocopt/docopt के लिए स्टार हिस्ट्री चार्ट

Docopt के ओपन-सोर्स विकल्प

समान ओपन-सोर्स प्रोजेक्ट्स, जो Docopt के साथ साझा की गई सुविधाओं के आधार पर रैंक किए गए हैं।
  • commandlineparser/commandlinecommandlineparser का अवतार

    commandlineparser/commandline

    4,817GitHub पर देखें↗

    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
    GitHub पर देखें↗4,817
  • remkop/picocliremkop का अवतार

    remkop/picocli

    5,387GitHub पर देखें↗

    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
    GitHub पर देखें↗5,387
  • fastapi/typerfastapi का अवतार

    fastapi/typer

    19,632GitHub पर देखें↗

    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
    GitHub पर देखें↗19,632
  • pallets/clickpallets का अवतार

    pallets/click

    17,560GitHub पर देखें↗

    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
    GitHub पर देखें↗17,560
Docopt के सभी 30 विकल्प देखें→

Frequently asked questions

What does docopt/docopt do?

Docopt is a command-line argument parser and declarative interface tool that converts raw terminal input into a structured data map. It derives its parsing logic and requirements directly from a standardized POSIX-style help message, using the documentation as the formal specification for the interface.

What are the main features of docopt/docopt?

The main features of docopt/docopt are: 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.

What are some open-source alternatives to docopt/docopt?

Open-source alternatives to docopt/docopt include: 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…