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/yourtyperapp/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 "yourtyperapp"
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:

yourtyperapp helptree

To export an SVG and JSON to the ~/.typer_helptree dir:

yourtyperapp helptree --export-svg --export-json

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.10.4.tar.gz (12.5 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.10.4-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for typer_helptree-0.2.10.4.tar.gz
Algorithm Hash digest
SHA256 17077b484690bcc17a0846511d23d9044a831f98b9329fe33f6da10cd3ad26b7
MD5 861577ec79230f9e4c89148298107f4a
BLAKE2b-256 5bd92d5091c2aee86183f10def689519ee8a7771524888bdf9c4b6dfd1b89737

See more details on using hashes here.

Provenance

The following attestation bundles were made for typer_helptree-0.2.10.4.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.10.4-py3-none-any.whl.

File metadata

File hashes

Hashes for typer_helptree-0.2.10.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2c6f648341deed55342f2c90d4387eacee1a81dca8fd1806a2857125238ddb31
MD5 9f358d6f641a3a3fce266e66766f9d71
BLAKE2b-256 e15d6abceddfd2e72e97b71ba26c00de1d2ba04f07b2510bf983dbe05bb6ccd1

See more details on using hashes here.

Provenance

The following attestation bundles were made for typer_helptree-0.2.10.4-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