🐛 Fix broken installation when upgrading from `typer <0.12.0` to `typer >=0.12.0`, make `typer` independent of `typer-slim`, include `typer` command in `typer` package (#791)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Sebastián Ramírez · committed by GitHub · parent 8bac821 · Browse files · 14 files·+174 added−286 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
14 files+174 added−286 removed
- other:+174 added−286 removed
Provenance
- Commit
05ffb24- Tree
e15d658- Author
Sebastián Ramírez <tiangolo@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
8bac821
14 files changed+174 added−286 removed
modified:.github/workflows/publish.yml+2 added-5 removed
12 unmodified lines1314151617181718192010 unmodified lines31323334373536373839414212 unmodified lines package: - typer-slim - typer - typer-cli env: dir: ${{ matrix.package == 'typer-slim' && './' || matrix.package == 'typer' && 'typer_package' || matrix.package == 'typer-cli' && 'typer_cli_package' }} permissions: id-token: write steps: - name: Dump GitHub context10 unmodified lines # cache-dependency-path: pyproject.toml - name: Install build dependencies run: pip install build - name: Build distribution working-directory: ${{ env.dir }} env: TIANGOLO_BUILD_PACKAGE: ${{ matrix.package }} run: python -m build - name: Publish uses: pypa/gh-action-pypi-publish@v1.8.11 with: packages-dir: ${{ env.dir }}/dist/modified:.github/workflows/test-redistribute.yml+4 added-7 removed
16 unmodified lines171819202122212223248 unmodified lines33343536393738394042414243444745464748495250515253545755565716 unmodified lines package: - typer-slim - typer - typer-cli env: dir: ${{ matrix.package == 'typer-slim' && './' || matrix.package == 'typer' && 'typer_package' || matrix.package == 'typer-cli' && 'typer_cli_package' }} steps: - name: Dump GitHub context env: GITHUB_CONTEXT: ${{ toJson(github) }}8 unmodified lines # cache-dependency-path: pyproject.toml - name: Install build dependencies run: pip install build - name: Build source distribution working-directory: ${{ env.dir }} env: TIANGOLO_BUILD_PACKAGE: ${{ matrix.package }} run: python -m build --sdist - name: Decompress source distribution working-directory: ${{ env.dir }} run: | cd dist tar xvf typer*.tar.gz - name: Install test dependencies if: ${{ matrix.package == 'typer-slim' }} if: ${{ matrix.package != 'typer-cli' }} run: | cd dist/typer*/ pip install -r requirements-tests.txt - name: Run source distribution tests if: ${{ matrix.package == 'typer-slim' }} if: ${{ matrix.package != 'typer-cli' }} run: | cd dist/typer*/ bash scripts/test.sh - name: Build wheel distribution working-directory: ${{ env.dir }} run: | cd dist pip wheel --no-deps typer*.tar.gzmodified:docs/tutorial/index.md+3 added-3 removed
66 unmodified lines676869707171727374757676777879808182838485858687888966 unmodified lines
```console$ pip install typer---> 100%Successfully installed typer click shellingham rich typer-cliSuccessfully installed typer click shellingham rich```
</div>
By default, `typer` comes with `rich`, `shellingham`, and `typer-cli`.By default, `typer` comes with `rich` and `shellingham`.
!!! note If you are an advanced user and want to opt out of these default extra dependencies, you can instead install `typer-slim`.
```bash pip install typer ```
...is the equivalent of: ...includes the same optional dependencies as:
```bash pip install "typer-slim[standard]" ```modified:docs/index.md+5 added-8 removed
35 unmodified lines36 * **Easy to use**: It's easy to use for the final users. Automatic help, and automatic completion for all shells.37 * **Short**: Minimize code duplication. Multiple features from each parameter declaration. Fewer bugs.38 * **Start simple**: The simplest example adds only 2 lines of code to your app: **1 import, 1 function call**.39 * **Grow large**: Grow in complexity as much as you want, create arbitrarily complex trees of commands and groups of subcommands, with options and arguments.40-* **Run scripts**: Typer includes a `typer` command that you can use to run scripts, automatically converting them to CLIs, even if they don't use Typer internally.40+* **Run scripts**: Typer includes a `typer` command/program that you can use to run scripts, automatically converting them to CLIs, even if they don't use Typer internally.41 42 ## FastAPI of CLIs43 44 **Typer** is <a href="https://fastapi.tiangolo.com" class="external-link" target="_blank">FastAPI</a>'s little sibling, it's the FastAPI of CLIs.309 unmodified lines354 * <a href="https://rich.readthedocs.io/en/stable/index.html" class="external-link" target="_blank"><code>rich</code></a>: to show nicely formatted errors automatically.355 * <a href="https://github.com/sarugaku/shellingham" class="external-link" target="_blank"><code>shellingham</code></a>: to automatically detect the current shell when installing completion.356 * With `shellingham` you can just use `--install-completion`.357 * Without `shellingham`, you have to pass the name of the shell to install completion for, e.g. `--install-completion bash`.358-* `typer-cli`: adds the `typer` command to your shell:359- * Quickly run scripts (that don't have to use Typer) with shell completion.360- * Generate docs for your Typer applications.358 359 ### `typer-slim`360 364-If you don't want the extra dependencies, install `typer-slim` instead.361+If you don't want the extra standard optional dependencies, install `typer-slim` instead.362 363 When you install with:364 365 ```bash366 pip install typer367 ```368 372-...it's the equivalent of:369+...it includes the same code and dependencies as:370 371 ```bash372 pip install "typer-slim[standard]"373 ```374 378-The `standard` extra dependencies are `rich`, `shellingham`, `typer-cli`.375+The `standard` extra dependencies are `rich` and `shellingham`.376 380-**Note**: even if you don't install `typer-cli` you can still use it's functionality by calling `typer` as a module, e.g. `python -m typer`.377+**Note**: The `typer` command is only included in the `typer` package.378 379 ## License380 381 This project is licensed under the terms of the MIT license.modified:typer/__init__.py+1 added-1 removed
1 """Typer, build great CLIs. Easy to code. Based on Python type hints."""2 3-__version__ = "0.12.0"3+__version__ = "0.12.1.dev2"4 5 from shutil import get_terminal_size as get_terminal_size6 7 from click.exceptions import Abort as Abort32 unmodified linesdeleted:typer_cli_package/pdm_build.py-40 removed
1-from pathlib import Path2-from typing import List3-4-from pdm.backend.hooks import Context5-6-packages_to_sync = ["typer-slim"]7-8-license_name = "LICENSE"9-license_path = Path("..") / license_name10-11-12-def pdm_build_hook_enabled(context: Context):13- return context.target == "sdist"14-15-16-def pdm_build_initialize(context: Context):17- metadata = context.config.metadata18- # Get main version19- version = metadata["version"]20- # Update version in dependencies to sync them21- dependencies: List[str] = metadata["dependencies"]22- new_dependencies = []23- for dep in dependencies:24- if any(dep.startswith(name) for name in packages_to_sync):25- new_dep = f"{dep}=={version}"26- new_dependencies.append(new_dep)27- else:28- new_dependencies.append(dep)29- if new_dependencies != dependencies:30- metadata["dependencies"] = new_dependencies31- # LICENSE32- license_content = license_path.read_text()33- context.ensure_build_dir()34- # # Workaround, copy LICENSE to package_dir during build35- Path(license_name).write_text(license_content)36-37-38-def pdm_build_finalize(context: Context, artifact: Path):39- # Workaround, remove LICENSE from package_dir after build40- Path(license_name).unlink()deleted:typer_cli_package/pyproject.toml-55 removed
1-[build-system]2-requires = ["pdm-backend"]3-build-backend = "pdm.backend"4-5-[project]6-name = "typer-cli"7-dynamic = ["version"]8-description = "Typer, build great CLIs. Easy to code. Based on Python type hints."9-authors = [10- {name = "Sebastián Ramírez", email = "tiangolo@gmail.com"},11-]12-readme = "README.md"13-requires-python = ">=3.7"14-classifiers = [15- "Intended Audience :: Information Technology",16- "Intended Audience :: System Administrators",17- "Operating System :: OS Independent",18- "Programming Language :: Python :: 3",19- "Programming Language :: Python",20- "Topic :: Software Development :: Libraries :: Application Frameworks",21- "Topic :: Software Development :: Libraries :: Python Modules",22- "Topic :: Software Development :: Libraries",23- "Topic :: Software Development",24- "Typing :: Typed",25- "Development Status :: 4 - Beta",26- "Intended Audience :: Developers",27- "Programming Language :: Python :: 3 :: Only",28- "Programming Language :: Python :: 3.7",29- "Programming Language :: Python :: 3.8",30- "Programming Language :: Python :: 3.9",31- "Programming Language :: Python :: 3.10",32- "Programming Language :: Python :: 3.11",33- "License :: OSI Approved :: MIT License",34-]35-dependencies = [36- "typer-slim[standard]",37-]38-39-[project.urls]40-Documentation = "https://typer.tiangolo.com/"41-homepage = "https://github.com/tiangolo/typer"42-43-[project.optional-dependencies]44-# For backwards compatibility45-all = []46-47-[project.scripts]48-typer = "typer.cli:main"49-50-[tool.pdm]51-version = { source = "file", path = "../typer/__init__.py" }52-distribution = true53-54-[tool.pdm.build]55-excludes = ["*"]deleted:typer_cli_package/README.md-49 removed
1-<p align="center">2- <a href="https://typer.tiangolo.com"><img src="https://typer.tiangolo.com/img/logo-margin/logo-margin-vector.svg" alt="Typer"></a>3-</p>4-<p align="center">5- <em>Typer, build great CLIs. Easy to code. Based on Python type hints.</em>6-</p>7-<p align="center">8-<a href="https://github.com/tiangolo/typer/actions?query=workflow%3ATest" target="_blank">9- <img src="https://github.com/tiangolo/typer/workflows/Test/badge.svg" alt="Test">10-</a>11-<a href="https://github.com/tiangolo/typer/actions?query=workflow%3APublish" target="_blank">12- <img src="https://github.com/tiangolo/typer/workflows/Publish/badge.svg" alt="Publish">13-</a>14-<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/tiangolo/typer" target="_blank">15- <img src="https://coverage-badge.samuelcolvin.workers.dev/tiangolo/typer.svg" alt="Coverage">16-<a href="https://pypi.org/project/typer" target="_blank">17- <img src="https://img.shields.io/pypi/v/typer?color=%2334D058&label=pypi%20package" alt="Package version">18-</a>19-</p>20-21----22-23-**Documentation**: <a href="https://typer.tiangolo.com" target="_blank">https://typer.tiangolo.com/tutorial/typer-command/</a>24-25-**Source Code**: <a href="https://github.com/tiangolo/typer" target="_blank">https://github.com/tiangolo/typer</a>26-27----28-29-Typer is a library for building <abbr title="command line interface, programs executed from a terminal">CLI</abbr> applications that users will **love using** and developers will **love creating**. Based on Python type hints.30-31-## Typer CLI32-33-This package, `typer-cli`, only provides a command `typer` in the shell with the same functionality of `python -m typer`.34-35-The only reason why this is a separate package is to allow developers to opt out of the `typer` command by installing `typer-slim`, that doesn't include `typer-cli`.36-37-You probably **should not** install this package.38-39-Install instead:40-41-```bash42-pip install typer43-```44-45-That includes this package, `typer-cli`, with the `typer` command.46-47-## License48-49-This project is licensed under the terms of the MIT license.deleted:typer_package/pdm_build.py-49 removed
1-from pathlib import Path2-from typing import List3-4-from pdm.backend.hooks import Context5-6-packages_to_sync = ["typer-slim", "typer-cli"]7-8-readme_name = "README.md"9-license_name = "LICENSE"10-readme_path = Path("..") / readme_name11-license_path = Path("..") / license_name12-13-14-def pdm_build_hook_enabled(context: Context):15- return context.target == "sdist"16-17-18-def pdm_build_initialize(context: Context):19- metadata = context.config.metadata20- # Get main version21- version = metadata["version"]22- # Update version in dependencies to sync them23- dependencies: List[str] = metadata["dependencies"]24- new_dependencies = []25- for dep in dependencies:26- if any(dep.startswith(name) for name in packages_to_sync):27- new_dep = f"{dep}=={version}"28- new_dependencies.append(new_dep)29- else:30- new_dependencies.append(dep)31- if new_dependencies != dependencies:32- metadata["dependencies"] = new_dependencies33- # README.md and LICENSE34- readme_content = readme_path.read_text()35- license_content = license_path.read_text()36- metadata["readme"] = readme_name37- context.ensure_build_dir()38- # Copy README.md and LICENSE to build directory39- # (context.build_dir / readme_name).write_text(readme_content)40- # (context.build_dir / license_name).write_text(license_content)41- # # Workaround, copy README.md and LICENSE to package_dir during build42- Path(readme_name).write_text(readme_content)43- Path(license_name).write_text(license_content)44-45-46-def pdm_build_finalize(context: Context, artifact: Path):47- # Workaround, remove README.md and LICENSE from package_dir after build48- Path(readme_name).unlink()49- Path(license_name).unlink()deleted:typer_package/pyproject.toml-52 removed
1-[build-system]2-requires = ["pdm-backend"]3-build-backend = "pdm.backend"4-5-[project]6-name = "typer"7-dynamic = ["version"]8-description = "Typer, build great CLIs. Easy to code. Based on Python type hints."9-authors = [10- {name = "Sebastián Ramírez", email = "tiangolo@gmail.com"},11-]12-requires-python = ">=3.7"13-classifiers = [14- "Intended Audience :: Information Technology",15- "Intended Audience :: System Administrators",16- "Operating System :: OS Independent",17- "Programming Language :: Python :: 3",18- "Programming Language :: Python",19- "Topic :: Software Development :: Libraries :: Application Frameworks",20- "Topic :: Software Development :: Libraries :: Python Modules",21- "Topic :: Software Development :: Libraries",22- "Topic :: Software Development",23- "Typing :: Typed",24- "Development Status :: 4 - Beta",25- "Intended Audience :: Developers",26- "Programming Language :: Python :: 3 :: Only",27- "Programming Language :: Python :: 3.7",28- "Programming Language :: Python :: 3.8",29- "Programming Language :: Python :: 3.9",30- "Programming Language :: Python :: 3.10",31- "Programming Language :: Python :: 3.11",32- "License :: OSI Approved :: MIT License",33-]34-dependencies = [35- "typer-slim[standard]",36- "typer-cli",37-]38-39-[project.urls]40-Documentation = "https://typer.tiangolo.com/"41-homepage = "https://github.com/tiangolo/typer"42-43-[project.optional-dependencies]44-# For backwards compatibility45-all = []46-47-[tool.pdm]48-version = { source = "file", path = "../typer/__init__.py" }49-distribution = true50-51-[tool.pdm.build]52-excludes = ["*"]added:typer-cli/README.md+53 added
1+<p align="center">2+ <a href="https://typer.tiangolo.com"><img src="https://typer.tiangolo.com/img/logo-margin/logo-margin-vector.svg" alt="Typer"></a>3+</p>4+<p align="center">5+ <em>Typer, build great CLIs. Easy to code. Based on Python type hints.</em>6+</p>7+<p align="center">8+<a href="https://github.com/tiangolo/typer/actions?query=workflow%3ATest" target="_blank">9+ <img src="https://github.com/tiangolo/typer/workflows/Test/badge.svg" alt="Test">10+</a>11+<a href="https://github.com/tiangolo/typer/actions?query=workflow%3APublish" target="_blank">12+ <img src="https://github.com/tiangolo/typer/workflows/Publish/badge.svg" alt="Publish">13+</a>14+<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/tiangolo/typer" target="_blank">15+ <img src="https://coverage-badge.samuelcolvin.workers.dev/tiangolo/typer.svg" alt="Coverage">16+<a href="https://pypi.org/project/typer" target="_blank">17+ <img src="https://img.shields.io/pypi/v/typer?color=%2334D058&label=pypi%20package" alt="Package version">18+</a>19+</p>20+21+---22+23+**Documentation**: <a href="https://typer.tiangolo.com" target="_blank">https://typer.tiangolo.com/tutorial/typer-command/</a>24+25+**Source Code**: <a href="https://github.com/tiangolo/typer" target="_blank">https://github.com/tiangolo/typer</a>26+27+---28+29+Typer is a library for building <abbr title="command line interface, programs executed from a terminal">CLI</abbr> applications that users will **love using** and developers will **love creating**. Based on Python type hints.30+31+## Typer CLI32+33+⚠️ Do not install this package. ⚠️34+35+This package, `typer-cli`, does nothing other than depend on `typer`.36+37+All the functionality has been integrated into `typer`.38+39+The only reason this package exists is as a migration path for old projects that used to depend on `typer-cli`, so that they can get the latest version of `typer`.40+41+You probably **should not** install this package.42+43+Install instead:44+45+```bash46+pip install typer47+```48+49+That includes the `typer` command.50+51+## License52+53+This project is licensed under the terms of the MIT license.added:pdm_build.py+55 added
1+import os2+from typing import Any, Dict, List3+4+from pdm.backend.hooks import Context5+6+TIANGOLO_BUILD_PACKAGE = os.getenv("TIANGOLO_BUILD_PACKAGE", "typer")7+8+9+def pdm_build_initialize(context: Context):10+ metadata = context.config.metadata11+ # Get main version12+ version = metadata["version"]13+ # Get package names to keep in sync with the same main version14+ sync_dependencies: List[str] = context.config.data["tool"]["tiangolo"][15+ "_internal-slim-build"16+ ]["sync-dependencies"]17+ # Get custom config for the current package, from the env var18+ config: Dict[str, Any] = context.config.data["tool"]["tiangolo"][19+ "_internal-slim-build"20+ ]["packages"][TIANGOLO_BUILD_PACKAGE]21+ project_config: Dict[str, Any] = config["project"]22+ # Get main optional dependencies, extras23+ optional_dependencies: Dict[str, List[str]] = metadata.get(24+ "optional-dependencies", {}25+ )26+ # Get custom optional dependencies name to always include in this (non-slim) package27+ include_optional_dependencies: List[str] = config.get(28+ "include-optional-dependencies", []29+ )30+ # Override main [project] configs with custom configs for this package31+ for key, value in project_config.items():32+ metadata[key] = value33+ # Get custom build config for the current package34+ build_config: Dict[str, Any] = (35+ config.get("tool", {}).get("pdm", {}).get("build", {})36+ )37+ # Override PDM build config with custom build config for this package38+ for key, value in build_config.items():39+ context.config.build_config[key] = value40+ # Get main dependencies41+ dependencies: List[str] = metadata.get("dependencies", [])42+ # Add optional dependencies to the default dependencies for this (non-slim) package43+ for include_optional in include_optional_dependencies:44+ optional_dependencies_group = optional_dependencies.get(include_optional, [])45+ dependencies.extend(optional_dependencies_group)46+ # Sync versions in dependencies47+ new_dependencies = []48+ for dep in dependencies:49+ if dep in sync_dependencies:50+ new_dep = f"{dep}=={version}"51+ new_dependencies.append(new_dep)52+ else:53+ new_dependencies.append(dep)54+ if new_dependencies != dependencies:55+ metadata["dependencies"] = new_dependenciesmodified:pyproject.toml+46 added-9 removed
1 unmodified line2 requires = ["pdm-backend"]3 build-backend = "pdm.backend"4 5 [project]6-# pip install typer-slim: is only the Typer library, without extras7-# pip install typer: is typer-slim[standard], with extras and typer-cli8-name = "typer-slim"6+name = "typer"7 dynamic = ["version"]8 description = "Typer, build great CLIs. Easy to code. Based on Python type hints."9 authors = [10 {name = "Sebastián Ramírez", email = "tiangolo@gmail.com"},11 ]14-readme = "README.md"12 requires-python = ">=3.7"13 classifiers = [14 "Intended Audience :: Information Technology",15 "Intended Audience :: System Administrators",18 unmodified lines34 dependencies = [35 "click >= 8.0.0",36 "typing-extensions >= 3.7.4.3",37 ]41-38+readme = "README.md"39 [project.urls]40 Documentation = "https://typer.tiangolo.com/"41 homepage = "https://github.com/tiangolo/typer"42 43 [project.optional-dependencies]47-all = [48- "shellingham >=1.3.0",49- "rich >=10.11.0",50-]44 standard = [45 "shellingham >=1.3.0",46 "rich >=10.11.0",47 ]9 unmodified lines57 "requirements*.txt",58 "scripts/",59 ]60 61+[tool.tiangolo._internal-slim-build]62+sync-dependencies = [63+ "typer-slim[standard]",64+ "typer-cli",65+ "typer"66+]67+68+[tool.tiangolo._internal-slim-build.packages.typer-slim.project]69+name = "typer-slim"70+71+[tool.tiangolo._internal-slim-build.packages.typer]72+include-optional-dependencies = ["standard"]73+74+[tool.tiangolo._internal-slim-build.packages.typer.project]75+optional-dependencies = {}76+77+[tool.tiangolo._internal-slim-build.packages.typer.project.scripts]78+typer = "typer.cli:main"79+80+[tool.tiangolo._internal-slim-build.packages.typer-cli.project]81+name = "typer-cli"82+readme = "typer-cli/README.md"83+dependencies = [84+ "typer",85+]86+optional-dependencies = {}87+88+[tool.tiangolo._internal-slim-build.packages.typer-cli.tool.pdm.build]89+# excludes needs to explicitly exclude the top level python packages,90+# otherwise PDM includes them by default91+# A "*" glob pattern can't be used here because in PDM internals, the patterns are put92+# in a set (unordered, order varies) and each excluded file is assigned one of the93+# glob patterns that matches, as the set is unordered, the matched pattern could be "*"94+# independent of the order here. And then the internal code would give it a lower score95+# than the one for a default included file.96+# By not using "*" and explicitly excluding the top level packages, they get a higher97+# score than the default inclusion98+excludes = ["typer", "tests", "pdm_build.py"]99+# source-includes needs to explicitly define some value because PDM will check the100+# truthy value of the list, and if empty, will include some defaults, including "tests",101+# an empty string doesn't match anything, but makes the list truthy, so that PDM102+# doesn't override it during the build.103+source-includes = [""]104+105 [tool.isort]106 profile = "black"107 known_third_party = ["typer", "click"]108 skip_glob = [103 unmodified linesmodified:README.md+5 added-8 removed
35 unmodified lines36 * **Easy to use**: It's easy to use for the final users. Automatic help, and automatic completion for all shells.37 * **Short**: Minimize code duplication. Multiple features from each parameter declaration. Fewer bugs.38 * **Start simple**: The simplest example adds only 2 lines of code to your app: **1 import, 1 function call**.39 * **Grow large**: Grow in complexity as much as you want, create arbitrarily complex trees of commands and groups of subcommands, with options and arguments.40-* **Run scripts**: Typer includes a `typer` command that you can use to run scripts, automatically converting them to CLIs, even if they don't use Typer internally.40+* **Run scripts**: Typer includes a `typer` command/program that you can use to run scripts, automatically converting them to CLIs, even if they don't use Typer internally.41 42 ## FastAPI of CLIs43 44 **Typer** is <a href="https://fastapi.tiangolo.com" class="external-link" target="_blank">FastAPI</a>'s little sibling, it's the FastAPI of CLIs.309 unmodified lines354 * <a href="https://rich.readthedocs.io/en/stable/index.html" class="external-link" target="_blank"><code>rich</code></a>: to show nicely formatted errors automatically.355 * <a href="https://github.com/sarugaku/shellingham" class="external-link" target="_blank"><code>shellingham</code></a>: to automatically detect the current shell when installing completion.356 * With `shellingham` you can just use `--install-completion`.357 * Without `shellingham`, you have to pass the name of the shell to install completion for, e.g. `--install-completion bash`.358-* `typer-cli`: adds the `typer` command to your shell:359- * Quickly run scripts (that don't have to use Typer) with shell completion.360- * Generate docs for your Typer applications.358 359 ### `typer-slim`360 364-If you don't want the extra dependencies, install `typer-slim` instead.361+If you don't want the extra standard optional dependencies, install `typer-slim` instead.362 363 When you install with:364 365 ```bash366 pip install typer367 ```368 372-...it's the equivalent of:369+...it includes the same code and dependencies as:370 371 ```bash372 pip install "typer-slim[standard]"373 ```374 378-The `standard` extra dependencies are `rich`, `shellingham`, `typer-cli`.375+The `standard` extra dependencies are `rich` and `shellingham`.376 380-**Note**: even if you don't install `typer-cli` you can still use it's functionality by calling `typer` as a module, e.g. `python -m typer`.377+**Note**: The `typer` command is only included in the `typer` package.378 379 ## License380 381 This project is licensed under the terms of the MIT license.