__init__.py 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. """
  2. Click is a simple Python module inspired by the stdlib optparse to make
  3. writing command line scripts fun. Unlike other modules, it's based
  4. around a simple API that does not come with too much magic and is
  5. composable.
  6. """
  7. from .core import Argument
  8. from .core import BaseCommand
  9. from .core import Command
  10. from .core import CommandCollection
  11. from .core import Context
  12. from .core import Group
  13. from .core import MultiCommand
  14. from .core import Option
  15. from .core import Parameter
  16. from .decorators import argument
  17. from .decorators import command
  18. from .decorators import confirmation_option
  19. from .decorators import group
  20. from .decorators import help_option
  21. from .decorators import make_pass_decorator
  22. from .decorators import option
  23. from .decorators import pass_context
  24. from .decorators import pass_obj
  25. from .decorators import password_option
  26. from .decorators import version_option
  27. from .exceptions import Abort
  28. from .exceptions import BadArgumentUsage
  29. from .exceptions import BadOptionUsage
  30. from .exceptions import BadParameter
  31. from .exceptions import ClickException
  32. from .exceptions import FileError
  33. from .exceptions import MissingParameter
  34. from .exceptions import NoSuchOption
  35. from .exceptions import UsageError
  36. from .formatting import HelpFormatter
  37. from .formatting import wrap_text
  38. from .globals import get_current_context
  39. from .parser import OptionParser
  40. from .termui import clear
  41. from .termui import confirm
  42. from .termui import echo_via_pager
  43. from .termui import edit
  44. from .termui import get_terminal_size
  45. from .termui import getchar
  46. from .termui import launch
  47. from .termui import pause
  48. from .termui import progressbar
  49. from .termui import prompt
  50. from .termui import secho
  51. from .termui import style
  52. from .termui import unstyle
  53. from .types import BOOL
  54. from .types import Choice
  55. from .types import DateTime
  56. from .types import File
  57. from .types import FLOAT
  58. from .types import FloatRange
  59. from .types import INT
  60. from .types import IntRange
  61. from .types import ParamType
  62. from .types import Path
  63. from .types import STRING
  64. from .types import Tuple
  65. from .types import UNPROCESSED
  66. from .types import UUID
  67. from .utils import echo
  68. from .utils import format_filename
  69. from .utils import get_app_dir
  70. from .utils import get_binary_stream
  71. from .utils import get_os_args
  72. from .utils import get_text_stream
  73. from .utils import open_file
  74. # Controls if click should emit the warning about the use of unicode
  75. # literals.
  76. disable_unicode_literals_warning = False
  77. __version__ = "7.1.2"