You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
3.1KB

  1. Metadata-Version: 2.1
  2. Name: click
  3. Version: 8.0.1
  4. Summary: Composable command line interface toolkit
  5. Home-page: https://palletsprojects.com/p/click/
  6. Author: Armin Ronacher
  7. Author-email: armin.ronacher@active-4.com
  8. Maintainer: Pallets
  9. Maintainer-email: contact@palletsprojects.com
  10. License: BSD-3-Clause
  11. Project-URL: Donate, https://palletsprojects.com/donate
  12. Project-URL: Documentation, https://click.palletsprojects.com/
  13. Project-URL: Changes, https://click.palletsprojects.com/changes/
  14. Project-URL: Source Code, https://github.com/pallets/click/
  15. Project-URL: Issue Tracker, https://github.com/pallets/click/issues/
  16. Project-URL: Twitter, https://twitter.com/PalletsTeam
  17. Project-URL: Chat, https://discord.gg/pallets
  18. Platform: UNKNOWN
  19. Classifier: Development Status :: 5 - Production/Stable
  20. Classifier: Intended Audience :: Developers
  21. Classifier: License :: OSI Approved :: BSD License
  22. Classifier: Operating System :: OS Independent
  23. Classifier: Programming Language :: Python
  24. Requires-Python: >=3.6
  25. Description-Content-Type: text/x-rst
  26. Requires-Dist: colorama ; platform_system == "Windows"
  27. Requires-Dist: importlib-metadata ; python_version < "3.8"
  28. \$ click\_
  29. ==========
  30. Click is a Python package for creating beautiful command line interfaces
  31. in a composable way with as little code as necessary. It's the "Command
  32. Line Interface Creation Kit". It's highly configurable but comes with
  33. sensible defaults out of the box.
  34. It aims to make the process of writing command line tools quick and fun
  35. while also preventing any frustration caused by the inability to
  36. implement an intended CLI API.
  37. Click in three points:
  38. - Arbitrary nesting of commands
  39. - Automatic help page generation
  40. - Supports lazy loading of subcommands at runtime
  41. Installing
  42. ----------
  43. Install and update using `pip`_:
  44. .. code-block:: text
  45. $ pip install -U click
  46. .. _pip: https://pip.pypa.io/en/stable/quickstart/
  47. A Simple Example
  48. ----------------
  49. .. code-block:: python
  50. import click
  51. @click.command()
  52. @click.option("--count", default=1, help="Number of greetings.")
  53. @click.option("--name", prompt="Your name", help="The person to greet.")
  54. def hello(count, name):
  55. """Simple program that greets NAME for a total of COUNT times."""
  56. for _ in range(count):
  57. click.echo(f"Hello, {name}!")
  58. if __name__ == '__main__':
  59. hello()
  60. .. code-block:: text
  61. $ python hello.py --count=3
  62. Your name: Click
  63. Hello, Click!
  64. Hello, Click!
  65. Hello, Click!
  66. Donate
  67. ------
  68. The Pallets organization develops and supports Click and other popular
  69. packages. In order to grow the community of contributors and users, and
  70. allow the maintainers to devote more time to the projects, `please
  71. donate today`_.
  72. .. _please donate today: https://palletsprojects.com/donate
  73. Links
  74. -----
  75. - Documentation: https://click.palletsprojects.com/
  76. - Changes: https://click.palletsprojects.com/changes/
  77. - PyPI Releases: https://pypi.org/project/click/
  78. - Source Code: https://github.com/pallets/click
  79. - Issue Tracker: https://github.com/pallets/click/issues
  80. - Website: https://palletsprojects.com/p/click
  81. - Twitter: https://twitter.com/PalletsTeam
  82. - Chat: https://discord.gg/pallets