Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

83 linhas
2.4 KiB

  1. Metadata-Version: 2.4
  2. Name: click
  3. Version: 8.2.1
  4. Summary: Composable command line interface toolkit
  5. Maintainer-email: Pallets <contact@palletsprojects.com>
  6. Requires-Python: >=3.10
  7. Description-Content-Type: text/markdown
  8. License-Expression: BSD-3-Clause
  9. Classifier: Development Status :: 5 - Production/Stable
  10. Classifier: Intended Audience :: Developers
  11. Classifier: Operating System :: OS Independent
  12. Classifier: Programming Language :: Python
  13. Classifier: Typing :: Typed
  14. License-File: LICENSE.txt
  15. Requires-Dist: colorama; platform_system == 'Windows'
  16. Project-URL: Changes, https://click.palletsprojects.com/page/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
  59. ## Contributing
  60. See our [detailed contributing documentation][contrib] for many ways to
  61. contribute, including reporting issues, requesting features, asking or answering
  62. questions, and making PRs.
  63. [contrib]: https://palletsprojects.com/contributing/