Skip to content
Myr

index.rst

This file

Path

docs/index.rst

145 lines · 2.7 KiB

Last changed by

Add upgrade guide section.Edward Gbefore adoption73117fe

History of this file

Take it

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

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

lines 1–5why, one step back
1.. rst-class:: hide-header
23Welcome to Click4================5

svg logoDavid Lordbefore adoption2865034

line 6why, one step back
6.. image:: _static/click-name.svg

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

line 7why, one step back
7 :align: center

new logo (#2974)David Lordbefore adoptiond2e0fb5

line 8why, one step back
8 :height: 200px

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

lines 9–59why, one step back
9
10Click is a Python package for creating beautiful command line interfaces11in a composable way with as little code as necessary. It's the "Command12Line Interface Creation Kit". It's highly configurable but comes with13sensible defaults out of the box.1415It aims to make the process of writing command line tools quick and fun16while also preventing any frustration caused by the inability to implement17an intended CLI API.1819Click in three points:2021- arbitrary nesting of commands22- automatic help page generation23- supports lazy loading of subcommands at runtime2425What does it look like? Here is an example of a simple Click program:2627.. click:example::2829 import click3031 @click.command()32 @click.option('--count', default=1, help='Number of greetings.')33 @click.option('--name', prompt='Your name',34 help='The person to greet.')35 def hello(count, name):36 """Simple program that greets NAME for a total of COUNT times."""37 for x in range(count):38 click.echo(f"Hello {name}!")3940 if __name__ == '__main__':41 hello()4243And what it looks like when run:4445.. click:run::4647 invoke(hello, ['--count=3'], prog_name='python hello.py', input='John\n')4849It automatically generates nicely formatted help pages:5051.. click:run::5253 invoke(hello, ['--help'], prog_name='python hello.py')5455You can get the library directly from PyPI::5657 pip install click5859Documentation

Align docs index header levels. (#2951)Rowlando13before adoption3a917b9

line 60why, one step back
60==============

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

line 61why, one step back
61

Make faqs section. Add the first question about windows shell expansion. (#2927)Rowlando13before adoption9ce34f2

lines 62–66why, one step back
62.. toctree::
63 :maxdepth: 26465 faqs66

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

line 67why, one step back
67Tutorials

Align docs index header levels. (#2951)Rowlando13before adoption3a917b9

line 68why, one step back
68------------

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

line 69why, one step back
69.. toctree::

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

line 70why, one step back
70 :maxdepth: 1

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

lines 71–72why, one step back
71
72 quickstart

Merge stable into main (#2799)Rowlando13before adoptiond791537

line 73why, one step back
73 virtualenv

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

lines 74–75why, one step back
74
75How to Guides

Align docs index header levels. (#2951)Rowlando13before adoption3a917b9

line 76why, one step back
76---------------

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

lines 77–80why, one step back
77.. toctree::
78 :maxdepth: 17980 entry-points

Merge stable into main (#2799)Rowlando13before adoptiond791537

line 81why, one step back
81 setuptools

Add upgrade guide section.Edward Gbefore adoption73117fe

line 82why, one step back
82 upgrade-guides

Add a doc for supporting 8.1.x|8.2.0 (#2929)David Lordbefore adoption2d610e3

line 83why, one step back
83 support-multiple-versions

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

lines 84–85why, one step back
84
85Conceptual Guides

Align docs index header levels. (#2951)Rowlando13before adoption3a917b9

line 86why, one step back
86-------------------

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

lines 87–89why, one step back
87.. toctree::
88 :maxdepth: 189

Add Best practices section (#3127)Rowlando13before adoption0b5c6b7

line 90why, one step back
90 design-opinions

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

line 91why, one step back
91 why

Make distinct sections for advanced patterns and extending click. (#2925)Rowlando13before adoption2aecb2d

line 92why, one step back
92 click-concepts

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

lines 93–94why, one step back
93
94General Reference

Align docs index header levels. (#2951)Rowlando13before adoption3a917b9

line 95why, one step back
95--------------------

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

lines 96–99why, one step back
96
97.. toctree::98 :maxdepth: 199

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

line 100why, one step back
100 parameters

Rewrite first half of options docs (#2825)Rowlando13before adoption82089af

line 101why, one step back
101 parameter-types

Rewrite help page section. (#2821)Rowlando13before adoption8a47580

line 102why, one step back
102 options

Rewrite first half of options docs (#2825)Rowlando13before adoption82089af

lines 103–104why, one step back
103 option-decorators
104 arguments

Rewrite Commands and Groups docs. (#2838)Rowlando13before adoption0bf333e

line 105why, one step back
105 commands-and-groups

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

lines 106–107why, one step back
106 commands
107 documentation

Rewrite help page section. (#2821)Rowlando13before adoption8a47580

line 108why, one step back
108 prompts

Merge `stable` into `main`; Release 8.2.0 (#2873)Rowlando13before adoptionb7c0ab4

line 109why, one step back
109 handling-files

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

line 110why, one step back
110 advanced

Make distinct sections for advanced patterns and extending click. (#2925)Rowlando13before adoption2aecb2d

lines 111–112why, one step back
111 complex
112 extending-click

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

lines 113–116why, one step back
113 testing
114 utils115 shell-completion116 exceptions

Very short description of exit codes and how to access them (#3112)Rowlando13before adoption868b611

line 117why, one step back
117 command-line-reference

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

lines 118–121why, one step back
118 unicode-support
119 wincmd120121API Reference

Align docs index header levels. (#2951)Rowlando13before adoption3a917b9

line 122why, one step back
122-------------------

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

lines 123–128why, one step back
123
124.. toctree::125 :maxdepth: 2126127 api128

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

line 129why, one step back
129About Project

Align docs index header levels. (#2951)Rowlando13before adoption3a917b9

line 130why, one step back
130===============

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

line 131why, one step back
131

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

lines 132–139why, one step back
132* This documentation is structured according to `Diataxis <https://diataxis.fr/>`_
133134* `Version Policy <https://palletsprojects.com/versions>`_135136* `Contributing <https://palletsprojects.com/contributing/>`_137138* `Donate <https://palletsprojects.com/donate>`_139

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

line 140why, one step back
140.. toctree::

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

line 141why, one step back
141 :maxdepth: 1

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

lines 142–145why, one step back
142
143 contrib144 license145 changes