METADATA 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Metadata-Version: 2.3
  2. Name: click
  3. Version: 8.1.8
  4. Summary: Composable command line interface toolkit
  5. Maintainer-email: Pallets <contact@palletsprojects.com>
  6. Requires-Python: >=3.7
  7. Description-Content-Type: text/markdown
  8. Classifier: Development Status :: 5 - Production/Stable
  9. Classifier: Intended Audience :: Developers
  10. Classifier: License :: OSI Approved :: BSD License
  11. Classifier: Operating System :: OS Independent
  12. Classifier: Programming Language :: Python
  13. Classifier: Typing :: Typed
  14. Requires-Dist: colorama; platform_system == 'Windows'
  15. Requires-Dist: importlib-metadata; python_version < '3.8'
  16. Project-URL: Changes, https://click.palletsprojects.com/changes/
  17. Project-URL: Chat, https://discord.gg/pallets
  18. Project-URL: Documentation, https://click.palletsprojects.com/
  19. Project-URL: Donate, https://palletsprojects.com/donate
  20. Project-URL: Source, https://github.com/pallets/click/
  21. # $ click_
  22. Click is a Python package for creating beautiful command line interfaces
  23. in a composable way with as little code as necessary. It's the "Command
  24. Line Interface Creation Kit". It's highly configurable but comes with
  25. sensible defaults out of the box.
  26. It aims to make the process of writing command line tools quick and fun
  27. while also preventing any frustration caused by the inability to
  28. implement an intended CLI API.
  29. Click in three points:
  30. - Arbitrary nesting of commands
  31. - Automatic help page generation
  32. - Supports lazy loading of subcommands at runtime
  33. ## A Simple Example
  34. ```python
  35. import click
  36. @click.command()
  37. @click.option("--count", default=1, help="Number of greetings.")
  38. @click.option("--name", prompt="Your name", help="The person to greet.")
  39. def hello(count, name):
  40. """Simple program that greets NAME for a total of COUNT times."""
  41. for _ in range(count):
  42. click.echo(f"Hello, {name}!")
  43. if __name__ == '__main__':
  44. hello()
  45. ```
  46. ```
  47. $ python hello.py --count=3
  48. Your name: Click
  49. Hello, Click!
  50. Hello, Click!
  51. Hello, Click!
  52. ```
  53. ## Donate
  54. The Pallets organization develops and supports Click and other popular
  55. packages. In order to grow the community of contributors and users, and
  56. allow the maintainers to devote more time to the projects, [please
  57. donate today][].
  58. [please donate today]: https://palletsprojects.com/donate