METADATA 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. Metadata-Version: 2.1
  2. Name: click
  3. Version: 8.1.3
  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.7
  25. Description-Content-Type: text/x-rst
  26. License-File: LICENSE.rst
  27. Requires-Dist: colorama ; platform_system == "Windows"
  28. Requires-Dist: importlib-metadata ; python_version < "3.8"
  29. \$ click\_
  30. ==========
  31. Click is a Python package for creating beautiful command line interfaces
  32. in a composable way with as little code as necessary. It's the "Command
  33. Line Interface Creation Kit". It's highly configurable but comes with
  34. sensible defaults out of the box.
  35. It aims to make the process of writing command line tools quick and fun
  36. while also preventing any frustration caused by the inability to
  37. implement an intended CLI API.
  38. Click in three points:
  39. - Arbitrary nesting of commands
  40. - Automatic help page generation
  41. - Supports lazy loading of subcommands at runtime
  42. Installing
  43. ----------
  44. Install and update using `pip`_:
  45. .. code-block:: text
  46. $ pip install -U click
  47. .. _pip: https://pip.pypa.io/en/stable/getting-started/
  48. A Simple Example
  49. ----------------
  50. .. code-block:: python
  51. import click
  52. @click.command()
  53. @click.option("--count", default=1, help="Number of greetings.")
  54. @click.option("--name", prompt="Your name", help="The person to greet.")
  55. def hello(count, name):
  56. """Simple program that greets NAME for a total of COUNT times."""
  57. for _ in range(count):
  58. click.echo(f"Hello, {name}!")
  59. if __name__ == '__main__':
  60. hello()
  61. .. code-block:: text
  62. $ python hello.py --count=3
  63. Your name: Click
  64. Hello, Click!
  65. Hello, Click!
  66. Hello, Click!
  67. Donate
  68. ------
  69. The Pallets organization develops and supports Click and other popular
  70. packages. In order to grow the community of contributors and users, and
  71. allow the maintainers to devote more time to the projects, `please
  72. donate today`_.
  73. .. _please donate today: https://palletsprojects.com/donate
  74. Links
  75. -----
  76. - Documentation: https://click.palletsprojects.com/
  77. - Changes: https://click.palletsprojects.com/changes/
  78. - PyPI Releases: https://pypi.org/project/click/
  79. - Source Code: https://github.com/pallets/click
  80. - Issue Tracker: https://github.com/pallets/click/issues
  81. - Website: https://palletsprojects.com/p/click
  82. - Twitter: https://twitter.com/PalletsTeam
  83. - Chat: https://discord.gg/pallets