1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
|
"""Top-level package for cloup."""
# WARNING: _version.py is generated by setuptools-scm upon package building/installation
from . import _version
__author__ = """Gianluca Gippetto"""
__email__ = 'gianluca.gippetto@gmail.com'
__version__ = _version.version
__version_tuple__ = _version.version_tuple
from click import (
# decorators
confirmation_option,
help_option,
pass_obj,
password_option,
version_option,
# types
BOOL,
Choice,
DateTime,
File,
FLOAT,
FloatRange,
INT,
IntRange,
ParamType,
Path,
STRING,
Tuple,
UNPROCESSED,
UUID,
)
from . import warnings
from .styling import (
HelpTheme,
Style,
Color,
)
from .formatting import (
HelpFormatter,
HelpSection,
)
from ._context import Context, get_current_context, pass_context
from ._params import Argument, Option, argument, option
from ._option_groups import (
OptionGroup,
OptionGroupMixin,
option_group,
)
from ._sections import (
Section,
SectionMixin,
)
from ._commands import (
Command,
Group,
command,
group,
)
from .constraints import (
ConstraintMixin,
constrained_params,
constraint,
)
from .types import dir_path, file_path, path
__all__ = [
"Argument",
"BOOL",
"Choice",
"Color",
"Command",
"ConstraintMixin",
"Context",
"DateTime",
"FLOAT",
"File",
"FloatRange",
"Group",
"HelpFormatter",
"HelpSection",
"HelpTheme",
"INT",
"IntRange",
"Option",
"OptionGroup",
"OptionGroupMixin",
"ParamType",
"Path",
"STRING",
"Section",
"SectionMixin",
"Style",
"Tuple",
"UNPROCESSED",
"UUID",
"_version",
"argument",
"command",
"confirmation_option",
"constrained_params",
"constraint",
"dir_path",
"file_path",
"get_current_context",
"group",
"help_option",
"option",
"option_group",
"pass_context",
"pass_obj",
"password_option",
"path",
"version_option",
"warnings",
]
|