Skip to main content

typer-helptree

The helptree command can be added to your Typer CLI.

User story

  • Dev: "I want a screenshot of my entire 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

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.12.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.12-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for typer_helptree-0.2.12.tar.gz
Algorithm Hash digest
SHA256 2677bd412f6c1a0481ccc1912a2e7968c57a1f8221801804bb4ac4de24b5c519
MD5 4f59324e192c1a4c564ebaba73a6196c
BLAKE2b-256 a0708a9e2da648f6a63d5ea140520557d9895e07b3246922322ce16e877e678c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for typer_helptree-0.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 b328673474234c4c60994a34e52091e1eb530efb533294cd916f0f4d88e5cd59
MD5 22f2c197f9435952e362c549a3837e2a
BLAKE2b-256 29019c1452db9fa5504945cbce123dbd5f9e01ea10f6c7379210794df15eed3a

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

This release

0.2.12 This release

2 files

0.2.11

2 files

0.2.10.5

2 files

0.2.10.4

2 files

0.2.10.2

2 files

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.2

2 files

0.2.1

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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