click-aliases


Nameclick-aliases JSON
Version 1.0.5 PyPI version JSON
download
home_pageNone
SummaryAdd (mutiple) aliases to a click group or command
upload_time2024-10-17 15:44:19
maintainerNone
docs_urlNone
authorRobbin Bonthond
requires_python>=3.7
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # click-aliases

[![build](https://travis-ci.org/click-contrib/click-aliases.svg?branch=master)](https://travis-ci.org/click-contrib/click-aliases)
[![license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://raw.githubusercontent.com/click-contrib/click-aliases/master/LICENSE)
[![coverage](https://coveralls.io/repos/github/click-contrib/click-aliases/badge.svg?branch=master)](https://coveralls.io/github/click-contrib/click-aliases?branch=master)

Add (multiple) aliases to a click_ group or command.

In your [click](http://click.pocoo.org/) app:

```python
import click
from click_aliases import ClickAliasedGroup

@click.group(cls=ClickAliasedGroup)
def cli():
    pass

@cli.command(aliases=['bar', 'baz', 'qux'])
def foo():
    """Run a command."""
    click.echo('foo')
```

Will result in:
```
Usage: cli [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  foo (bar,baz,qux)  Run a command.
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "click-aliases",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": "Robbin Bonthond",
    "author_email": "robbin@bonthond.com",
    "download_url": "https://files.pythonhosted.org/packages/40/d8/adbaeadc13c9686b9bda8b4c50e5a3983f504faae2ffbea5165d5beb1cdb/click_aliases-1.0.5.tar.gz",
    "platform": null,
    "description": "# click-aliases\n\n[![build](https://travis-ci.org/click-contrib/click-aliases.svg?branch=master)](https://travis-ci.org/click-contrib/click-aliases)\n[![license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://raw.githubusercontent.com/click-contrib/click-aliases/master/LICENSE)\n[![coverage](https://coveralls.io/repos/github/click-contrib/click-aliases/badge.svg?branch=master)](https://coveralls.io/github/click-contrib/click-aliases?branch=master)\n\nAdd (multiple) aliases to a click_ group or command.\n\nIn your [click](http://click.pocoo.org/) app:\n\n```python\nimport click\nfrom click_aliases import ClickAliasedGroup\n\n@click.group(cls=ClickAliasedGroup)\ndef cli():\n    pass\n\n@cli.command(aliases=['bar', 'baz', 'qux'])\ndef foo():\n    \"\"\"Run a command.\"\"\"\n    click.echo('foo')\n```\n\nWill result in:\n```\nUsage: cli [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n  --help  Show this message and exit.\n\nCommands:\n  foo (bar,baz,qux)  Run a command.\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Add (mutiple) aliases to a click group or command",
    "version": "1.0.5",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3d1ad5e29a6f896293e32ab3e63201df5d396599e57a726575adaafbcd9d70a6",
                "md5": "8edf4815097e52d22fecafb6415c392d",
                "sha256": "cbb83a348acc00809fe18b6da13a7f6307bc71b3c5f69cc730e012dfb4bbfdc3"
            },
            "downloads": -1,
            "filename": "click_aliases-1.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8edf4815097e52d22fecafb6415c392d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 3524,
            "upload_time": "2024-10-17T15:44:17",
            "upload_time_iso_8601": "2024-10-17T15:44:17.389329Z",
            "url": "https://files.pythonhosted.org/packages/3d/1a/d5e29a6f896293e32ab3e63201df5d396599e57a726575adaafbcd9d70a6/click_aliases-1.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "40d8adbaeadc13c9686b9bda8b4c50e5a3983f504faae2ffbea5165d5beb1cdb",
                "md5": "e8d99716caefe5459d2e5fb820922c18",
                "sha256": "e37d4cabbaad68e1c48ec0f063a59dfa15f0e7450ec901bd1ce4f4b954bc881d"
            },
            "downloads": -1,
            "filename": "click_aliases-1.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "e8d99716caefe5459d2e5fb820922c18",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3105,
            "upload_time": "2024-10-17T15:44:19",
            "upload_time_iso_8601": "2024-10-17T15:44:19.056939Z",
            "url": "https://files.pythonhosted.org/packages/40/d8/adbaeadc13c9686b9bda8b4c50e5a3983f504faae2ffbea5165d5beb1cdb/click_aliases-1.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-17 15:44:19",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "click-aliases"
}
        
Elapsed time: 4.45225s