docopt-ng


Namedocopt-ng JSON
Version 0.9.0 PyPI version JSON
download
home_page
SummaryJazzband-maintained fork of docopt, the humane command line arguments parser.
upload_time2023-05-30 20:46:25
maintainer
docs_urlNone
author
requires_python>=3.7
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # **docopt-ng** creates *beautiful* command-line interfaces

[![Test](https://github.com/jazzband/docopt-ng/actions/workflows/test.yml/badge.svg?event=push)](https://github.com/jazzband/docopt-ng/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/jazzband/docopt-ng/branch/master/graph/badge.svg)](https://codecov.io/gh/jazzband/docopt-ng)
[![image](https://img.shields.io/pypi/v/docopt-ng.svg)](https://pypi.python.org/pypi/docopt-ng)
[![Jazzband](https://jazzband.co/static/img/badge.svg)](https://jazzband.co/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

**docopt-ng** is a fork of the [original docopt](https://github.com/docopt/docopt), now maintained by the
[jazzband](https://jazzband.co/) project. Now with maintenance, typehints, and complete test coverage!

**docopt-ng** helps you create beautiful command-line interfaces:

```python
"""Naval Fate.

Usage:
  naval_fate.py ship new <name>...
  naval_fate.py ship <name> move <x> <y> [--speed=<kn>]
  naval_fate.py ship shoot <x> <y>
  naval_fate.py mine (set|remove) <x> <y> [--moored | --drifting]
  naval_fate.py (-h | --help)
  naval_fate.py --version

Options:
  -h --help     Show this screen.
  --version     Show version.
  --speed=<kn>  Speed in knots [default: 10].
  --moored      Moored (anchored) mine.
  --drifting    Drifting mine.

"""
from docopt import docopt

if __name__ == "__main__":
    argv = ["ship", "Guardian", "move", "100", "150", "--speed=15"]
    arguments = docopt(__doc__, argv)
    print(arguments)
```

results in:

```python
{'--drifting': False,
 '--help': False,
 '--moored': False,
 '--speed': '15',
 '--version': False,
 '<name>': ['Guardian'],
 '<x>': '100',
 '<y>': '150',
 'mine': False,
 'move': True,
 'new': False,
 'remove': False,
 'set': False,
 'ship': True,
 'shoot': False}
```

Beat that! The option parser is generated based on the docstring above
that is passed to `docopt` function. `docopt` parses the usage pattern
(`"Usage: ..."`) and option descriptions (lines starting with dash
"`-`") and ensures that the program invocation matches the usage
pattern; it parses options, arguments and commands based on that. The
basic idea is that *a good help message has all necessary information in
it to make a parser*.

Also, [PEP 257](http://www.python.org/dev/peps/pep-0257/) recommends
putting help message in the module docstrings.

# Installation

Use [pip](http://pip-installer.org):

    python -m pip install docopt-ng

**docopt-ng** is tested with Python 3.7+.

# API

```python
def docopt(
    docstring: str,
    argv: list[str] | str | None = None,
    default_help: bool = True,
    version: Any = None,
    options_first: bool = False,
) -> ParsedOptions:
```

`docopt` takes a docstring, and 4 optional arguments:

-   `docstring` is a string that contains a **help message** that will be
    used to create the option parser.
    The simple rules of how to write such a help message
    are given in next sections. Typically you would just use `__doc__`.

-   `argv` is an optional argument vector; by default `docopt` uses the
    argument vector passed to your program (`sys.argv[1:]`).
    Alternatively you can supply a list of strings like
    `["--verbose", "-o", "hai.txt"]`, or a single string that will be split
    on spaces like `"--verbose -o hai.txt"`.

-   `default_help`, by default `True`, specifies whether the parser should
    automatically print the help message (supplied as `doc`) and
    terminate, in case `-h` or `--help` option is encountered (options
    should exist in usage pattern, more on that below). If you want to
    handle `-h` or `--help` options manually (as other options), set
    `help=False`.

-   `version`, by default `None`, is an optional argument that specifies
    the version of your program. If supplied, then, (assuming
    `--version` option is mentioned in usage pattern) when parser
    encounters the `--version` option, it will print the supplied
    version and terminate. `version` could be any printable object, but
    most likely a string, e.g. `"2.1.0rc1"`.

    > Note, when `docopt` is set to automatically handle `-h`, `--help`
    > and `--version` options, you still need to mention them in usage
    > pattern for this to work. Also, for your users to know about them.

-   `options_first`, by default `False`. If set to `True` will disallow
    mixing options and positional argument. I.e. after first positional
    argument, all arguments will be interpreted as positional even if
    the look like options. This can be used for strict compatibility
    with POSIX, or if you want to dispatch your arguments to other
    programs.

The **return** value is a simple dictionary with options, arguments and
commands as keys, spelled exactly like in your help message. Long
versions of options are given priority. Furthermore, dot notation is
supported, with preceeding dashes (`-`) and surrounding brackets (`<>`)
ignored, for example `arguments.drifting` or `arguments.x`.

# Help message format

Help message consists of 2 parts:

-   Usage pattern, e.g.:

        Usage: my_program.py [-hso FILE] [--quiet | --verbose] [INPUT ...]

-   Option descriptions, e.g.:

        -h --help    show this
        -s --sorted  sorted output
        -o FILE      specify output file [default: ./test.txt]
        --quiet      print less text
        --verbose    print more text

Their format is described below; other text is ignored.

## Usage pattern format

**Usage pattern** is a substring of `doc` that starts with `usage:`
(case *insensitive*) and ends with a *visibly* empty line. Minimum
example:

```python
"""Usage: my_program.py

"""
```

The first word after `usage:` is interpreted as your program's name. You
can specify your program's name several times to signify several
exclusive patterns:

```python
"""Usage: my_program.py FILE
          my_program.py COUNT FILE

"""
```

Each pattern can consist of the following elements:

-   **&lt;arguments&gt;**, **ARGUMENTS**. Arguments are specified as
    either upper-case words, e.g. `my_program.py CONTENT-PATH` or words
    surrounded by angular brackets: `my_program.py <content-path>`.
-   **--options**. Options are words started with dash (`-`), e.g.
    `--output`, `-o`. You can "stack" several of one-letter options,
    e.g. `-oiv` which will be the same as `-o -i -v`. The options can
    have arguments, e.g. `--input=FILE` or `-i FILE` or even `-iFILE`.
    However it is important that you specify option descriptions if you
    want your option to have an argument, a default value, or specify
    synonymous short/long versions of the option (see next section on
    option descriptions).
-   **commands** are words that do *not* follow the described above
    conventions of `--options` or `<arguments>` or `ARGUMENTS`, plus two
    special commands: dash "`-`" and double dash "`--`" (see below).

Use the following constructs to specify patterns:

-   **\[ \]** (brackets) **optional** elements. e.g.:
    `my_program.py [-hvqo FILE]`
-   **( )** (parens) **required** elements. All elements that are *not*
    put in **\[ \]** are also required, e.g.:
    `my_program.py --path=<path> <file>...` is the same as
    `my_program.py (--path=<path> <file>...)`. (Note, "required options"
    might be not a good idea for your users).
-   **|** (pipe) **mutually exclusive** elements. Group them using **(
    )** if one of the mutually exclusive elements is required:
    `my_program.py (--clockwise | --counter-clockwise) TIME`. Group them
    using **\[ \]** if none of the mutually-exclusive elements are
    required: `my_program.py [--left | --right]`.
-   **...** (ellipsis) **one or more** elements. To specify that
    arbitrary number of repeating elements could be accepted, use
    ellipsis (`...`), e.g. `my_program.py FILE ...` means one or more
    `FILE`-s are accepted. If you want to accept zero or more elements,
    use brackets, e.g.: `my_program.py [FILE ...]`. Ellipsis works as a
    unary operator on the expression to the left.
-   **\[options\]** (case sensitive) shortcut for any options. You can
    use it if you want to specify that the usage pattern could be
    provided with any options defined below in the option-descriptions
    and do not want to enumerate them all in usage-pattern.
-   "`[--]`". Double dash "`--`" is used by convention to separate
    positional arguments that can be mistaken for options. In order to
    support this convention add "`[--]`" to your usage patterns.
-   "`[-]`". Single dash "`-`" is used by convention to signify that
    `stdin` is used instead of a file. To support this add "`[-]`" to
    your usage patterns. "`-`" acts as a normal command.

If your pattern allows to match argument-less option (a flag) several
times:

    Usage: my_program.py [-v | -vv | -vvv]

then number of occurrences of the option will be counted. I.e.
`args["-v"]` will be `2` if program was invoked as `my_program -vv`.
Same works for commands.

If your usage patterns allows to match same-named option with argument
or positional argument several times, the matched arguments will be
collected into a list:

    Usage: my_program.py <file> <file> --path=<path>...

I.e. invoked with
`my_program.py file1 file2 --path=./here --path=./there` the returned
dict will contain `args["<file>"] == ["file1", "file2"]` and
`args["--path"] == ["./here", "./there"]`.

## Option descriptions format

**Option descriptions** consist of a list of options that you put below
your usage patterns.

It is necessary to list option descriptions in order to specify:

-   synonymous short and long options,
-   if an option has an argument,
-   if option's argument has a default value.

The rules are as follows:

-   Every line in `doc` that starts with `-` or `--` (not counting
    spaces) is treated as an option description, e.g.:

        Options:
          --verbose   # GOOD
          -o FILE     # GOOD
        Other: --bad  # BAD, line does not start with dash "-"

-   To specify that option has an argument, put a word describing that
    argument after space (or equals "`=`" sign) as shown below. Follow
    either &lt;angular-brackets&gt; or UPPER-CASE convention for
    options' arguments. You can use comma if you want to separate
    options. In the example below, both lines are valid, however you are
    recommended to stick to a single style.:

        -o FILE --output=FILE       # without comma, with "=" sign
        -i <file>, --input <file>   # with comma, without "=" sign

-   Use two spaces to separate options with their informal description:

        --verbose More text.   # BAD, will be treated as if verbose option had
                               # an argument "More", so use 2 spaces instead
        -q        Quit.        # GOOD
        -o FILE   Output file. # GOOD
        --stdout  Use stdout.  # GOOD, 2 spaces

-   If you want to set a default value for an option with an argument,
    put it into the option-description, in form
    `[default: <my-default-value>]`:

        --coefficient=K  The K coefficient [default: 2.95]
        --output=FILE    Output file [default: test.txt]
        --directory=DIR  Some directory [default: ./]

-   If the option is not repeatable, the value inside `[default: ...]`
    will be interpreted as string. If it *is* repeatable, it will be
    splited into a list on whitespace:

        Usage: my_program.py [--repeatable=<arg> --repeatable=<arg>]
                             [--another-repeatable=<arg>]...
                             [--not-repeatable=<arg>]

        # will be ["./here", "./there"]
        --repeatable=<arg>          [default: ./here ./there]

        # will be ["./here"]
        --another-repeatable=<arg>  [default: ./here]

        # will be "./here ./there", because it is not repeatable
        --not-repeatable=<arg>      [default: ./here ./there]

# Examples

We have an extensive list of
[examples](https://github.com/jazzband/docopt-ng/tree/master/examples)
which cover every aspect of functionality of **docopt-ng**. Try them
out, read the source if in doubt.

# Development

We would *love* to hear what you think about **docopt-ng** on our
[issues page](https://github.com/jazzband/docopt-ng/issues). Make pull requests, report bugs, and suggest ideas.

To setup your dev environment, fork this repo and clone it locally.
We use [pdm](https://pdm.fming.dev/latest/#installation) to
manage the project, so install that first.

Then install dev requirements and the package itself as editable, then
install the pre-commit hooks:

    pdm sync -d -G dev
    pdm run pre-commit install

Useful testing, linting, and formatting commands:

    pdm run pytest
    pdm run black .
    pdm run ruff .

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "docopt-ng",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "",
    "author_email": "Nick Crews <nicholas.b.crews@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/e4/50/8d6806cf13138127692ae6ff79ddeb4e25eb3b0bcc3c1bd033e7e04531a9/docopt_ng-0.9.0.tar.gz",
    "platform": null,
    "description": "# **docopt-ng** creates *beautiful* command-line interfaces\n\n[![Test](https://github.com/jazzband/docopt-ng/actions/workflows/test.yml/badge.svg?event=push)](https://github.com/jazzband/docopt-ng/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/jazzband/docopt-ng/branch/master/graph/badge.svg)](https://codecov.io/gh/jazzband/docopt-ng)\n[![image](https://img.shields.io/pypi/v/docopt-ng.svg)](https://pypi.python.org/pypi/docopt-ng)\n[![Jazzband](https://jazzband.co/static/img/badge.svg)](https://jazzband.co/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n**docopt-ng** is a fork of the [original docopt](https://github.com/docopt/docopt), now maintained by the\n[jazzband](https://jazzband.co/) project. Now with maintenance, typehints, and complete test coverage!\n\n**docopt-ng** helps you create beautiful command-line interfaces:\n\n```python\n\"\"\"Naval Fate.\n\nUsage:\n  naval_fate.py ship new <name>...\n  naval_fate.py ship <name> move <x> <y> [--speed=<kn>]\n  naval_fate.py ship shoot <x> <y>\n  naval_fate.py mine (set|remove) <x> <y> [--moored | --drifting]\n  naval_fate.py (-h | --help)\n  naval_fate.py --version\n\nOptions:\n  -h --help     Show this screen.\n  --version     Show version.\n  --speed=<kn>  Speed in knots [default: 10].\n  --moored      Moored (anchored) mine.\n  --drifting    Drifting mine.\n\n\"\"\"\nfrom docopt import docopt\n\nif __name__ == \"__main__\":\n    argv = [\"ship\", \"Guardian\", \"move\", \"100\", \"150\", \"--speed=15\"]\n    arguments = docopt(__doc__, argv)\n    print(arguments)\n```\n\nresults in:\n\n```python\n{'--drifting': False,\n '--help': False,\n '--moored': False,\n '--speed': '15',\n '--version': False,\n '<name>': ['Guardian'],\n '<x>': '100',\n '<y>': '150',\n 'mine': False,\n 'move': True,\n 'new': False,\n 'remove': False,\n 'set': False,\n 'ship': True,\n 'shoot': False}\n```\n\nBeat that! The option parser is generated based on the docstring above\nthat is passed to `docopt` function. `docopt` parses the usage pattern\n(`\"Usage: ...\"`) and option descriptions (lines starting with dash\n\"`-`\") and ensures that the program invocation matches the usage\npattern; it parses options, arguments and commands based on that. The\nbasic idea is that *a good help message has all necessary information in\nit to make a parser*.\n\nAlso, [PEP 257](http://www.python.org/dev/peps/pep-0257/) recommends\nputting help message in the module docstrings.\n\n# Installation\n\nUse [pip](http://pip-installer.org):\n\n    python -m pip install docopt-ng\n\n**docopt-ng** is tested with Python 3.7+.\n\n# API\n\n```python\ndef docopt(\n    docstring: str,\n    argv: list[str] | str | None = None,\n    default_help: bool = True,\n    version: Any = None,\n    options_first: bool = False,\n) -> ParsedOptions:\n```\n\n`docopt` takes a docstring, and 4 optional arguments:\n\n-   `docstring` is a string that contains a **help message** that will be\n    used to create the option parser.\n    The simple rules of how to write such a help message\n    are given in next sections. Typically you would just use `__doc__`.\n\n-   `argv` is an optional argument vector; by default `docopt` uses the\n    argument vector passed to your program (`sys.argv[1:]`).\n    Alternatively you can supply a list of strings like\n    `[\"--verbose\", \"-o\", \"hai.txt\"]`, or a single string that will be split\n    on spaces like `\"--verbose -o hai.txt\"`.\n\n-   `default_help`, by default `True`, specifies whether the parser should\n    automatically print the help message (supplied as `doc`) and\n    terminate, in case `-h` or `--help` option is encountered (options\n    should exist in usage pattern, more on that below). If you want to\n    handle `-h` or `--help` options manually (as other options), set\n    `help=False`.\n\n-   `version`, by default `None`, is an optional argument that specifies\n    the version of your program. If supplied, then, (assuming\n    `--version` option is mentioned in usage pattern) when parser\n    encounters the `--version` option, it will print the supplied\n    version and terminate. `version` could be any printable object, but\n    most likely a string, e.g. `\"2.1.0rc1\"`.\n\n    > Note, when `docopt` is set to automatically handle `-h`, `--help`\n    > and `--version` options, you still need to mention them in usage\n    > pattern for this to work. Also, for your users to know about them.\n\n-   `options_first`, by default `False`. If set to `True` will disallow\n    mixing options and positional argument. I.e. after first positional\n    argument, all arguments will be interpreted as positional even if\n    the look like options. This can be used for strict compatibility\n    with POSIX, or if you want to dispatch your arguments to other\n    programs.\n\nThe **return** value is a simple dictionary with options, arguments and\ncommands as keys, spelled exactly like in your help message. Long\nversions of options are given priority. Furthermore, dot notation is\nsupported, with preceeding dashes (`-`) and surrounding brackets (`<>`)\nignored, for example `arguments.drifting` or `arguments.x`.\n\n# Help message format\n\nHelp message consists of 2 parts:\n\n-   Usage pattern, e.g.:\n\n        Usage: my_program.py [-hso FILE] [--quiet | --verbose] [INPUT ...]\n\n-   Option descriptions, e.g.:\n\n        -h --help    show this\n        -s --sorted  sorted output\n        -o FILE      specify output file [default: ./test.txt]\n        --quiet      print less text\n        --verbose    print more text\n\nTheir format is described below; other text is ignored.\n\n## Usage pattern format\n\n**Usage pattern** is a substring of `doc` that starts with `usage:`\n(case *insensitive*) and ends with a *visibly* empty line. Minimum\nexample:\n\n```python\n\"\"\"Usage: my_program.py\n\n\"\"\"\n```\n\nThe first word after `usage:` is interpreted as your program's name. You\ncan specify your program's name several times to signify several\nexclusive patterns:\n\n```python\n\"\"\"Usage: my_program.py FILE\n          my_program.py COUNT FILE\n\n\"\"\"\n```\n\nEach pattern can consist of the following elements:\n\n-   **&lt;arguments&gt;**, **ARGUMENTS**. Arguments are specified as\n    either upper-case words, e.g. `my_program.py CONTENT-PATH` or words\n    surrounded by angular brackets: `my_program.py <content-path>`.\n-   **--options**. Options are words started with dash (`-`), e.g.\n    `--output`, `-o`. You can \"stack\" several of one-letter options,\n    e.g. `-oiv` which will be the same as `-o -i -v`. The options can\n    have arguments, e.g. `--input=FILE` or `-i FILE` or even `-iFILE`.\n    However it is important that you specify option descriptions if you\n    want your option to have an argument, a default value, or specify\n    synonymous short/long versions of the option (see next section on\n    option descriptions).\n-   **commands** are words that do *not* follow the described above\n    conventions of `--options` or `<arguments>` or `ARGUMENTS`, plus two\n    special commands: dash \"`-`\" and double dash \"`--`\" (see below).\n\nUse the following constructs to specify patterns:\n\n-   **\\[ \\]** (brackets) **optional** elements. e.g.:\n    `my_program.py [-hvqo FILE]`\n-   **( )** (parens) **required** elements. All elements that are *not*\n    put in **\\[ \\]** are also required, e.g.:\n    `my_program.py --path=<path> <file>...` is the same as\n    `my_program.py (--path=<path> <file>...)`. (Note, \"required options\"\n    might be not a good idea for your users).\n-   **|** (pipe) **mutually exclusive** elements. Group them using **(\n    )** if one of the mutually exclusive elements is required:\n    `my_program.py (--clockwise | --counter-clockwise) TIME`. Group them\n    using **\\[ \\]** if none of the mutually-exclusive elements are\n    required: `my_program.py [--left | --right]`.\n-   **...** (ellipsis) **one or more** elements. To specify that\n    arbitrary number of repeating elements could be accepted, use\n    ellipsis (`...`), e.g. `my_program.py FILE ...` means one or more\n    `FILE`-s are accepted. If you want to accept zero or more elements,\n    use brackets, e.g.: `my_program.py [FILE ...]`. Ellipsis works as a\n    unary operator on the expression to the left.\n-   **\\[options\\]** (case sensitive) shortcut for any options. You can\n    use it if you want to specify that the usage pattern could be\n    provided with any options defined below in the option-descriptions\n    and do not want to enumerate them all in usage-pattern.\n-   \"`[--]`\". Double dash \"`--`\" is used by convention to separate\n    positional arguments that can be mistaken for options. In order to\n    support this convention add \"`[--]`\" to your usage patterns.\n-   \"`[-]`\". Single dash \"`-`\" is used by convention to signify that\n    `stdin` is used instead of a file. To support this add \"`[-]`\" to\n    your usage patterns. \"`-`\" acts as a normal command.\n\nIf your pattern allows to match argument-less option (a flag) several\ntimes:\n\n    Usage: my_program.py [-v | -vv | -vvv]\n\nthen number of occurrences of the option will be counted. I.e.\n`args[\"-v\"]` will be `2` if program was invoked as `my_program -vv`.\nSame works for commands.\n\nIf your usage patterns allows to match same-named option with argument\nor positional argument several times, the matched arguments will be\ncollected into a list:\n\n    Usage: my_program.py <file> <file> --path=<path>...\n\nI.e. invoked with\n`my_program.py file1 file2 --path=./here --path=./there` the returned\ndict will contain `args[\"<file>\"] == [\"file1\", \"file2\"]` and\n`args[\"--path\"] == [\"./here\", \"./there\"]`.\n\n## Option descriptions format\n\n**Option descriptions** consist of a list of options that you put below\nyour usage patterns.\n\nIt is necessary to list option descriptions in order to specify:\n\n-   synonymous short and long options,\n-   if an option has an argument,\n-   if option's argument has a default value.\n\nThe rules are as follows:\n\n-   Every line in `doc` that starts with `-` or `--` (not counting\n    spaces) is treated as an option description, e.g.:\n\n        Options:\n          --verbose   # GOOD\n          -o FILE     # GOOD\n        Other: --bad  # BAD, line does not start with dash \"-\"\n\n-   To specify that option has an argument, put a word describing that\n    argument after space (or equals \"`=`\" sign) as shown below. Follow\n    either &lt;angular-brackets&gt; or UPPER-CASE convention for\n    options' arguments. You can use comma if you want to separate\n    options. In the example below, both lines are valid, however you are\n    recommended to stick to a single style.:\n\n        -o FILE --output=FILE       # without comma, with \"=\" sign\n        -i <file>, --input <file>   # with comma, without \"=\" sign\n\n-   Use two spaces to separate options with their informal description:\n\n        --verbose More text.   # BAD, will be treated as if verbose option had\n                               # an argument \"More\", so use 2 spaces instead\n        -q        Quit.        # GOOD\n        -o FILE   Output file. # GOOD\n        --stdout  Use stdout.  # GOOD, 2 spaces\n\n-   If you want to set a default value for an option with an argument,\n    put it into the option-description, in form\n    `[default: <my-default-value>]`:\n\n        --coefficient=K  The K coefficient [default: 2.95]\n        --output=FILE    Output file [default: test.txt]\n        --directory=DIR  Some directory [default: ./]\n\n-   If the option is not repeatable, the value inside `[default: ...]`\n    will be interpreted as string. If it *is* repeatable, it will be\n    splited into a list on whitespace:\n\n        Usage: my_program.py [--repeatable=<arg> --repeatable=<arg>]\n                             [--another-repeatable=<arg>]...\n                             [--not-repeatable=<arg>]\n\n        # will be [\"./here\", \"./there\"]\n        --repeatable=<arg>          [default: ./here ./there]\n\n        # will be [\"./here\"]\n        --another-repeatable=<arg>  [default: ./here]\n\n        # will be \"./here ./there\", because it is not repeatable\n        --not-repeatable=<arg>      [default: ./here ./there]\n\n# Examples\n\nWe have an extensive list of\n[examples](https://github.com/jazzband/docopt-ng/tree/master/examples)\nwhich cover every aspect of functionality of **docopt-ng**. Try them\nout, read the source if in doubt.\n\n# Development\n\nWe would *love* to hear what you think about **docopt-ng** on our\n[issues page](https://github.com/jazzband/docopt-ng/issues). Make pull requests, report bugs, and suggest ideas.\n\nTo setup your dev environment, fork this repo and clone it locally.\nWe use [pdm](https://pdm.fming.dev/latest/#installation) to\nmanage the project, so install that first.\n\nThen install dev requirements and the package itself as editable, then\ninstall the pre-commit hooks:\n\n    pdm sync -d -G dev\n    pdm run pre-commit install\n\nUseful testing, linting, and formatting commands:\n\n    pdm run pytest\n    pdm run black .\n    pdm run ruff .\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Jazzband-maintained fork of docopt, the humane command line arguments parser.",
    "version": "0.9.0",
    "project_urls": {
        "Homepage": "https://github.com/jazzband/docopt-ng",
        "Repository": "https://github.com/jazzband/docopt-ng"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6c4ac3b77fc1a24510b08918b43a473410c0168f6e657118807015f1f1edceea",
                "md5": "870206ec98e98d2172b545dd4dac0e21",
                "sha256": "bfe4c8b03f9fca424c24ee0b4ffa84bf7391cb18c29ce0f6a8227a3b01b81ff9"
            },
            "downloads": -1,
            "filename": "docopt_ng-0.9.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "870206ec98e98d2172b545dd4dac0e21",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 16689,
            "upload_time": "2023-05-30T20:46:45",
            "upload_time_iso_8601": "2023-05-30T20:46:45.294293Z",
            "url": "https://files.pythonhosted.org/packages/6c/4a/c3b77fc1a24510b08918b43a473410c0168f6e657118807015f1f1edceea/docopt_ng-0.9.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e4508d6806cf13138127692ae6ff79ddeb4e25eb3b0bcc3c1bd033e7e04531a9",
                "md5": "6c2225296f918b1438cca17eb3de32ee",
                "sha256": "91c6da10b5bb6f2e9e25345829fb8278c78af019f6fc40887ad49b060483b1d7"
            },
            "downloads": -1,
            "filename": "docopt_ng-0.9.0.tar.gz",
            "has_sig": false,
            "md5_digest": "6c2225296f918b1438cca17eb3de32ee",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 32264,
            "upload_time": "2023-05-30T20:46:25",
            "upload_time_iso_8601": "2023-05-30T20:46:25.064915Z",
            "url": "https://files.pythonhosted.org/packages/e4/50/8d6806cf13138127692ae6ff79ddeb4e25eb3b0bcc3c1bd033e7e04531a9/docopt_ng-0.9.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-30 20:46:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jazzband",
    "github_project": "docopt-ng",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "docopt-ng"
}
        
Elapsed time: 0.08531s