codekingpro/portable-devtools
114k
1Metadata-Version: 2.42Name: click3Version: 8.3.34Summary: Composable command line interface toolkit5Maintainer-email: Pallets <contact@palletsprojects.com>6Requires-Python: >=3.107Description-Content-Type: text/markdown8License-Expression: BSD-3-Clause9Classifier: Development Status :: 5 - Production/Stable10Classifier: Intended Audience :: Developers11Classifier: Operating System :: OS Independent12Classifier: Programming Language :: Python13Classifier: Typing :: Typed14License-File: LICENSE.txt15Requires-Dist: colorama; platform_system == 'Windows'16Project-URL: Changes, https://click.palletsprojects.com/page/changes/17Project-URL: Chat, https://discord.gg/pallets18Project-URL: Documentation, https://click.palletsprojects.com/19Project-URL: Donate, https://palletsprojects.com/donate20Project-URL: Source, https://github.com/pallets/click/21 22<div align="center"><img src="https://raw.githubusercontent.com/pallets/click/refs/heads/stable/docs/_static/click-name.svg" alt="" height="150"></div>23 24# Click25 26Click is a Python package for creating beautiful command line interfaces27in a composable way with as little code as necessary. It's the "Command28Line Interface Creation Kit". It's highly configurable but comes with29sensible defaults out of the box.30 31It aims to make the process of writing command line tools quick and fun32while also preventing any frustration caused by the inability to33implement an intended CLI API.34 35Click in three points:36 37- Arbitrary nesting of commands38- Automatic help page generation39- Supports lazy loading of subcommands at runtime40 41 42## A Simple Example43 44```python45import click46 47@click.command()48@click.option("--count", default=1, help="Number of greetings.")49@click.option("--name", prompt="Your name", help="The person to greet.")50def hello(count, name):51 """Simple program that greets NAME for a total of COUNT times."""52 for _ in range(count):53 click.echo(f"Hello, {name}!")54 55if __name__ == '__main__':56 hello()57```58 59```60$ python hello.py --count=361Your name: Click62Hello, Click!63Hello, Click!64Hello, Click!65```66 67 68## Donate69 70The Pallets organization develops and supports Click and other popular71packages. In order to grow the community of contributors and users, and72allow the maintainers to devote more time to the projects, [please73donate today][].74 75[please donate today]: https://palletsprojects.com/donate76 77## Contributing78 79See our [detailed contributing documentation][contrib] for many ways to80contribute, including reporting issues, requesting features, asking or answering81questions, and making PRs.82 83[contrib]: https://palletsprojects.com/contributing/84 85 