[{"data":1,"prerenderedAt":2138},["ShallowReactive",2],{"page-\u002Fproject-setup-dependency-management\u002Fpoetry-workflows-for-cli-development\u002Fpoetry-dependency-groups-for-cli-tooling\u002F":3,"content-directory":1590},{"id":4,"title":5,"body":6,"date":1577,"description":1578,"difficulty":1579,"draft":1580,"extension":1581,"meta":1582,"navigation":188,"path":1583,"seo":1584,"stem":1585,"tags":1586,"updated":1577,"__hash__":1589},"content\u002Fproject-setup-dependency-management\u002Fpoetry-workflows-for-cli-development\u002Fpoetry-dependency-groups-for-cli-tooling\u002Findex.md","Poetry Dependency Groups for CLI Tooling",{"type":7,"value":8,"toc":1557},"minimark",[9,24,29,55,59,63,83,87,516,519,534,547,550,618,622,625,628,741,759,763,766,796,807,888,895,899,905,908,950,954,985,988,992,999,1429,1444,1448,1454,1458,1467,1480,1488,1495,1499,1506,1510,1521,1525,1553],[10,11,12,13,17,18,23],"p",{},"A CLI project needs two very different sets of dependencies. There is what the tool needs to run — Typer, httpx, Rich — which ships to every user. And there is everything developers need to work on it: pytest and its plugins, Ruff, mypy, documentation generators, release tooling. Mixing the two is the classic packaging mistake: a linter listed as a runtime dependency gets installed on every user's machine, or a library the tool actually imports is listed only for development, so tests pass and the first user gets ",[14,15,16],"code",{},"ModuleNotFoundError",". Poetry's dependency groups keep the sets apart and let each CI job install exactly what it needs. This guide sets them up for a CLI, shows the install commands for each job, and explains when to use groups and when to use extras. It belongs to the ",[19,20,22],"a",{"href":21},"\u002Fproject-setup-dependency-management\u002Fpoetry-workflows-for-cli-development\u002F","Poetry workflows for CLI development topic",".",[25,26,28],"h2",{"id":27},"prerequisites","Prerequisites",[30,31,32,36],"ul",{},[33,34,35],"li",{},"A CLI project managed with Poetry 1.2 or newer (groups were introduced in 1.2; the examples use 2.x).",[33,37,38,39,42,43,46,47,50,51,23],{},"A basic ",[14,40,41],{},"pyproject.toml"," with ",[14,44,45],{},"[tool.poetry.scripts]"," or ",[14,48,49],{},"[project.scripts]"," defining your command, as in ",[19,52,54],{"href":53},"\u002Fproject-setup-dependency-management\u002Fpoetry-workflows-for-cli-development\u002Fpoetry-entry-points-and-scripts-for-clis\u002F","Poetry entry points and scripts for CLIs",[25,56,58],{"id":57},"the-shape-one-main-group-several-tool-groups","The shape: one main group, several tool groups",[60,61],"inline-diagram",{"name":62},"pg-groups",[10,64,65,66,69,70,73,74,78,79,82],{},"Runtime dependencies live in the main group — ",[14,67,68],{},"[project] dependencies"," in Poetry 2 projects using standard metadata, or ",[14,71,72],{},"[tool.poetry.dependencies]"," in older ones. ",[75,76,77],"strong",{},"Only these reach the wheel",", so only these are installed for users. Everything else goes into named groups by purpose. Grouping by purpose rather than lumping everything into ",[14,80,81],{},"dev"," pays off in CI, where a lint job does not need pytest and a test job does not need the documentation toolchain.",[25,84,86],{"id":85},"the-recipe","The recipe",[88,89,94],"pre",{"className":90,"code":91,"language":92,"meta":93,"style":93},"language-toml shiki shiki-themes github-light github-dark","# pyproject.toml\n[project]\nname = \"mytool\"\nversion = \"1.8.0\"\nrequires-python = \">=3.10\"\ndependencies = [\n  \"typer>=0.12\",\n  \"httpx>=0.27\",\n  \"rich>=13\",\n]\n\n[project.scripts]\nmytool = \"mytool.cli:app\"\n\n[tool.poetry.group.test.dependencies]\npytest = \">=8\"\npytest-cov = \">=5\"\npytest-randomly = \">=3.15\"\n\n[tool.poetry.group.lint.dependencies]\nruff = \">=0.6\"\nmypy = \">=1.10\"\n\n[tool.poetry.group.docs]\noptional = true\n\n[tool.poetry.group.docs.dependencies]\nmkdocs-material = \">=9\"\nmkdocs-click = \">=0.8\"\n\n[tool.poetry.group.release]\noptional = true\n\n[tool.poetry.group.release.dependencies]\ntwine = \">=5\"\n\n[build-system]\nrequires = [\"poetry-core>=2.0\"]\nbuild-backend = \"poetry.core.masonry.api\"\n","toml","",[14,95,96,105,119,129,138,147,153,162,170,178,183,190,204,213,218,248,257,266,275,280,306,315,324,329,351,361,366,391,400,409,414,436,443,448,473,481,486,496,507],{"__ignoreMap":93},[97,98,101],"span",{"class":99,"line":100},"line",1,[97,102,104],{"class":103},"sJ8bj","# pyproject.toml\n",[97,106,108,112,116],{"class":99,"line":107},2,[97,109,111],{"class":110},"sVt8B","[",[97,113,115],{"class":114},"sScJk","project",[97,117,118],{"class":110},"]\n",[97,120,122,125],{"class":99,"line":121},3,[97,123,124],{"class":110},"name = ",[97,126,128],{"class":127},"sZZnC","\"mytool\"\n",[97,130,132,135],{"class":99,"line":131},4,[97,133,134],{"class":110},"version = ",[97,136,137],{"class":127},"\"1.8.0\"\n",[97,139,141,144],{"class":99,"line":140},5,[97,142,143],{"class":110},"requires-python = ",[97,145,146],{"class":127},"\">=3.10\"\n",[97,148,150],{"class":99,"line":149},6,[97,151,152],{"class":110},"dependencies = [\n",[97,154,156,159],{"class":99,"line":155},7,[97,157,158],{"class":127},"  \"typer>=0.12\"",[97,160,161],{"class":110},",\n",[97,163,165,168],{"class":99,"line":164},8,[97,166,167],{"class":127},"  \"httpx>=0.27\"",[97,169,161],{"class":110},[97,171,173,176],{"class":99,"line":172},9,[97,174,175],{"class":127},"  \"rich>=13\"",[97,177,161],{"class":110},[97,179,181],{"class":99,"line":180},10,[97,182,118],{"class":110},[97,184,186],{"class":99,"line":185},11,[97,187,189],{"emptyLinePlaceholder":188},true,"\n",[97,191,193,195,197,199,202],{"class":99,"line":192},12,[97,194,111],{"class":110},[97,196,115],{"class":114},[97,198,23],{"class":110},[97,200,201],{"class":114},"scripts",[97,203,118],{"class":110},[97,205,207,210],{"class":99,"line":206},13,[97,208,209],{"class":110},"mytool = ",[97,211,212],{"class":127},"\"mytool.cli:app\"\n",[97,214,216],{"class":99,"line":215},14,[97,217,189],{"emptyLinePlaceholder":188},[97,219,221,223,226,228,231,233,236,238,241,243,246],{"class":99,"line":220},15,[97,222,111],{"class":110},[97,224,225],{"class":114},"tool",[97,227,23],{"class":110},[97,229,230],{"class":114},"poetry",[97,232,23],{"class":110},[97,234,235],{"class":114},"group",[97,237,23],{"class":110},[97,239,240],{"class":114},"test",[97,242,23],{"class":110},[97,244,245],{"class":114},"dependencies",[97,247,118],{"class":110},[97,249,251,254],{"class":99,"line":250},16,[97,252,253],{"class":110},"pytest = ",[97,255,256],{"class":127},"\">=8\"\n",[97,258,260,263],{"class":99,"line":259},17,[97,261,262],{"class":110},"pytest-cov = ",[97,264,265],{"class":127},"\">=5\"\n",[97,267,269,272],{"class":99,"line":268},18,[97,270,271],{"class":110},"pytest-randomly = ",[97,273,274],{"class":127},"\">=3.15\"\n",[97,276,278],{"class":99,"line":277},19,[97,279,189],{"emptyLinePlaceholder":188},[97,281,283,285,287,289,291,293,295,297,300,302,304],{"class":99,"line":282},20,[97,284,111],{"class":110},[97,286,225],{"class":114},[97,288,23],{"class":110},[97,290,230],{"class":114},[97,292,23],{"class":110},[97,294,235],{"class":114},[97,296,23],{"class":110},[97,298,299],{"class":114},"lint",[97,301,23],{"class":110},[97,303,245],{"class":114},[97,305,118],{"class":110},[97,307,309,312],{"class":99,"line":308},21,[97,310,311],{"class":110},"ruff = ",[97,313,314],{"class":127},"\">=0.6\"\n",[97,316,318,321],{"class":99,"line":317},22,[97,319,320],{"class":110},"mypy = ",[97,322,323],{"class":127},"\">=1.10\"\n",[97,325,327],{"class":99,"line":326},23,[97,328,189],{"emptyLinePlaceholder":188},[97,330,332,334,336,338,340,342,344,346,349],{"class":99,"line":331},24,[97,333,111],{"class":110},[97,335,225],{"class":114},[97,337,23],{"class":110},[97,339,230],{"class":114},[97,341,23],{"class":110},[97,343,235],{"class":114},[97,345,23],{"class":110},[97,347,348],{"class":114},"docs",[97,350,118],{"class":110},[97,352,354,357],{"class":99,"line":353},25,[97,355,356],{"class":110},"optional = ",[97,358,360],{"class":359},"sj4cs","true\n",[97,362,364],{"class":99,"line":363},26,[97,365,189],{"emptyLinePlaceholder":188},[97,367,369,371,373,375,377,379,381,383,385,387,389],{"class":99,"line":368},27,[97,370,111],{"class":110},[97,372,225],{"class":114},[97,374,23],{"class":110},[97,376,230],{"class":114},[97,378,23],{"class":110},[97,380,235],{"class":114},[97,382,23],{"class":110},[97,384,348],{"class":114},[97,386,23],{"class":110},[97,388,245],{"class":114},[97,390,118],{"class":110},[97,392,394,397],{"class":99,"line":393},28,[97,395,396],{"class":110},"mkdocs-material = ",[97,398,399],{"class":127},"\">=9\"\n",[97,401,403,406],{"class":99,"line":402},29,[97,404,405],{"class":110},"mkdocs-click = ",[97,407,408],{"class":127},"\">=0.8\"\n",[97,410,412],{"class":99,"line":411},30,[97,413,189],{"emptyLinePlaceholder":188},[97,415,417,419,421,423,425,427,429,431,434],{"class":99,"line":416},31,[97,418,111],{"class":110},[97,420,225],{"class":114},[97,422,23],{"class":110},[97,424,230],{"class":114},[97,426,23],{"class":110},[97,428,235],{"class":114},[97,430,23],{"class":110},[97,432,433],{"class":114},"release",[97,435,118],{"class":110},[97,437,439,441],{"class":99,"line":438},32,[97,440,356],{"class":110},[97,442,360],{"class":359},[97,444,446],{"class":99,"line":445},33,[97,447,189],{"emptyLinePlaceholder":188},[97,449,451,453,455,457,459,461,463,465,467,469,471],{"class":99,"line":450},34,[97,452,111],{"class":110},[97,454,225],{"class":114},[97,456,23],{"class":110},[97,458,230],{"class":114},[97,460,23],{"class":110},[97,462,235],{"class":114},[97,464,23],{"class":110},[97,466,433],{"class":114},[97,468,23],{"class":110},[97,470,245],{"class":114},[97,472,118],{"class":110},[97,474,476,479],{"class":99,"line":475},35,[97,477,478],{"class":110},"twine = ",[97,480,265],{"class":127},[97,482,484],{"class":99,"line":483},36,[97,485,189],{"emptyLinePlaceholder":188},[97,487,489,491,494],{"class":99,"line":488},37,[97,490,111],{"class":110},[97,492,493],{"class":114},"build-system",[97,495,118],{"class":110},[97,497,499,502,505],{"class":99,"line":498},38,[97,500,501],{"class":110},"requires = [",[97,503,504],{"class":127},"\"poetry-core>=2.0\"",[97,506,118],{"class":110},[97,508,510,513],{"class":99,"line":509},39,[97,511,512],{"class":110},"build-backend = ",[97,514,515],{"class":127},"\"poetry.core.masonry.api\"\n",[10,517,518],{},"Two details matter here:",[10,520,521,526,527,530,531,23],{},[75,522,523],{},[14,524,525],{},"optional = true"," means a plain ",[14,528,529],{},"poetry install"," skips the group. Documentation tooling is heavy and most contributors never build the docs, so making it optional keeps everyday setup fast. Contributors who need it add ",[14,532,533],{},"--with docs",[10,535,536,539,540,542,543,546],{},[75,537,538],{},"Lower bounds, not pins, in groups too."," The lockfile pins exact versions for reproducibility; the constraints in ",[14,541,41],{}," should say what works. That keeps ",[14,544,545],{},"poetry update"," meaningful and avoids lock conflicts between groups.",[10,548,549],{},"Adding tools to the right group is one command each:",[88,551,555],{"className":552,"code":553,"language":554,"meta":93,"style":93},"language-bash shiki shiki-themes github-light github-dark","poetry add --group test pytest-xdist\npoetry add --group lint \"ruff>=0.6\"\npoetry add --group docs mkdocs-click\npoetry remove --group lint black          # ruff format replaced it\n","bash",[14,556,557,573,587,601],{"__ignoreMap":93},[97,558,559,561,564,567,570],{"class":99,"line":100},[97,560,230],{"class":114},[97,562,563],{"class":127}," add",[97,565,566],{"class":359}," --group",[97,568,569],{"class":127}," test",[97,571,572],{"class":127}," pytest-xdist\n",[97,574,575,577,579,581,584],{"class":99,"line":107},[97,576,230],{"class":114},[97,578,563],{"class":127},[97,580,566],{"class":359},[97,582,583],{"class":127}," lint",[97,585,586],{"class":127}," \"ruff>=0.6\"\n",[97,588,589,591,593,595,598],{"class":99,"line":121},[97,590,230],{"class":114},[97,592,563],{"class":127},[97,594,566],{"class":359},[97,596,597],{"class":127}," docs",[97,599,600],{"class":127}," mkdocs-click\n",[97,602,603,605,608,610,612,615],{"class":99,"line":131},[97,604,230],{"class":114},[97,606,607],{"class":127}," remove",[97,609,566],{"class":359},[97,611,583],{"class":127},[97,613,614],{"class":127}," black",[97,616,617],{"class":103},"          # ruff format replaced it\n",[25,619,621],{"id":620},"installing-exactly-what-each-job-needs","Installing exactly what each job needs",[10,623,624],{},"Each place that installs the project should ask for exactly the groups it uses:",[60,626],{"name":627},"pg-install-matrix",[88,629,633],{"className":630,"code":631,"language":632,"meta":93,"style":93},"language-yaml shiki shiki-themes github-light github-dark","# .github\u002Fworkflows\u002Fci.yml (excerpt)\n  lint:\n    steps:\n      - run: pipx install poetry\n      - run: poetry install --only main,lint\n      - run: poetry run ruff check . && poetry run mypy src\n\n  test:\n    steps:\n      - run: pipx install poetry\n      - run: poetry install --only main,test\n      - run: poetry run pytest -q\n","yaml",[14,634,635,640,649,656,670,681,692,696,703,709,719,730],{"__ignoreMap":93},[97,636,637],{"class":99,"line":100},[97,638,639],{"class":103},"# .github\u002Fworkflows\u002Fci.yml (excerpt)\n",[97,641,642,646],{"class":99,"line":107},[97,643,645],{"class":644},"s9eBZ","  lint",[97,647,648],{"class":110},":\n",[97,650,651,654],{"class":99,"line":121},[97,652,653],{"class":644},"    steps",[97,655,648],{"class":110},[97,657,658,661,664,667],{"class":99,"line":131},[97,659,660],{"class":110},"      - ",[97,662,663],{"class":644},"run",[97,665,666],{"class":110},": ",[97,668,669],{"class":127},"pipx install poetry\n",[97,671,672,674,676,678],{"class":99,"line":140},[97,673,660],{"class":110},[97,675,663],{"class":644},[97,677,666],{"class":110},[97,679,680],{"class":127},"poetry install --only main,lint\n",[97,682,683,685,687,689],{"class":99,"line":149},[97,684,660],{"class":110},[97,686,663],{"class":644},[97,688,666],{"class":110},[97,690,691],{"class":127},"poetry run ruff check . && poetry run mypy src\n",[97,693,694],{"class":99,"line":155},[97,695,189],{"emptyLinePlaceholder":188},[97,697,698,701],{"class":99,"line":164},[97,699,700],{"class":644},"  test",[97,702,648],{"class":110},[97,704,705,707],{"class":99,"line":172},[97,706,653],{"class":644},[97,708,648],{"class":110},[97,710,711,713,715,717],{"class":99,"line":180},[97,712,660],{"class":110},[97,714,663],{"class":644},[97,716,666],{"class":110},[97,718,669],{"class":127},[97,720,721,723,725,727],{"class":99,"line":185},[97,722,660],{"class":110},[97,724,663],{"class":644},[97,726,666],{"class":110},[97,728,729],{"class":127},"poetry install --only main,test\n",[97,731,732,734,736,738],{"class":99,"line":192},[97,733,660],{"class":110},[97,735,663],{"class":644},[97,737,666],{"class":110},[97,739,740],{"class":127},"poetry run pytest -q\n",[10,742,743,746,747,750,751,754,755,758],{},[14,744,745],{},"--only"," installs the listed groups and nothing else, which has a useful side effect beyond speed: if the test suite accidentally depends on something from the lint group, the test job fails and tells you. ",[14,748,749],{},"--with"," adds optional groups to the default set; ",[14,752,753],{},"--without"," removes groups from it. For a production container, ",[14,756,757],{},"poetry install --only main --no-root"," followed by installing the built wheel gives an environment with no development tooling at all.",[25,760,762],{"id":761},"groups-versus-extras","Groups versus extras",[10,764,765],{},"Groups and extras solve different problems, and confusing them leads to packaging bugs.",[30,767,768,778],{},[33,769,770,773,774,777],{},[75,771,772],{},"Dependency groups"," are for ",[75,775,776],{},"developers",". They are never part of the published package's metadata; users cannot request them.",[33,779,780,783,784,787,788,791,792,795],{},[75,781,782],{},"Extras"," (",[14,785,786],{},"[project.optional-dependencies]",") are for ",[75,789,790],{},"users",". They are published in the wheel's metadata and requested at install time: ",[14,793,794],{},"pipx install \"mytool[s3]\""," adds the S3 backend's dependencies.",[10,797,798,799,802,803,806],{},"If a feature of your CLI needs ",[14,800,801],{},"boto3"," and you want users to opt into it, that is an extra. If you need ",[14,804,805],{},"moto"," to test that feature, that is a test-group dependency. The runtime code should import the optional dependency lazily and give a helpful message when it is missing:",[88,808,812],{"className":809,"code":810,"language":811,"meta":93,"style":93},"language-python shiki shiki-themes github-light github-dark","def s3_client():\n    try:\n        import boto3\n    except ImportError:\n        raise SystemExit(\"S3 support needs an extra: pipx install 'mytool[s3]'\") from None\n    return boto3.client(\"s3\")\n","python",[14,813,814,826,833,841,851,874],{"__ignoreMap":93},[97,815,816,820,823],{"class":99,"line":100},[97,817,819],{"class":818},"szBVR","def",[97,821,822],{"class":114}," s3_client",[97,824,825],{"class":110},"():\n",[97,827,828,831],{"class":99,"line":107},[97,829,830],{"class":818},"    try",[97,832,648],{"class":110},[97,834,835,838],{"class":99,"line":121},[97,836,837],{"class":818},"        import",[97,839,840],{"class":110}," boto3\n",[97,842,843,846,849],{"class":99,"line":131},[97,844,845],{"class":818},"    except",[97,847,848],{"class":359}," ImportError",[97,850,648],{"class":110},[97,852,853,856,859,862,865,868,871],{"class":99,"line":140},[97,854,855],{"class":818},"        raise",[97,857,858],{"class":359}," SystemExit",[97,860,861],{"class":110},"(",[97,863,864],{"class":127},"\"S3 support needs an extra: pipx install 'mytool[s3]'\"",[97,866,867],{"class":110},") ",[97,869,870],{"class":818},"from",[97,872,873],{"class":359}," None\n",[97,875,876,879,882,885],{"class":99,"line":149},[97,877,878],{"class":818},"    return",[97,880,881],{"class":110}," boto3.client(",[97,883,884],{"class":127},"\"s3\"",[97,886,887],{"class":110},")\n",[10,889,890,891,23],{},"That pattern also keeps startup fast for users who never touch S3, as described in ",[19,892,894],{"href":893},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcli-startup-performance-and-lazy-loading\u002Freducing-cli-dependency-weight\u002F","reducing CLI dependency weight",[25,896,898],{"id":897},"keeping-tool-groups-current","Keeping tool groups current",[10,900,901,902,904],{},"Development tools change faster than runtime dependencies, and they change in ways that affect every contributor at once: a new Ruff release adds rules, a new mypy release finds errors it previously missed, a pytest plugin drops support for an old Python. Because the lockfile pins every group, those changes arrive only when you run ",[14,903,545],{}," — which is exactly what you want, as long as someone actually runs it.",[10,906,907],{},"A few practices keep the groups healthy without surprises:",[30,909,910,920,926,940],{},[33,911,912,915,916,919],{},[75,913,914],{},"Update groups separately from runtime dependencies."," ",[14,917,918],{},"poetry update --only lint"," bumps the linters without touching what users install, so a linter upgrade never rides along with a behaviour change in the tool.",[33,921,922,925],{},[75,923,924],{},"Let automation open the pull requests."," Dependabot and Renovate both understand Poetry lockfiles and can group development-tool updates into one weekly pull request, where CI shows exactly which new findings appear.",[33,927,928,931,932,935,936,23],{},[75,929,930],{},"Match tool versions in pre-commit."," If ",[14,933,934],{},".pre-commit-config.yaml"," pins Ruff separately, keep it in step with the lint group, or developers see different results on commit and in CI. Running Ruff through a local hook that uses the project environment avoids the duplication; see ",[19,937,939],{"href":938},"\u002Fproject-setup-dependency-management\u002Fpre-commit-hooks-for-cli-projects\u002Fwriting-local-pre-commit-hooks-in-python\u002F","writing local pre-commit hooks in Python",[33,941,942,945,946,949],{},[75,943,944],{},"Remove what nobody uses."," Groups accumulate abandoned tools. ",[14,947,948],{},"poetry show --only lint --top-level"," once a quarter is enough to notice them.",[25,951,953],{"id":952},"ux-considerations","UX considerations",[30,955,956,964,976],{},[33,957,958,915,961,963],{},[75,959,960],{},"Fast default setup.",[14,962,529],{}," with no flags should give a contributor everything needed for the usual loop — runtime, test and lint — and nothing heavier. Make slow groups optional.",[33,965,966,969,970,973,974,23],{},[75,967,968],{},"Document the groups."," A short table in ",[14,971,972],{},"CONTRIBUTING.md"," listing each group and when to install it saves every new contributor from reading ",[14,975,41],{},[33,977,978,915,981,984],{},[75,979,980],{},"Audit what users get.",[14,982,983],{},"poetry show --only main --tree"," shows exactly the dependency tree that ships to users. Review it before each release; it is the only part of the lockfile users experience.",[60,986],{"name":987},"pg-terminal",[25,989,991],{"id":990},"testing-the-behaviour","Testing the behaviour",[10,993,994,995,998],{},"Two checks confirm the groups are right. First, the test suite must pass with only the main and test groups installed — CI's ",[14,996,997],{},"--only main,test"," already enforces this. Second, the built package must declare exactly the runtime dependencies and no tooling:",[88,1000,1002],{"className":809,"code":1001,"language":811,"meta":93,"style":93},"# tests\u002Ftest_packaging.py\nimport subprocess\nimport sys\nimport zipfile\nfrom pathlib import Path\n\nimport pytest\n\nDEV_ONLY = {\"pytest\", \"ruff\", \"mypy\", \"mkdocs-material\", \"twine\"}\n\n\n@pytest.mark.slow\ndef test_wheel_does_not_depend_on_dev_tools(tmp_path: Path) -> None:\n    subprocess.run([sys.executable, \"-m\", \"build\", \"--wheel\", \"--outdir\", str(tmp_path)],\n                   check=True, capture_output=True)\n    wheel = next(tmp_path.glob(\"*.whl\"))\n    with zipfile.ZipFile(wheel) as zf:\n        meta = next(n for n in zf.namelist() if n.endswith(\"METADATA\"))\n        requires = [l.split(\":\", 1)[1].strip() for l in zf.read(meta).decode().splitlines()\n                    if l.startswith(\"Requires-Dist:\")]\n    names = {r.split()[0].split(\";\")[0].split(\">\")[0].split(\"=\")[0].split(\"[\")[0].lower()\n             for r in requires}\n    assert not names & DEV_ONLY, f\"dev tools leaked into runtime deps: {names & DEV_ONLY}\"\n    assert {\"typer\", \"httpx\", \"rich\"} \u003C= names\n",[14,1003,1004,1009,1017,1024,1031,1043,1047,1054,1058,1096,1100,1104,1109,1124,1155,1178,1197,1211,1246,1282,1296,1349,1362,1401],{"__ignoreMap":93},[97,1005,1006],{"class":99,"line":100},[97,1007,1008],{"class":103},"# tests\u002Ftest_packaging.py\n",[97,1010,1011,1014],{"class":99,"line":107},[97,1012,1013],{"class":818},"import",[97,1015,1016],{"class":110}," subprocess\n",[97,1018,1019,1021],{"class":99,"line":121},[97,1020,1013],{"class":818},[97,1022,1023],{"class":110}," sys\n",[97,1025,1026,1028],{"class":99,"line":131},[97,1027,1013],{"class":818},[97,1029,1030],{"class":110}," zipfile\n",[97,1032,1033,1035,1038,1040],{"class":99,"line":140},[97,1034,870],{"class":818},[97,1036,1037],{"class":110}," pathlib ",[97,1039,1013],{"class":818},[97,1041,1042],{"class":110}," Path\n",[97,1044,1045],{"class":99,"line":149},[97,1046,189],{"emptyLinePlaceholder":188},[97,1048,1049,1051],{"class":99,"line":155},[97,1050,1013],{"class":818},[97,1052,1053],{"class":110}," pytest\n",[97,1055,1056],{"class":99,"line":164},[97,1057,189],{"emptyLinePlaceholder":188},[97,1059,1060,1063,1066,1069,1072,1075,1078,1080,1083,1085,1088,1090,1093],{"class":99,"line":172},[97,1061,1062],{"class":359},"DEV_ONLY",[97,1064,1065],{"class":818}," =",[97,1067,1068],{"class":110}," {",[97,1070,1071],{"class":127},"\"pytest\"",[97,1073,1074],{"class":110},", ",[97,1076,1077],{"class":127},"\"ruff\"",[97,1079,1074],{"class":110},[97,1081,1082],{"class":127},"\"mypy\"",[97,1084,1074],{"class":110},[97,1086,1087],{"class":127},"\"mkdocs-material\"",[97,1089,1074],{"class":110},[97,1091,1092],{"class":127},"\"twine\"",[97,1094,1095],{"class":110},"}\n",[97,1097,1098],{"class":99,"line":180},[97,1099,189],{"emptyLinePlaceholder":188},[97,1101,1102],{"class":99,"line":185},[97,1103,189],{"emptyLinePlaceholder":188},[97,1105,1106],{"class":99,"line":192},[97,1107,1108],{"class":114},"@pytest.mark.slow\n",[97,1110,1111,1113,1116,1119,1122],{"class":99,"line":206},[97,1112,819],{"class":818},[97,1114,1115],{"class":114}," test_wheel_does_not_depend_on_dev_tools",[97,1117,1118],{"class":110},"(tmp_path: Path) -> ",[97,1120,1121],{"class":359},"None",[97,1123,648],{"class":110},[97,1125,1126,1129,1132,1134,1137,1139,1142,1144,1147,1149,1152],{"class":99,"line":215},[97,1127,1128],{"class":110},"    subprocess.run([sys.executable, ",[97,1130,1131],{"class":127},"\"-m\"",[97,1133,1074],{"class":110},[97,1135,1136],{"class":127},"\"build\"",[97,1138,1074],{"class":110},[97,1140,1141],{"class":127},"\"--wheel\"",[97,1143,1074],{"class":110},[97,1145,1146],{"class":127},"\"--outdir\"",[97,1148,1074],{"class":110},[97,1150,1151],{"class":359},"str",[97,1153,1154],{"class":110},"(tmp_path)],\n",[97,1156,1157,1161,1164,1167,1169,1172,1174,1176],{"class":99,"line":220},[97,1158,1160],{"class":1159},"s4XuR","                   check",[97,1162,1163],{"class":818},"=",[97,1165,1166],{"class":359},"True",[97,1168,1074],{"class":110},[97,1170,1171],{"class":1159},"capture_output",[97,1173,1163],{"class":818},[97,1175,1166],{"class":359},[97,1177,887],{"class":110},[97,1179,1180,1183,1185,1188,1191,1194],{"class":99,"line":250},[97,1181,1182],{"class":110},"    wheel ",[97,1184,1163],{"class":818},[97,1186,1187],{"class":359}," next",[97,1189,1190],{"class":110},"(tmp_path.glob(",[97,1192,1193],{"class":127},"\"*.whl\"",[97,1195,1196],{"class":110},"))\n",[97,1198,1199,1202,1205,1208],{"class":99,"line":259},[97,1200,1201],{"class":818},"    with",[97,1203,1204],{"class":110}," zipfile.ZipFile(wheel) ",[97,1206,1207],{"class":818},"as",[97,1209,1210],{"class":110}," zf:\n",[97,1212,1213,1216,1218,1220,1223,1226,1229,1232,1235,1238,1241,1244],{"class":99,"line":268},[97,1214,1215],{"class":110},"        meta ",[97,1217,1163],{"class":818},[97,1219,1187],{"class":359},[97,1221,1222],{"class":110},"(n ",[97,1224,1225],{"class":818},"for",[97,1227,1228],{"class":110}," n ",[97,1230,1231],{"class":818},"in",[97,1233,1234],{"class":110}," zf.namelist() ",[97,1236,1237],{"class":818},"if",[97,1239,1240],{"class":110}," n.endswith(",[97,1242,1243],{"class":127},"\"METADATA\"",[97,1245,1196],{"class":110},[97,1247,1248,1251,1253,1256,1259,1261,1264,1267,1269,1272,1274,1277,1279],{"class":99,"line":277},[97,1249,1250],{"class":110},"        requires ",[97,1252,1163],{"class":818},[97,1254,1255],{"class":110}," [l.split(",[97,1257,1258],{"class":127},"\":\"",[97,1260,1074],{"class":110},[97,1262,1263],{"class":359},"1",[97,1265,1266],{"class":110},")[",[97,1268,1263],{"class":359},[97,1270,1271],{"class":110},"].strip() ",[97,1273,1225],{"class":818},[97,1275,1276],{"class":110}," l ",[97,1278,1231],{"class":818},[97,1280,1281],{"class":110}," zf.read(meta).decode().splitlines()\n",[97,1283,1284,1287,1290,1293],{"class":99,"line":282},[97,1285,1286],{"class":818},"                    if",[97,1288,1289],{"class":110}," l.startswith(",[97,1291,1292],{"class":127},"\"Requires-Dist:\"",[97,1294,1295],{"class":110},")]\n",[97,1297,1298,1301,1303,1306,1309,1312,1315,1317,1319,1321,1324,1326,1328,1330,1333,1335,1337,1339,1342,1344,1346],{"class":99,"line":308},[97,1299,1300],{"class":110},"    names ",[97,1302,1163],{"class":818},[97,1304,1305],{"class":110}," {r.split()[",[97,1307,1308],{"class":359},"0",[97,1310,1311],{"class":110},"].split(",[97,1313,1314],{"class":127},"\";\"",[97,1316,1266],{"class":110},[97,1318,1308],{"class":359},[97,1320,1311],{"class":110},[97,1322,1323],{"class":127},"\">\"",[97,1325,1266],{"class":110},[97,1327,1308],{"class":359},[97,1329,1311],{"class":110},[97,1331,1332],{"class":127},"\"=\"",[97,1334,1266],{"class":110},[97,1336,1308],{"class":359},[97,1338,1311],{"class":110},[97,1340,1341],{"class":127},"\"[\"",[97,1343,1266],{"class":110},[97,1345,1308],{"class":359},[97,1347,1348],{"class":110},"].lower()\n",[97,1350,1351,1354,1357,1359],{"class":99,"line":317},[97,1352,1353],{"class":818},"             for",[97,1355,1356],{"class":110}," r ",[97,1358,1231],{"class":818},[97,1360,1361],{"class":110}," requires}\n",[97,1363,1364,1367,1370,1373,1376,1379,1381,1384,1387,1390,1393,1395,1398],{"class":99,"line":326},[97,1365,1366],{"class":818},"    assert",[97,1368,1369],{"class":818}," not",[97,1371,1372],{"class":110}," names ",[97,1374,1375],{"class":818},"&",[97,1377,1378],{"class":359}," DEV_ONLY",[97,1380,1074],{"class":110},[97,1382,1383],{"class":818},"f",[97,1385,1386],{"class":127},"\"dev tools leaked into runtime deps: ",[97,1388,1389],{"class":359},"{",[97,1391,1392],{"class":110},"names ",[97,1394,1375],{"class":818},[97,1396,1397],{"class":359}," DEV_ONLY}",[97,1399,1400],{"class":127},"\"\n",[97,1402,1403,1405,1407,1410,1412,1415,1417,1420,1423,1426],{"class":99,"line":331},[97,1404,1366],{"class":818},[97,1406,1068],{"class":110},[97,1408,1409],{"class":127},"\"typer\"",[97,1411,1074],{"class":110},[97,1413,1414],{"class":127},"\"httpx\"",[97,1416,1074],{"class":110},[97,1418,1419],{"class":127},"\"rich\"",[97,1421,1422],{"class":110},"} ",[97,1424,1425],{"class":818},"\u003C=",[97,1427,1428],{"class":110}," names\n",[10,1430,1431,1432,1435,1436,1439,1440,1443],{},"The test builds the wheel with ",[14,1433,1434],{},"python -m build"," (add ",[14,1437,1438],{},"build"," to the test group) and reads ",[14,1441,1442],{},"Requires-Dist"," from its metadata — the exact list pip or uv will install for users. It is slow compared with unit tests, so mark it and run it in the packaging job rather than on every save.",[25,1445,1447],{"id":1446},"conclusion","Conclusion",[10,1449,1450,1451,1453],{},"Dependency groups draw the line between what your CLI needs to run and what you need to build it. Keep runtime dependencies in the main group, split tooling into test, lint and optional docs or release groups, install exactly the groups each CI job needs with ",[14,1452,745],{},", and use extras — not groups — for optional features users choose. The result is faster CI, lighter installs for users, and packaging mistakes caught by the pipeline rather than by the first person to run the release.",[25,1455,1457],{"id":1456},"frequently-asked-questions","Frequently asked questions",[1459,1460,1462,1463,1466],"h3",{"id":1461},"what-happened-to-dev-dependencies","What happened to ",[14,1464,1465],{},"dev-dependencies","?",[10,1468,1469,1472,1473,1475,1476,1479],{},[14,1470,1471],{},"[tool.poetry.dev-dependencies]"," is the pre-1.2 syntax. Poetry still reads it as a group named ",[14,1474,81],{},", but new projects should use ",[14,1477,1478],{},"[tool.poetry.group.dev.dependencies]"," or more specific groups.",[1459,1481,1483,1484,1487],{"id":1482},"does-poetry-support-standard-dependency-groups-pep-735","Does Poetry support standard ",[14,1485,1486],{},"[dependency-groups]"," (PEP 735)?",[10,1489,1490,1491,23],{},"Recent Poetry 2.x releases read PEP 735 dependency groups as well as their own format. Using the standard table makes the project readable by uv and other tools too, which is useful if you are considering ",[19,1492,1494],{"href":1493},"\u002Fproject-setup-dependency-management\u002Fpoetry-workflows-for-cli-development\u002Fmigrating-a-cli-from-poetry-to-uv\u002F","migrating a CLI from Poetry to uv",[1459,1496,1498],{"id":1497},"can-one-group-include-another","Can one group include another?",[10,1500,1501,1502,1505],{},"Poetry groups cannot include each other, but PEP 735 groups can, with ",[14,1503,1504],{},"{include-group = \"test\"}"," entries. If you need composition, the standard format is the one to use.",[1459,1507,1509],{"id":1508},"should-the-test-group-include-the-packages-optional-extras","Should the test group include the package's optional extras?",[10,1511,1512,1513,1516,1517,1520],{},"Yes, if you test the optional features. Install them in the test job with ",[14,1514,1515],{},"poetry install --only main,test --extras s3"," (or ",[14,1518,1519],{},"--all-extras",") so extra-dependent code paths are exercised.",[25,1522,1524],{"id":1523},"related","Related",[30,1526,1527,1533,1537,1542,1547],{},[33,1528,1529,1530],{},"Up: ",[19,1531,1532],{"href":21},"Poetry workflows for CLI development",[33,1534,1535],{},[19,1536,54],{"href":53},[33,1538,1539],{},[19,1540,1541],{"href":1493},"Migrating a CLI from Poetry to uv",[33,1543,1544],{},[19,1545,1546],{"href":893},"Reducing CLI dependency weight",[33,1548,1549],{},[19,1550,1552],{"href":1551},"\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002Ftesting-a-cli-across-python-versions-with-github-actions\u002F","Testing a CLI across Python versions with GitHub Actions",[1554,1555,1556],"style",{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}",{"title":93,"searchDepth":107,"depth":107,"links":1558},[1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1576],{"id":27,"depth":107,"text":28},{"id":57,"depth":107,"text":58},{"id":85,"depth":107,"text":86},{"id":620,"depth":107,"text":621},{"id":761,"depth":107,"text":762},{"id":897,"depth":107,"text":898},{"id":952,"depth":107,"text":953},{"id":990,"depth":107,"text":991},{"id":1446,"depth":107,"text":1447},{"id":1456,"depth":107,"text":1457,"children":1569},[1570,1572,1574,1575],{"id":1461,"depth":121,"text":1571},"What happened to dev-dependencies?",{"id":1482,"depth":121,"text":1573},"Does Poetry support standard [dependency-groups] (PEP 735)?",{"id":1497,"depth":121,"text":1498},{"id":1508,"depth":121,"text":1509},{"id":1523,"depth":107,"text":1524},"2026-09-18","Organise a Poetry CLI project’s development tools into dependency groups: test, lint, docs and optional groups, per-job installs in CI, and groups versus extras.","beginner",false,"md",{},"\u002Fproject-setup-dependency-management\u002Fpoetry-workflows-for-cli-development\u002Fpoetry-dependency-groups-for-cli-tooling",{"title":5,"description":1578},"project-setup-dependency-management\u002Fpoetry-workflows-for-cli-development\u002Fpoetry-dependency-groups-for-cli-tooling\u002Findex",[230,245,1587,1588],"ci","packaging","-wz_N4b42eEGOxPtPPHc1bdc6lTSkNoomiYOO4wU0yQ",[1591,1594,1597,1600,1603,1606,1609,1612,1615,1618,1621,1624,1627,1630,1633,1636,1639,1642,1645,1648,1651,1654,1657,1660,1663,1666,1669,1672,1675,1678,1681,1684,1687,1690,1693,1696,1699,1702,1705,1708,1711,1714,1717,1720,1723,1726,1729,1732,1735,1738,1741,1744,1747,1750,1753,1756,1759,1762,1765,1768,1771,1774,1777,1780,1783,1786,1789,1792,1795,1798,1801,1804,1807,1810,1813,1816,1819,1822,1825,1828,1831,1834,1837,1840,1843,1846,1849,1852,1855,1858,1861,1864,1867,1870,1873,1876,1879,1882,1885,1888,1891,1894,1897,1900,1903,1906,1909,1912,1915,1918,1921,1924,1927,1930,1933,1936,1939,1942,1945,1948,1951,1954,1957,1960,1963,1966,1969,1972,1975,1978,1981,1984,1987,1990,1993,1996,1999,2002,2005,2008,2011,2014,2017,2020,2023,2026,2029,2032,2035,2038,2041,2044,2047,2050,2053,2056,2059,2062,2065,2068,2071,2074,2077,2080,2083,2086,2089,2092,2095,2096,2099,2102,2105,2108,2111,2114,2117,2120,2123,2126,2129,2132,2135],{"path":1592,"title":1593},"\u002Fabout","About Python CLI Toolcraft",{"path":1595,"title":1596},"\u002Fadvanced-input-parsing-user-experience\u002Fadvanced-argument-validation-strategies","Advanced Argument Validation Strategies",{"path":1598,"title":1599},"\u002Fadvanced-input-parsing-user-experience\u002Fadvanced-argument-validation-strategies\u002Fparsing-nested-json-arguments-in-python-clis","Parsing Nested JSON Args in Python CLIs",{"path":1601,"title":1602},"\u002Fadvanced-input-parsing-user-experience\u002Fadvanced-argument-validation-strategies\u002Fvalidating-dependent-and-conflicting-options","Validating Dependent and Conflicting CLI Options",{"path":1604,"title":1605},"\u002Fadvanced-input-parsing-user-experience\u002Fadvanced-argument-validation-strategies\u002Fvalidating-file-and-directory-paths-in-clis","Validating File and Directory Paths in CLIs",{"path":1607,"title":1608},"\u002Fadvanced-input-parsing-user-experience\u002Fadvanced-argument-validation-strategies\u002Fwriting-custom-click-parameter-types","Writing Custom Click Parameter Types",{"path":1610,"title":1611},"\u002Fadvanced-input-parsing-user-experience\u002Fbuilding-terminal-uis-with-textual\u002Fbuilding-your-first-textual-app","Building Your First Textual App for a Python CLI",{"path":1613,"title":1614},"\u002Fadvanced-input-parsing-user-experience\u002Fbuilding-terminal-uis-with-textual\u002Fchoosing-between-a-cli-a-prompt-flow-and-a-tui","Choosing Between a CLI, a Prompt Flow and a TUI",{"path":1616,"title":1617},"\u002Fadvanced-input-parsing-user-experience\u002Fbuilding-terminal-uis-with-textual","Building Terminal UIs with Textual for Python CLIs",{"path":1619,"title":1620},"\u002Fadvanced-input-parsing-user-experience\u002Fbuilding-terminal-uis-with-textual\u002Ftesting-textual-apps-with-pilot","Testing Textual Apps with Pilot",{"path":1622,"title":1623},"\u002Fadvanced-input-parsing-user-experience\u002Fcli-help-output-and-documentation\u002Fadding-examples-and-epilogs-to-help-output","Adding Examples and Epilogs to Help Output",{"path":1625,"title":1626},"\u002Fadvanced-input-parsing-user-experience\u002Fcli-help-output-and-documentation\u002Fgenerating-man-pages-and-docs-from-a-cli","Generating Man Pages and Docs from a CLI",{"path":1628,"title":1629},"\u002Fadvanced-input-parsing-user-experience\u002Fcli-help-output-and-documentation","CLI Help Output and Documentation",{"path":1631,"title":1632},"\u002Fadvanced-input-parsing-user-experience\u002Fcli-help-output-and-documentation\u002Fversioning-and-deprecating-cli-flags","Versioning and Deprecating CLI Flags",{"path":1634,"title":1635},"\u002Fadvanced-input-parsing-user-experience\u002Fcli-help-output-and-documentation\u002Fwriting-help-text-users-actually-read","Writing Help Text Users Actually Read",{"path":1637,"title":1638},"\u002Fadvanced-input-parsing-user-experience\u002Fcross-platform-terminal-compatibility\u002Fadapting-output-to-terminal-width","Adapting Python CLI Output to Terminal Width",{"path":1640,"title":1641},"\u002Fadvanced-input-parsing-user-experience\u002Fcross-platform-terminal-compatibility\u002Fdetecting-ci-environments-and-non-interactive-shells","Detecting CI Environments and Non-Interactive Shells",{"path":1643,"title":1644},"\u002Fadvanced-input-parsing-user-experience\u002Fcross-platform-terminal-compatibility\u002Ffixing-unicode-and-encoding-errors-on-windows","Fixing Unicode and Encoding Errors on Windows in Python CLIs",{"path":1646,"title":1647},"\u002Fadvanced-input-parsing-user-experience\u002Fcross-platform-terminal-compatibility","Cross-Platform Terminal Compatibility for Python CLIs",{"path":1649,"title":1650},"\u002Fadvanced-input-parsing-user-experience\u002Fcross-platform-terminal-compatibility\u002Frespecting-no-color-and-force-color","Respecting NO_COLOR and FORCE_COLOR in Python CLIs",{"path":1652,"title":1653},"\u002Fadvanced-input-parsing-user-experience\u002Ferror-handling-and-exit-codes\u002Fchoosing-exit-codes-for-cli-tools","Choosing Exit Codes for CLI Tools",{"path":1655,"title":1656},"\u002Fadvanced-input-parsing-user-experience\u002Ferror-handling-and-exit-codes\u002Fdesigning-an-exception-hierarchy-for-a-cli","Designing an Exception Hierarchy for a Python CLI",{"path":1658,"title":1659},"\u002Fadvanced-input-parsing-user-experience\u002Ferror-handling-and-exit-codes\u002Ffriendly-error-messages-and-tracebacks","Friendly Error Messages and Tracebacks",{"path":1661,"title":1662},"\u002Fadvanced-input-parsing-user-experience\u002Ferror-handling-and-exit-codes\u002Fhandling-keyboard-interrupt-cleanly","Handling Keyboard Interrupt Cleanly",{"path":1664,"title":1665},"\u002Fadvanced-input-parsing-user-experience\u002Ferror-handling-and-exit-codes","Error Handling and Exit Codes for CLIs",{"path":1667,"title":1668},"\u002Fadvanced-input-parsing-user-experience\u002Ferror-handling-and-exit-codes\u002Freporting-machine-readable-errors-in-json-mode","Reporting Machine-Readable Errors in JSON Mode",{"path":1670,"title":1671},"\u002Fadvanced-input-parsing-user-experience\u002Fhandling-configuration-files-env-vars\u002Fconfig-precedence-flags-env-files-defaults","Config Precedence: Flags, Env, Files, Defaults",{"path":1673,"title":1674},"\u002Fadvanced-input-parsing-user-experience\u002Fhandling-configuration-files-env-vars\u002Fdiscovering-project-config-files-by-walking-up-directories","Discovering Project Config Files by Walking Up Directories",{"path":1676,"title":1677},"\u002Fadvanced-input-parsing-user-experience\u002Fhandling-configuration-files-env-vars","Handling Config Files and Env Vars in CLIs",{"path":1679,"title":1680},"\u002Fadvanced-input-parsing-user-experience\u002Fhandling-configuration-files-env-vars\u002Floading-yaml-configs-safely-in-cli-apps","Loading YAML configs safely in CLI apps",{"path":1682,"title":1683},"\u002Fadvanced-input-parsing-user-experience\u002Fhandling-configuration-files-env-vars\u002Freading-toml-config-with-tomllib","Reading TOML Config with tomllib in Python CLIs",{"path":1685,"title":1686},"\u002Fadvanced-input-parsing-user-experience\u002Fhandling-configuration-files-env-vars\u002Ftyped-settings-with-pydantic-settings","Typed Settings with pydantic-settings in Python CLIs",{"path":1688,"title":1689},"\u002Fadvanced-input-parsing-user-experience","Advanced Input Parsing for Python CLIs",{"path":1691,"title":1692},"\u002Fadvanced-input-parsing-user-experience\u002Finteractive-terminal-ui-with-rich\u002Fadding-progress-bars-and-spinners-to-python-clis","Progress Bars and Spinners for Python CLIs",{"path":1694,"title":1695},"\u002Fadvanced-input-parsing-user-experience\u002Finteractive-terminal-ui-with-rich\u002Fbuilding-interactive-prompts-and-menus","Building Interactive Prompts and Menus in Python CLIs",{"path":1697,"title":1698},"\u002Fadvanced-input-parsing-user-experience\u002Finteractive-terminal-ui-with-rich","Interactive Terminal UI with Rich",{"path":1700,"title":1701},"\u002Fadvanced-input-parsing-user-experience\u002Finteractive-terminal-ui-with-rich\u002Flive-dashboards-with-rich-live","Live Dashboards with Rich Live in Python CLIs",{"path":1703,"title":1704},"\u002Fadvanced-input-parsing-user-experience\u002Finteractive-terminal-ui-with-rich\u002Frendering-tables-and-json-with-rich","Rendering Tables and JSON with Rich",{"path":1706,"title":1707},"\u002Fadvanced-input-parsing-user-experience\u002Finteractive-terminal-ui-with-rich\u002Ftheming-rich-output-consistently","Theming Rich Output Consistently in Python CLIs",{"path":1709,"title":1710},"\u002Fadvanced-input-parsing-user-experience\u002Fshell-completion-for-python-clis\u002Fdynamic-completion-values-from-apis-and-files","Dynamic Completion Values from APIs and Files",{"path":1712,"title":1713},"\u002Fadvanced-input-parsing-user-experience\u002Fshell-completion-for-python-clis\u002Fenabling-tab-completion-in-click-and-typer","Enabling Tab Completion in Click and Typer",{"path":1715,"title":1716},"\u002Fadvanced-input-parsing-user-experience\u002Fshell-completion-for-python-clis","Shell Completion for Python CLIs",{"path":1718,"title":1719},"\u002Fadvanced-input-parsing-user-experience\u002Fshell-completion-for-python-clis\u002Finstalling-shell-completion-for-bash-zsh-fish","Installing Shell Completion for bash, zsh, fish",{"path":1721,"title":1722},"\u002Fadvanced-input-parsing-user-experience\u002Fshell-completion-for-python-clis\u002Ftesting-shell-completion-in-python-clis","Testing Shell Completion in Python CLIs",{"path":1724,"title":1725},"\u002Fadvanced-input-parsing-user-experience\u002Fstructured-logging-for-cli-apps\u002Fadding-trace-ids-and-context-to-cli-logs","Adding Trace IDs and Context to Python CLI Logs",{"path":1727,"title":1728},"\u002Fadvanced-input-parsing-user-experience\u002Fstructured-logging-for-cli-apps\u002Fadding-verbose-and-quiet-logging-flags","Adding Verbose and Quiet Logging Flags",{"path":1730,"title":1731},"\u002Fadvanced-input-parsing-user-experience\u002Fstructured-logging-for-cli-apps","Structured Logging for CLI Apps",{"path":1733,"title":1734},"\u002Fadvanced-input-parsing-user-experience\u002Fstructured-logging-for-cli-apps\u002Fstructured-json-logging-in-python-clis","Structured JSON Logging in Python CLIs",{"path":1736,"title":1737},"\u002Fadvanced-input-parsing-user-experience\u002Fstructured-logging-for-cli-apps\u002Fwriting-rotating-log-files-from-a-cli","Writing Rotating Log Files from a Python CLI",{"path":1739,"title":1740},"\u002Fadvanced-input-parsing-user-experience\u002Fworking-with-stdin-stdout-and-pipes\u002Fdetecting-tty-and-adapting-output","Detecting a TTY and Adapting Output",{"path":1742,"title":1743},"\u002Fadvanced-input-parsing-user-experience\u002Fworking-with-stdin-stdout-and-pipes\u002Femitting-json-output-for-scripting","Emitting JSON Output for Scripting",{"path":1745,"title":1746},"\u002Fadvanced-input-parsing-user-experience\u002Fworking-with-stdin-stdout-and-pipes\u002Fhandling-broken-pipe-and-sigpipe","Handling Broken Pipe and SIGPIPE",{"path":1748,"title":1749},"\u002Fadvanced-input-parsing-user-experience\u002Fworking-with-stdin-stdout-and-pipes","Working with stdin, stdout and Pipes",{"path":1751,"title":1752},"\u002Fadvanced-input-parsing-user-experience\u002Fworking-with-stdin-stdout-and-pipes\u002Fprocessing-large-files-and-ndjson-streams","Processing Large Files and NDJSON Streams in Python CLIs",{"path":1754,"title":1755},"\u002Fadvanced-input-parsing-user-experience\u002Fworking-with-stdin-stdout-and-pipes\u002Freading-piped-input-in-python-clis","Reading Piped Input in Python CLIs",{"path":1757,"title":1758},"\u002Fcli-runtime-systems-integration\u002Fcalling-http-apis-from-python-clis\u002Fbuilding-an-api-client-cli-with-httpx","Building an API Client CLI with httpx",{"path":1760,"title":1761},"\u002Fcli-runtime-systems-integration\u002Fcalling-http-apis-from-python-clis\u002Fdownloading-files-with-progress-in-python","Downloading Files with Progress in Python CLIs",{"path":1763,"title":1764},"\u002Fcli-runtime-systems-integration\u002Fcalling-http-apis-from-python-clis","Calling HTTP APIs from Python CLIs",{"path":1766,"title":1767},"\u002Fcli-runtime-systems-integration\u002Fcalling-http-apis-from-python-clis\u002Foauth-device-flow-login-for-clis","OAuth Device Flow Login for Python CLIs",{"path":1769,"title":1770},"\u002Fcli-runtime-systems-integration\u002Fcalling-http-apis-from-python-clis\u002Fpaginating-api-results-in-a-cli","Paginating API Results in a Python CLI",{"path":1772,"title":1773},"\u002Fcli-runtime-systems-integration\u002Fcalling-http-apis-from-python-clis\u002Fretries-and-backoff-for-cli-http-calls","Retries and Backoff for CLI HTTP Calls",{"path":1775,"title":1776},"\u002Fcli-runtime-systems-integration\u002Fconcurrency-and-async-in-python-clis\u002Fcancelling-async-tasks-on-ctrl-c","Cancelling Async Tasks on Ctrl+C in Python CLIs",{"path":1778,"title":1779},"\u002Fcli-runtime-systems-integration\u002Fconcurrency-and-async-in-python-clis","Concurrency and Async in Python CLIs",{"path":1781,"title":1782},"\u002Fcli-runtime-systems-integration\u002Fconcurrency-and-async-in-python-clis\u002Fmultiprocessing-for-cpu-bound-cli-tasks","Multiprocessing for CPU-Bound CLI Tasks",{"path":1784,"title":1785},"\u002Fcli-runtime-systems-integration\u002Fconcurrency-and-async-in-python-clis\u002Fparallelising-cli-work-with-thread-pools","Parallelising CLI Work with Thread Pools",{"path":1787,"title":1788},"\u002Fcli-runtime-systems-integration\u002Fconcurrency-and-async-in-python-clis\u002Frate-limiting-concurrent-requests-in-clis","Rate-Limiting Concurrent Requests in Python CLIs",{"path":1790,"title":1791},"\u002Fcli-runtime-systems-integration\u002Fconcurrency-and-async-in-python-clis\u002Frunning-async-code-in-typer-and-click","Running Async Code in Typer and Click",{"path":1793,"title":1794},"\u002Fcli-runtime-systems-integration\u002Ffilesystem-paths-and-atomic-writes\u002Fcross-platform-paths-with-pathlib","Cross-Platform Paths with pathlib in CLIs",{"path":1796,"title":1797},"\u002Fcli-runtime-systems-integration\u002Ffilesystem-paths-and-atomic-writes\u002Ffile-locking-for-concurrent-cli-runs","File Locking for Concurrent CLI Runs in Python",{"path":1799,"title":1800},"\u002Fcli-runtime-systems-integration\u002Ffilesystem-paths-and-atomic-writes","Filesystem Paths and Atomic Writes for CLIs",{"path":1802,"title":1803},"\u002Fcli-runtime-systems-integration\u002Ffilesystem-paths-and-atomic-writes\u002Fsafe-temporary-files-and-directories","Safe Temporary Files and Directories in CLIs",{"path":1805,"title":1806},"\u002Fcli-runtime-systems-integration\u002Ffilesystem-paths-and-atomic-writes\u002Fstoring-app-data-with-platformdirs","Storing CLI App Data with platformdirs",{"path":1808,"title":1809},"\u002Fcli-runtime-systems-integration\u002Ffilesystem-paths-and-atomic-writes\u002Fwriting-files-atomically-in-python-clis","Writing Files Atomically in Python CLIs",{"path":1811,"title":1812},"\u002Fcli-runtime-systems-integration","CLI Runtime & Systems Integration for Python",{"path":1814,"title":1815},"\u002Fcli-runtime-systems-integration\u002Flong-running-and-watch-mode-clis\u002Fbuilding-a-watch-mode-with-watchfiles","Building a Watch Mode with watchfiles in Python",{"path":1817,"title":1818},"\u002Fcli-runtime-systems-integration\u002Flong-running-and-watch-mode-clis\u002Fhandling-sigterm-and-graceful-shutdown","Handling SIGTERM and Graceful Shutdown in CLIs",{"path":1820,"title":1821},"\u002Fcli-runtime-systems-integration\u002Flong-running-and-watch-mode-clis\u002Fhealth-checks-and-heartbeats-for-long-running-clis","Health Checks and Heartbeats for Long-Running CLIs",{"path":1823,"title":1824},"\u002Fcli-runtime-systems-integration\u002Flong-running-and-watch-mode-clis","Long-Running and Watch-Mode Python CLIs",{"path":1826,"title":1827},"\u002Fcli-runtime-systems-integration\u002Flong-running-and-watch-mode-clis\u002Frunning-a-cli-on-a-schedule-with-cron-and-systemd","Running a Python CLI on a Schedule with cron and systemd",{"path":1829,"title":1830},"\u002Fcli-runtime-systems-integration\u002Frunning-subprocesses-from-python-clis\u002Favoiding-shell-injection-in-python-clis","Avoiding Shell Injection in Python CLIs",{"path":1832,"title":1833},"\u002Fcli-runtime-systems-integration\u002Frunning-subprocesses-from-python-clis\u002Fcalling-external-commands-safely-with-subprocess","Calling External Commands Safely with subprocess",{"path":1835,"title":1836},"\u002Fcli-runtime-systems-integration\u002Frunning-subprocesses-from-python-clis\u002Fhandling-subprocess-timeouts-and-exit-codes","Handling Subprocess Timeouts and Exit Codes",{"path":1838,"title":1839},"\u002Fcli-runtime-systems-integration\u002Frunning-subprocesses-from-python-clis","Running Subprocesses from Python CLIs",{"path":1841,"title":1842},"\u002Fcli-runtime-systems-integration\u002Frunning-subprocesses-from-python-clis\u002Fstreaming-subprocess-output-in-real-time","Streaming Subprocess Output in Real Time",{"path":1844,"title":1845},"\u002Fcli-runtime-systems-integration\u002Frunning-subprocesses-from-python-clis\u002Fwrapping-git-and-other-tools-from-a-python-cli","Wrapping git and Other Tools from a Python CLI",{"path":1847,"title":1848},"\u002Fcli-runtime-systems-integration\u002Fsecrets-and-credentials-in-python-clis","Secrets and Credentials in Python CLIs",{"path":1850,"title":1851},"\u002Fcli-runtime-systems-integration\u002Fsecrets-and-credentials-in-python-clis\u002Fprompting-for-passwords-securely","Prompting for Passwords Securely in Python CLIs",{"path":1853,"title":1854},"\u002Fcli-runtime-systems-integration\u002Fsecrets-and-credentials-in-python-clis\u002Freading-secrets-from-env-and-files","Reading Secrets from Env Vars and Files in CLIs",{"path":1856,"title":1857},"\u002Fcli-runtime-systems-integration\u002Fsecrets-and-credentials-in-python-clis\u002Fredacting-secrets-from-cli-output-and-logs","Redacting Secrets from CLI Output and Logs",{"path":1859,"title":1860},"\u002Fcli-runtime-systems-integration\u002Fsecrets-and-credentials-in-python-clis\u002Fstoring-tokens-with-keyring","Storing CLI Tokens Securely with keyring",{"path":1862,"title":1863},"\u002Fcli-runtime-systems-integration\u002Fsecrets-and-credentials-in-python-clis\u002Fsupporting-multiple-profiles-and-accounts","Supporting Multiple Profiles and Accounts in CLIs",{"path":1865,"title":1866},"\u002F","Python CLI Toolcraft",{"path":1868,"title":1869},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcli-startup-performance-and-lazy-loading\u002Fcaching-expensive-work-between-cli-runs","Caching Expensive Work Between Python CLI Runs",{"path":1871,"title":1872},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcli-startup-performance-and-lazy-loading","CLI Startup Performance and Lazy Loading",{"path":1874,"title":1875},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcli-startup-performance-and-lazy-loading\u002Flazy-loading-subcommands-for-faster-startup","Lazy Loading Subcommands for Faster Startup",{"path":1877,"title":1878},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcli-startup-performance-and-lazy-loading\u002Fprofiling-python-cli-startup-time","Profiling Python CLI Startup Time",{"path":1880,"title":1881},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcli-startup-performance-and-lazy-loading\u002Freducing-cli-dependency-weight","Reducing CLI Dependency Weight",{"path":1883,"title":1884},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcommand-line-parsing-with-argparse\u002Fargparse-subparsers-for-subcommands","argparse Subparsers for Subcommands",{"path":1886,"title":1887},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcommand-line-parsing-with-argparse\u002Fargparse-vs-click-vs-typer-comparison","argparse vs Click vs Typer Compared",{"path":1889,"title":1890},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcommand-line-parsing-with-argparse","Command-Line Parsing with argparse",{"path":1892,"title":1893},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcommand-line-parsing-with-argparse\u002Fmigrating-from-argparse-to-typer","Migrating from argparse to Typer",{"path":1895,"title":1896},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcommand-line-parsing-with-argparse\u002Fmutually-exclusive-options-in-argparse","Mutually Exclusive Options in argparse",{"path":1898,"title":1899},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcommand-line-parsing-with-argparse\u002Fwriting-custom-argparse-actions","Writing Custom argparse Actions in Python",{"path":1901,"title":1902},"\u002Fmodern-python-cli-frameworks-architecture\u002Fdesigning-cli-interfaces-and-conventions\u002Fadding-dry-run-and-confirmation-to-destructive-commands","Adding Dry-Run and Confirmation to Destructive Commands",{"path":1904,"title":1905},"\u002Fmodern-python-cli-frameworks-architecture\u002Fdesigning-cli-interfaces-and-conventions\u002Ffollowing-posix-and-gnu-argument-conventions","Following POSIX and GNU Argument Conventions in Python",{"path":1907,"title":1908},"\u002Fmodern-python-cli-frameworks-architecture\u002Fdesigning-cli-interfaces-and-conventions\u002Fglobal-options-vs-per-command-options","Global Options vs Per-Command Options in Python CLIs",{"path":1910,"title":1911},"\u002Fmodern-python-cli-frameworks-architecture\u002Fdesigning-cli-interfaces-and-conventions","Designing CLI Interfaces and Conventions in Python",{"path":1913,"title":1914},"\u002Fmodern-python-cli-frameworks-architecture\u002Fdesigning-cli-interfaces-and-conventions\u002Fnaming-commands-and-flags-consistently","Naming Commands and Flags Consistently in Python CLIs",{"path":1916,"title":1917},"\u002Fmodern-python-cli-frameworks-architecture","Python CLI Frameworks and Architecture",{"path":1919,"title":1920},"\u002Fmodern-python-cli-frameworks-architecture\u002Fplugin-architectures-for-extensible-clis\u002Fdiscovering-plugins-with-entry-points","Discovering Plugins with Entry Points in Python CLIs",{"path":1922,"title":1923},"\u002Fmodern-python-cli-frameworks-architecture\u002Fplugin-architectures-for-extensible-clis\u002Fhook-based-plugins-with-pluggy","Hook-Based Plugins for Python CLIs with pluggy",{"path":1925,"title":1926},"\u002Fmodern-python-cli-frameworks-architecture\u002Fplugin-architectures-for-extensible-clis","Plugin Architectures for Extensible CLIs",{"path":1928,"title":1929},"\u002Fmodern-python-cli-frameworks-architecture\u002Fplugin-architectures-for-extensible-clis\u002Fversioning-a-plugin-api","Versioning a Plugin API for a Python CLI",{"path":1931,"title":1932},"\u002Fmodern-python-cli-frameworks-architecture\u002Fplugin-architectures-for-extensible-clis\u002Fwriting-a-plugin-for-an-existing-cli","Writing a Plugin for an Existing CLI",{"path":1934,"title":1935},"\u002Fmodern-python-cli-frameworks-architecture\u002Fstructuring-multi-command-python-clis\u002Fbest-practices-for-python-cli-entry-points","Best practices for Python CLI entry points",{"path":1937,"title":1938},"\u002Fmodern-python-cli-frameworks-architecture\u002Fstructuring-multi-command-python-clis\u002Fdependency-injection-patterns-for-cli-commands","Dependency Injection Patterns for CLI Commands",{"path":1940,"title":1941},"\u002Fmodern-python-cli-frameworks-architecture\u002Fstructuring-multi-command-python-clis\u002Fhow-to-structure-a-large-python-cli-project","Structuring a Large Python CLI Project",{"path":1943,"title":1944},"\u002Fmodern-python-cli-frameworks-architecture\u002Fstructuring-multi-command-python-clis","Structuring Multi-Command Python CLIs",{"path":1946,"title":1947},"\u002Fmodern-python-cli-frameworks-architecture\u002Fstructuring-multi-command-python-clis\u002Fsharing-common-options-across-commands","Sharing Common Options Across Python CLI Commands",{"path":1949,"title":1950},"\u002Fmodern-python-cli-frameworks-architecture\u002Fstructuring-multi-command-python-clis\u002Fsharing-state-with-click-context-objects","Sharing State with Click Context Objects",{"path":1952,"title":1953},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftesting-python-cli-applications\u002Fend-to-end-testing-an-installed-cli","End-to-End Testing an Installed Python CLI",{"path":1955,"title":1956},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftesting-python-cli-applications","Testing Python CLI Applications",{"path":1958,"title":1959},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftesting-python-cli-applications\u002Fmeasuring-cli-test-coverage","Measuring CLI Test Coverage",{"path":1961,"title":1962},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftesting-python-cli-applications\u002Fmocking-filesystem-and-network-in-cli-tests","Mocking the Filesystem and Network in CLI Tests",{"path":1964,"title":1965},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftesting-python-cli-applications\u002Fproperty-based-testing-cli-arguments-with-hypothesis","Property-Based Testing CLI Arguments with Hypothesis",{"path":1967,"title":1968},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftesting-python-cli-applications\u002Fsnapshot-testing-cli-output","Snapshot Testing CLI Output",{"path":1970,"title":1971},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftesting-python-cli-applications\u002Ftesting-click-commands-with-clirunner","Testing Click Commands with CliRunner",{"path":1973,"title":1974},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftesting-python-cli-applications\u002Ftesting-interactive-prompts-and-stdin","Testing Interactive Prompts and stdin",{"path":1976,"title":1977},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftyper-vs-click-when-to-use-each\u002Fbuilding-a-cli-with-subcommands-in-click","Building a CLI with subcommands in Click",{"path":1979,"title":1980},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftyper-vs-click-when-to-use-each\u002Fbuilding-dynamic-commands-in-click","Building Dynamic Commands in Click",{"path":1982,"title":1983},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftyper-vs-click-when-to-use-each\u002Fconverting-a-click-app-to-typer","Converting a Click App to Typer",{"path":1985,"title":1986},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftyper-vs-click-when-to-use-each","Typer vs Click: When to Use Each",{"path":1988,"title":1989},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftyper-vs-click-when-to-use-each\u002Ftyper-callback-functions-explained","Typer callback functions explained",{"path":1991,"title":1992},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftyper-vs-click-when-to-use-each\u002Fusing-annotated-options-in-typer","Using Annotated Options in Typer",{"path":1994,"title":1995},"\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002Fautomating-releases-from-git-tags","Automating Python CLI Releases from Git Tags",{"path":1997,"title":1998},"\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002Fcaching-uv-dependencies-in-ci","Caching uv Dependencies in CI for Python CLIs",{"path":2000,"title":2001},"\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis","CI\u002FCD Pipelines for Python CLIs",{"path":2003,"title":2004},"\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002Fpublishing-to-pypi-with-trusted-publishing","Publishing a CLI to PyPI with Trusted Publishing",{"path":2006,"title":2007},"\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002Fsmoke-testing-the-built-wheel-in-ci","Smoke-Testing the Built Wheel of a Python CLI in CI",{"path":2009,"title":2010},"\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002Ftesting-a-cli-across-python-versions-with-github-actions","Testing a CLI Across Python Versions in GitHub Actions",{"path":2012,"title":2013},"\u002Fproject-setup-dependency-management\u002Fcli-project-scaffolding-with-cookiecutter\u002Fbuilding-a-cookiecutter-template-for-typer-clis","Building a Cookiecutter Template for Typer CLIs",{"path":2015,"title":2016},"\u002Fproject-setup-dependency-management\u002Fcli-project-scaffolding-with-cookiecutter\u002Fcopier-vs-cookiecutter-for-cli-templates","Copier vs Cookiecutter for CLI Templates",{"path":2018,"title":2019},"\u002Fproject-setup-dependency-management\u002Fcli-project-scaffolding-with-cookiecutter","CLI Project Scaffolding with Cookiecutter",{"path":2021,"title":2022},"\u002Fproject-setup-dependency-management\u002Fcli-project-scaffolding-with-cookiecutter\u002Fpost-generation-hooks-in-cli-templates","Post-Generation Hooks in Python CLI Templates",{"path":2024,"title":2025},"\u002Fproject-setup-dependency-management\u002Fdistributing-clis-as-standalone-binaries\u002Fbuilding-cross-platform-release-binaries-in-ci","Building Cross-Platform Release Binaries in CI",{"path":2027,"title":2028},"\u002Fproject-setup-dependency-management\u002Fdistributing-clis-as-standalone-binaries\u002Fbundling-a-python-cli-with-pyinstaller","Bundling a Python CLI with PyInstaller",{"path":2030,"title":2031},"\u002Fproject-setup-dependency-management\u002Fdistributing-clis-as-standalone-binaries\u002Fhomebrew-and-scoop-packaging-for-python-clis","Homebrew and Scoop Packaging for Python CLIs",{"path":2033,"title":2034},"\u002Fproject-setup-dependency-management\u002Fdistributing-clis-as-standalone-binaries","Distributing CLIs as Standalone Binaries",{"path":2036,"title":2037},"\u002Fproject-setup-dependency-management\u002Fdistributing-clis-as-standalone-binaries\u002Fnuitka-vs-pyinstaller-for-python-clis","Nuitka vs PyInstaller for Python CLI Binaries",{"path":2039,"title":2040},"\u002Fproject-setup-dependency-management\u002Fdistributing-clis-as-standalone-binaries\u002Fshipping-a-cli-as-a-zipapp-with-shiv","Shipping a CLI as a Zipapp with shiv",{"path":2042,"title":2043},"\u002Fproject-setup-dependency-management","Project Setup & Dependency Management",{"path":2045,"title":2046},"\u002Fproject-setup-dependency-management\u002Flinting-and-type-checking-cli-code\u002Fconfiguring-ruff-for-a-cli-project","Configuring Ruff for a Python CLI Project",{"path":2048,"title":2049},"\u002Fproject-setup-dependency-management\u002Flinting-and-type-checking-cli-code\u002Fenforcing-import-boundaries-in-a-cli-codebase","Enforcing Import Boundaries in a Python CLI Codebase",{"path":2051,"title":2052},"\u002Fproject-setup-dependency-management\u002Flinting-and-type-checking-cli-code","Linting and Type-Checking Python CLI Code",{"path":2054,"title":2055},"\u002Fproject-setup-dependency-management\u002Flinting-and-type-checking-cli-code\u002Ftype-checking-click-and-typer-code-with-mypy","Type-Checking Click and Typer Code with mypy",{"path":2057,"title":2058},"\u002Fproject-setup-dependency-management\u002Fmanaging-cli-versioning-changelogs\u002Fautomating-changelogs-with-conventional-commits","Automating Changelogs with Conventional Commits",{"path":2060,"title":2061},"\u002Fproject-setup-dependency-management\u002Fmanaging-cli-versioning-changelogs\u002Fderiving-versions-from-git-tags-with-hatch-vcs","Deriving CLI Versions from Git Tags with hatch-vcs",{"path":2063,"title":2064},"\u002Fproject-setup-dependency-management\u002Fmanaging-cli-versioning-changelogs\u002Fexposing-version-info-and-build-metadata","Exposing Version Info and Build Metadata",{"path":2066,"title":2067},"\u002Fproject-setup-dependency-management\u002Fmanaging-cli-versioning-changelogs","Managing CLI Versioning & Changelogs",{"path":2069,"title":2070},"\u002Fproject-setup-dependency-management\u002Fmanaging-cli-versioning-changelogs\u002Fsemantic-versioning-policy-for-cli-tools","A Semantic Versioning Policy for CLI Tools",{"path":2072,"title":2073},"\u002Fproject-setup-dependency-management\u002Fpackaging-python-clis-for-distribution\u002Fbuilding-wheels-and-sdists-for-python-clis","Building Wheels and sdists for Python CLIs",{"path":2075,"title":2076},"\u002Fproject-setup-dependency-management\u002Fpackaging-python-clis-for-distribution\u002Fbundling-data-files-with-importlib-resources","Bundling Data Files with importlib.resources in CLIs",{"path":2078,"title":2079},"\u002Fproject-setup-dependency-management\u002Fpackaging-python-clis-for-distribution","Packaging Python CLIs for Distribution",{"path":2081,"title":2082},"\u002Fproject-setup-dependency-management\u002Fpackaging-python-clis-for-distribution\u002Finstalling-and-distributing-clis-with-pipx","Installing and Distributing CLIs with pipx",{"path":2084,"title":2085},"\u002Fproject-setup-dependency-management\u002Fpackaging-python-clis-for-distribution\u002Fpublishing-a-python-cli-to-pypi","Publishing a Python CLI to PyPI",{"path":2087,"title":2088},"\u002Fproject-setup-dependency-management\u002Fpackaging-python-clis-for-distribution\u002Fwriting-pyproject-toml-metadata-for-a-cli","Writing pyproject.toml Metadata for a Python CLI",{"path":2090,"title":2091},"\u002Fproject-setup-dependency-management\u002Fpoetry-workflows-for-cli-development","Poetry Workflows for CLI Development",{"path":2093,"title":2094},"\u002Fproject-setup-dependency-management\u002Fpoetry-workflows-for-cli-development\u002Fmigrating-a-cli-from-poetry-to-uv","Migrating a Python CLI from Poetry to uv",{"path":1583,"title":5},{"path":2097,"title":2098},"\u002Fproject-setup-dependency-management\u002Fpoetry-workflows-for-cli-development\u002Fpoetry-entry-points-and-scripts-for-clis","Poetry Entry Points and Scripts for CLIs",{"path":2100,"title":2101},"\u002Fproject-setup-dependency-management\u002Fpre-commit-hooks-for-cli-projects","Pre-commit Hooks for CLI Projects",{"path":2103,"title":2104},"\u002Fproject-setup-dependency-management\u002Fpre-commit-hooks-for-cli-projects\u002Fsetting-up-pre-commit-for-python-cli-repos","Setting up pre-commit for Python CLI repos",{"path":2106,"title":2107},"\u002Fproject-setup-dependency-management\u002Fpre-commit-hooks-for-cli-projects\u002Fshipping-your-cli-as-a-pre-commit-hook","Shipping Your Python CLI as a pre-commit Hook",{"path":2109,"title":2110},"\u002Fproject-setup-dependency-management\u002Fpre-commit-hooks-for-cli-projects\u002Fwriting-local-pre-commit-hooks-in-python","Writing Local pre-commit Hooks in Python",{"path":2112,"title":2113},"\u002Fproject-setup-dependency-management\u002Fuv-for-python-cli-dependency-management","uv for Python CLI Dependency Management",{"path":2115,"title":2116},"\u002Fproject-setup-dependency-management\u002Fuv-for-python-cli-dependency-management\u002Frunning-one-off-cli-scripts-with-uv-run","Running One-Off CLI Scripts with uv run and PEP 723",{"path":2118,"title":2119},"\u002Fproject-setup-dependency-management\u002Fuv-for-python-cli-dependency-management\u002Fuv-init-vs-poetry-init-for-cli-tools","uv init vs poetry init for CLI tools",{"path":2121,"title":2122},"\u002Fproject-setup-dependency-management\u002Fuv-for-python-cli-dependency-management\u002Fuv-tool-install-vs-pipx-for-clis","uv tool install vs pipx for CLIs",{"path":2124,"title":2125},"\u002Fproject-setup-dependency-management\u002Fuv-for-python-cli-dependency-management\u002Fuv-workspaces-for-multi-package-clis","uv Workspaces for Multi-Package Python CLIs",{"path":2127,"title":2128},"\u002Fproject-setup-dependency-management\u002Fvirtual-environments-isolation-best-practices","Python CLI Env Isolation Best Practices",{"path":2130,"title":2131},"\u002Fproject-setup-dependency-management\u002Fvirtual-environments-isolation-best-practices\u002Fmanaging-virtual-environments-for-cross-platform-clis","Managing Python CLI Virtual Environments",{"path":2133,"title":2134},"\u002Fproject-setup-dependency-management\u002Fvirtual-environments-isolation-best-practices\u002Fpinning-the-python-version-for-a-cli","Pinning the Python Version for a CLI",{"path":2136,"title":2137},"\u002Fproject-setup-dependency-management\u002Fvirtual-environments-isolation-best-practices\u002Fsupporting-multiple-python-versions-with-nox","Supporting Multiple Python Versions with nox",1789736907955]