Name | click JSON |
Version |
8.1.8
JSON |
| download |
home_page | None |
Summary | Composable command line interface toolkit |
upload_time | 2024-12-21 18:38:44 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.7 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# $ click_
Click is a Python package for creating beautiful command line interfaces
in a composable way with as little code as necessary. It's the "Command
Line Interface Creation Kit". It's highly configurable but comes with
sensible defaults out of the box.
It aims to make the process of writing command line tools quick and fun
while also preventing any frustration caused by the inability to
implement an intended CLI API.
Click in three points:
- Arbitrary nesting of commands
- Automatic help page generation
- Supports lazy loading of subcommands at runtime
## A Simple Example
```python
import click
@click.command()
@click.option("--count", default=1, help="Number of greetings.")
@click.option("--name", prompt="Your name", help="The person to greet.")
def hello(count, name):
"""Simple program that greets NAME for a total of COUNT times."""
for _ in range(count):
click.echo(f"Hello, {name}!")
if __name__ == '__main__':
hello()
```
```
$ python hello.py --count=3
Your name: Click
Hello, Click!
Hello, Click!
Hello, Click!
```
## Donate
The Pallets organization develops and supports Click and other popular
packages. In order to grow the community of contributors and users, and
allow the maintainers to devote more time to the projects, [please
donate today][].
[please donate today]: https://palletsprojects.com/donate
Raw data
{
"_id": null,
"home_page": null,
"name": "click",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "Pallets <contact@palletsprojects.com>",
"keywords": null,
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz",
"platform": null,
"description": "# $ click_\n\nClick is a Python package for creating beautiful command line interfaces\nin a composable way with as little code as necessary. It's the \"Command\nLine Interface Creation Kit\". It's highly configurable but comes with\nsensible defaults out of the box.\n\nIt aims to make the process of writing command line tools quick and fun\nwhile also preventing any frustration caused by the inability to\nimplement an intended CLI API.\n\nClick in three points:\n\n- Arbitrary nesting of commands\n- Automatic help page generation\n- Supports lazy loading of subcommands at runtime\n\n\n## A Simple Example\n\n```python\nimport click\n\n@click.command()\n@click.option(\"--count\", default=1, help=\"Number of greetings.\")\n@click.option(\"--name\", prompt=\"Your name\", help=\"The person to greet.\")\ndef hello(count, name):\n \"\"\"Simple program that greets NAME for a total of COUNT times.\"\"\"\n for _ in range(count):\n click.echo(f\"Hello, {name}!\")\n\nif __name__ == '__main__':\n hello()\n```\n\n```\n$ python hello.py --count=3\nYour name: Click\nHello, Click!\nHello, Click!\nHello, Click!\n```\n\n\n## Donate\n\nThe Pallets organization develops and supports Click and other popular\npackages. In order to grow the community of contributors and users, and\nallow the maintainers to devote more time to the projects, [please\ndonate today][].\n\n[please donate today]: https://palletsprojects.com/donate\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Composable command line interface toolkit",
"version": "8.1.8",
"project_urls": {
"Changes": "https://click.palletsprojects.com/changes/",
"Chat": "https://discord.gg/pallets",
"Documentation": "https://click.palletsprojects.com/",
"Donate": "https://palletsprojects.com/donate",
"Source": "https://github.com/pallets/click/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7ed47ebdbd03970677812aac39c869717059dbb71a4cfc033ca6e5221787892c",
"md5": "7dc0eee374f3bb75bcce4c9dd4222f5f",
"sha256": "63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2"
},
"downloads": -1,
"filename": "click-8.1.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7dc0eee374f3bb75bcce4c9dd4222f5f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 98188,
"upload_time": "2024-12-21T18:38:41",
"upload_time_iso_8601": "2024-12-21T18:38:41.666429Z",
"url": "https://files.pythonhosted.org/packages/7e/d4/7ebdbd03970677812aac39c869717059dbb71a4cfc033ca6e5221787892c/click-8.1.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b92e0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b",
"md5": "b52ee8e6c33d88a2b4626e6a6002245d",
"sha256": "ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a"
},
"downloads": -1,
"filename": "click-8.1.8.tar.gz",
"has_sig": false,
"md5_digest": "b52ee8e6c33d88a2b4626e6a6002245d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 226593,
"upload_time": "2024-12-21T18:38:44",
"upload_time_iso_8601": "2024-12-21T18:38:44.339161Z",
"url": "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-21 18:38:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pallets",
"github_project": "click",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "click"
}