Skip to main content

Display your entire CLI structure, beautifully. Screenshot ready.

Project description

typer-helptree

The helptree command can be added to your Typer CLI.

User story

  • Dev: "I want to a screenshot of my CLI structure, to add to my GitHub release and to my README."
typer-helptree helptree

Screenshot of the typer-helptree helptree

How To

Use helptree in your Typer CLI:

# src/your_fancy_app/cli.py

# --- External Imports ---
import typer
from rich.console import Console
# Import the add_typer_helptree command.
from typer_helptree.helptree import add_typer_helptree

# --- Internal Imports ---
from ._version import __version__ # or however you do this.

# --- Typical Typer App Instantiation ---
APP_NAME "your-fancy-app"
console = Console()
app = typer.Typer(
    name=APP_NAME
)

# --- The Magic ---

add_typer_helptree(app=app, console=console, version = __version__, hidden=True)

And then, from the command line:

your-fancy-app helptree

Projects that use typer-helptree

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

typer_helptree-0.2.5.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typer_helptree-0.2.5-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file typer_helptree-0.2.5.tar.gz.

File metadata

  • Download URL: typer_helptree-0.2.5.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for typer_helptree-0.2.5.tar.gz
Algorithm Hash digest
SHA256 349be7ed9edf1933239ef2e1013c09f6a5e48d569e15791e2c0850b8403a5312
MD5 c63e7074ce4d4720b8220acc94292695
BLAKE2b-256 7c3bd57234b79b6375162a21db3335049e97d2211fd86b145c34b68653ff46d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for typer_helptree-0.2.5.tar.gz:

Publisher: publish.yml on City-of-Memphis-Wastewater/typer-helptree

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file typer_helptree-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: typer_helptree-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for typer_helptree-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d954069ba84318a308c7e67b8bc4ca38b6d4fdcd43094e8b429b5e9a7fdbd088
MD5 00020491466410911f92fb839dc05fdd
BLAKE2b-256 9148265c25518ecaa150a137124ef2092a26fa46688787bd2786de1d08233785

See more details on using hashes here.

Provenance

The following attestation bundles were made for typer_helptree-0.2.5-py3-none-any.whl:

Publisher: publish.yml on City-of-Memphis-Wastewater/typer-helptree

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page