Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/click/__init__.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

66 statements  

1""" 

2Click is a simple Python module inspired by the stdlib optparse to make 

3writing command line scripts fun. Unlike other modules, it's based 

4around a simple API that does not come with too much magic and is 

5composable. 

6""" 

7from .core import Argument as Argument 

8from .core import BaseCommand as BaseCommand 

9from .core import Command as Command 

10from .core import CommandCollection as CommandCollection 

11from .core import Context as Context 

12from .core import Group as Group 

13from .core import MultiCommand as MultiCommand 

14from .core import Option as Option 

15from .core import Parameter as Parameter 

16from .decorators import argument as argument 

17from .decorators import command as command 

18from .decorators import confirmation_option as confirmation_option 

19from .decorators import group as group 

20from .decorators import help_option as help_option 

21from .decorators import make_pass_decorator as make_pass_decorator 

22from .decorators import option as option 

23from .decorators import pass_context as pass_context 

24from .decorators import pass_obj as pass_obj 

25from .decorators import password_option as password_option 

26from .decorators import version_option as version_option 

27from .exceptions import Abort as Abort 

28from .exceptions import BadArgumentUsage as BadArgumentUsage 

29from .exceptions import BadOptionUsage as BadOptionUsage 

30from .exceptions import BadParameter as BadParameter 

31from .exceptions import ClickException as ClickException 

32from .exceptions import FileError as FileError 

33from .exceptions import MissingParameter as MissingParameter 

34from .exceptions import NoSuchOption as NoSuchOption 

35from .exceptions import UsageError as UsageError 

36from .formatting import HelpFormatter as HelpFormatter 

37from .formatting import wrap_text as wrap_text 

38from .globals import get_current_context as get_current_context 

39from .parser import OptionParser as OptionParser 

40from .termui import clear as clear 

41from .termui import confirm as confirm 

42from .termui import echo_via_pager as echo_via_pager 

43from .termui import edit as edit 

44from .termui import getchar as getchar 

45from .termui import launch as launch 

46from .termui import pause as pause 

47from .termui import progressbar as progressbar 

48from .termui import prompt as prompt 

49from .termui import secho as secho 

50from .termui import style as style 

51from .termui import unstyle as unstyle 

52from .types import BOOL as BOOL 

53from .types import Choice as Choice 

54from .types import DateTime as DateTime 

55from .types import File as File 

56from .types import FLOAT as FLOAT 

57from .types import FloatRange as FloatRange 

58from .types import INT as INT 

59from .types import IntRange as IntRange 

60from .types import ParamType as ParamType 

61from .types import Path as Path 

62from .types import STRING as STRING 

63from .types import Tuple as Tuple 

64from .types import UNPROCESSED as UNPROCESSED 

65from .types import UUID as UUID 

66from .utils import echo as echo 

67from .utils import format_filename as format_filename 

68from .utils import get_app_dir as get_app_dir 

69from .utils import get_binary_stream as get_binary_stream 

70from .utils import get_text_stream as get_text_stream 

71from .utils import open_file as open_file 

72 

73__version__ = "8.1.7"