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.2.tar.gz (12.0 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.2-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typer_helptree-0.2.10.2.tar.gz
  • Upload date:
  • Size: 12.0 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.2.tar.gz
Algorithm Hash digest
SHA256 08e4b7d36dd07845abe587bb16daeffe24b769a81a838c0fc30e01d10264a987
MD5 a10361589f14305029808ff148d2af54
BLAKE2b-256 4b358d938f9a6becfc9506ebffe3b121c2a0e4cc40c8191ec4a3dce7d0fd05cb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for typer_helptree-0.2.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 731d643f5ec434f5c0059e538f1daba9e796837faae211e9b4fb63380aeb2da7
MD5 8e9ab60654e08462cb3d44bce35a54b2
BLAKE2b-256 fe04ff55f9cdcc38347161f5da3ad0f297767e877e9821e145008a8e071f64b3

See more details on using hashes here.

Provenance

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