Skip to content
Myr

api.rst

This file

Path

docs/api.rst

163 lines · 2.0 KiB

Last changed by

Added click.launchArmin Ronacherbefore adoptionba36392

History of this file

Take it

The walk stopped after 200 commits: lines older than 9ab74c3 point at it.

Abort with a clear error message on Python 3 if the env is ASCII.Armin Ronacherbefore adoption9ab74c3

lines 1–33why, one step back
1API
2===34.. module:: click56This part of the documentation shows the full API reference of all public7classes and functions.89Decorators10----------1112.. autofunction:: command1314.. autofunction:: group1516.. autofunction:: argument1718.. autofunction:: option1920.. autofunction:: password_option2122.. autofunction:: confirmation_option2324.. autofunction:: version_option2526.. autofunction:: help_option2728.. autofunction:: pass_context2930.. autofunction:: pass_obj3132.. autofunction:: make_pass_decorator33

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

lines 34–35why, one step back
34Utilities
35---------

Abort with a clear error message on Python 3 if the env is ASCII.Armin Ronacherbefore adoption9ab74c3

line 36why, one step back
36

Implemented and exposed click.echoArmin Ronacherbefore adoption95c24b3

lines 37–38why, one step back
37.. autofunction:: echo
38

Added an echo function with pager supportArmin Ronacherbefore adoption54c90d0

lines 39–40why, one step back
39.. autofunction:: echo_via_pager
40

Abort with a clear error message on Python 3 if the env is ASCII.Armin Ronacherbefore adoption9ab74c3

lines 41–44why, one step back
41.. autofunction:: prompt
4243.. autofunction:: confirm44

Added changelog entry and docsArmin Ronacherbefore adoption12f50b4

lines 45–46why, one step back
45.. autofunction:: progressbar
46

Added support for screen clearing.Armin Ronacherbefore adoption09ba1e9

lines 47–48why, one step back
47.. autofunction:: clear
48

Added style and unstyle to docs.Armin Ronacherbefore adoption22241e4

lines 49–52why, one step back
49.. autofunction:: style
5051.. autofunction:: unstyle52

Added sechoArmin Ronacherbefore adoption97f942c

lines 53–54why, one step back
53.. autofunction:: secho
54

Added an edit function.Armin Ronacherbefore adoption721e527

lines 55–56why, one step back
55.. autofunction:: edit
56

Added click.launchArmin Ronacherbefore adoptionba36392

lines 57–58why, one step back
57.. autofunction:: launch
58

Added filename format functionArmin Ronacherbefore adoption31043c3

lines 59–60why, one step back
59.. autofunction:: format_filename
60

Abort with a clear error message on Python 3 if the env is ASCII.Armin Ronacherbefore adoption9ab74c3

lines 61–62why, one step back
61.. autofunction:: get_terminal_size
62

Improved stream support and added it to public API.Armin Ronacherbefore adoption002c38d

lines 63–65why, one step back
63.. autofunction:: get_binary_stream
6465.. autofunction:: get_text_stream

Added changelog entry and docsArmin Ronacherbefore adoption12f50b4

lines 66–67why, one step back
66
67.. autofunction:: get_app_dir

Improved stream support and added it to public API.Armin Ronacherbefore adoption002c38d

line 68why, one step back
68

Abort with a clear error message on Python 3 if the env is ASCII.Armin Ronacherbefore adoption9ab74c3

lines 69–71why, one step back
69Commands
70--------71

Added a base command for dispatching to other parsers.Armin Ronacherbefore adoption955beb8

lines 72–74why, one step back
72.. autoclass:: BaseCommand
73 :members:74

Abort with a clear error message on Python 3 if the env is ASCII.Armin Ronacherbefore adoption9ab74c3

lines 75–83why, one step back
75.. autoclass:: Command
76 :members:7778.. autoclass:: MultiCommand79 :members:8081.. autoclass:: Group82 :members:83

Implemented basic command collectionsArmin Ronacherbefore adoption055a8e6

lines 84–86why, one step back
84.. autoclass:: CommandCollection
85 :members:86

Abort with a clear error message on Python 3 if the env is ASCII.Armin Ronacherbefore adoption9ab74c3

lines 87–113why, one step back
87Parameters
88----------8990.. autoclass:: Parameter91 :members:9293.. autoclass:: Option9495.. autoclass:: Argument9697Context98-------99100.. autoclass:: Context101 :members:102103Types104-----105106.. autodata:: STRING107108.. autodata:: INT109110.. autodata:: FLOAT111112.. autodata:: BOOL113

Added UUID type supportArmin Ronacherbefore adoption4ed961d

lines 114–115why, one step back
114.. autodata:: UUID
115

Abort with a clear error message on Python 3 if the env is ASCII.Armin Ronacherbefore adoption9ab74c3

lines 116–117why, one step back
116.. autoclass:: File
117

Implemented the Path typeArmin Ronacherbefore adoption2e7c39c

lines 118–119why, one step back
118.. autoclass:: Path
119

Abort with a clear error message on Python 3 if the env is ASCII.Armin Ronacherbefore adoption9ab74c3

lines 120–121why, one step back
120.. autoclass:: Choice
121

Added missing type to docsArmin Ronacherbefore adoption065ce06

lines 122–123why, one step back
122.. autoclass:: IntRange
123

Abort with a clear error message on Python 3 if the env is ASCII.Armin Ronacherbefore adoption9ab74c3

line 124why, one step back
124.. autoclass:: ParamType

Added multi envvar docsArmin Ronacherbefore adoption61eb5e2

line 125why, one step back
125 :members:

Abort with a clear error message on Python 3 if the env is ASCII.Armin Ronacherbefore adoption9ab74c3

lines 126–129why, one step back
126
127Exceptions128----------129

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

lines 130–131why, one step back
130.. autoexception:: ClickException
131

Abort with a clear error message on Python 3 if the env is ASCII.Armin Ronacherbefore adoption9ab74c3

lines 132–134why, one step back
132.. autoexception:: Abort
133134.. autoexception:: UsageError

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

line 135why, one step back
135

Added support for BadParameter exceptions.Armin Ronacherbefore adoption1407ecb

lines 136–137why, one step back
136.. autoexception:: BadParameter
137

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

line 138why, one step back
138.. autoexception:: FileError

Exposed formattingArmin Ronacherbefore adoption97b505c

lines 139–146why, one step back
139
140Formatting141----------142143.. autoclass:: HelpFormatter144 :members:145146.. autofunction:: wrap_text

Exposed parserArmin Ronacherbefore adoption1726e47

lines 147–152why, one step back
147
148Parsing149-------150151.. autoclass:: OptionParser152 :members:

Moved the test code into the APIArmin Ronacherbefore adoptionc265355

lines 153–163why, one step back
153
154Testing155-------156157.. currentmodule:: click.testing158159.. autoclass:: CliRunner160 :members:161162.. autoclass:: Result163 :members: