1 # -*- coding: utf-8 -*-
\r
6 Click is a simple Python module that wraps the stdlib's optparse to make
\r
7 writing command line scripts fun. Unlike other modules, it's based around
\r
8 a simple API that does not come with too much magic and is composable.
\r
10 In case optparse ever gets removed from the stdlib, it will be shipped by
\r
13 :copyright: (c) 2014 by Armin Ronacher.
\r
14 :license: BSD, see LICENSE for more details.
\r
20 BaseCommand as BaseCommand,
\r
22 MultiCommand as MultiCommand,
\r
24 CommandCollection as CommandCollection,
\r
25 Parameter as Parameter,
\r
27 Argument as Argument,
\r
31 from .globals import get_current_context as get_current_context
\r
34 from .decorators import (
\r
35 pass_context as pass_context,
\r
36 pass_obj as pass_obj,
\r
37 make_pass_decorator as make_pass_decorator,
\r
40 argument as argument,
\r
42 confirmation_option as confirmation_option,
\r
43 password_option as password_option,
\r
44 version_option as version_option,
\r
45 help_option as help_option,
\r
49 from .types import (
\r
50 ParamType as ParamType,
\r
54 IntRange as IntRange,
\r
61 UNPROCESSED as UNPROCESSED,
\r
65 from .utils import (
\r
67 get_binary_stream as get_binary_stream,
\r
68 get_text_stream as get_text_stream,
\r
69 open_file as open_file,
\r
70 format_filename as format_filename,
\r
71 get_app_dir as get_app_dir,
\r
72 get_os_args as get_os_args,
\r
75 # Terminal functions
\r
76 from .termui import (
\r
79 get_terminal_size as get_terminal_size,
\r
80 echo_via_pager as echo_via_pager,
\r
81 progressbar as progressbar,
\r
93 from .exceptions import (
\r
94 ClickException as ClickException,
\r
95 UsageError as UsageError,
\r
96 BadParameter as BadParameter,
\r
97 FileError as FileError,
\r
99 NoSuchOption as NoSuchOption,
\r
100 BadOptionUsage as BadOptionUsage,
\r
101 BadArgumentUsage as BadArgumentUsage,
\r
102 MissingParameter as MissingParameter,
\r
106 from .formatting import HelpFormatter as HelpFormatter, wrap_text as wrap_text
\r
109 from .parser import OptionParser as OptionParser
\r
114 'Context', 'BaseCommand', 'Command', 'MultiCommand', 'Group',
\r
115 'CommandCollection', 'Parameter', 'Option', 'Argument',
\r
118 'get_current_context',
\r
121 'pass_context', 'pass_obj', 'make_pass_decorator', 'command', 'group',
\r
122 'argument', 'option', 'confirmation_option', 'password_option',
\r
123 'version_option', 'help_option',
\r
126 'ParamType', 'File', 'Path', 'Choice', 'IntRange', 'Tuple', 'STRING',
\r
127 'INT', 'FLOAT', 'BOOL', 'UUID', 'UNPROCESSED',
\r
130 'echo', 'get_binary_stream', 'get_text_stream', 'open_file',
\r
131 'format_filename', 'get_app_dir', 'get_os_args',
\r
133 # Terminal functions
\r
134 'prompt', 'confirm', 'get_terminal_size', 'echo_via_pager',
\r
135 'progressbar', 'clear', 'style', 'unstyle', 'secho', 'edit', 'launch',
\r
136 'getchar', 'pause',
\r
139 'ClickException', 'UsageError', 'BadParameter', 'FileError',
\r
140 'Abort', 'NoSuchOption', 'BadOptionUsage', 'BadArgumentUsage',
\r
141 'MissingParameter',
\r
144 'HelpFormatter', 'wrap_text',
\r
151 # Controls if click should emit the warning about the use of unicode
\r
153 disable_unicode_literals_warning = False
\r
156 __version__ = '6.6'
\r