Skip to main content

tree-maker

A tool to make a screenshot of a tree of nodes defined in Python code.

Install via pip/uv

term-tree-maker is published on PyPI. Install it with whichever tool you prefer:

# using uv
uv pip install term-tree-maker

# or plain pip
python -m pip install --upgrade pip
python -m pip install term-tree-maker

CLI overview

After installing, three console commands are available everywhere on your PATH:

Command Description
tree Runs the packaged tree.py script that generates the text-based tree visualization. All original CLI flags still work.
make-tree-screenshot Launches the Konsole/gnome-screenshot workflow to capture the tree output into PNGs (wraps make-tree-screenshot.sh).
make-png-from-ssh Convenience wrapper for invoking the screenshot workflow from an SSH session (wraps make-png-from-ssh.sh).

Each command accepts the same arguments as its original script. Example:

tree --chunk-lines-amount 70 --chunk-count
make-tree-screenshot output/my-tree
make-png-from-ssh

Note: The first-time desktop environment preparation (install.sh) is still required on the target GNOME machine. See CONTRIBUTING.md for the full setup checklist.

Installation

  • From the Gnome console (physically at the machine or over RDP):
cd <this directory>
[ -f $PWD/make-tree-screenshot.sh ] && echo "✅ good you're in the right dir: $PWD" || echo "ERROR: you're in the wrong dir"

The above just verifies that we are in the right directory because install.sh won't work otherwise. It writes config files the current value of $PWD.

./install.sh && echo "✅ Installed tree-maker" >&1 || ( echo "❌ Failed to install tree-maker" >&2 && exit 1 )
  • Append this to your ~/.bashrc to make it easier to run:
#
# allow gnome wayland desktop apps to be started from ssh sessiosn
#
export QT_QPA_PLATFORM=wayland
source ~/.bashrc

Usage

  • From an SSH session into the server where the tree-maker is installed:
[user@server] cd <this directory>
[user@server] ./make-png-from-ssh.sh
[user@server] it2dl tree.png   # download the tree image to your local machine
[user@server] imgcat tree.png  # display the tree image in your local terminal
  • Or, even easier, just run this from an ssh session:
[user@server] ./make-png-from-ssh.sh

Metadata

Release files for term-tree-maker 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for term-tree-maker 0.0.1
File Size Uploaded
term_tree_maker-0.0.1.tar.gz 32.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for term-tree-maker 0.0.1
File Interpreter ABI Platform
term_tree_maker-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 52.0 kB

Release files / term_tree_maker-0.0.1.tar.gz

Download URL term_tree_maker-0.0.1.tar.gz
Size 32.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2dd56af494c55f0aca1f8e29ff5718ae187e501b3ff9c1332803125df697ad96
BLAKE2b-256 checksum
How to use checksums
7bea3fd08bcac673fd7e02cf9f033ad20976fdd2800f17fe6431991f0759dd6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2025.

Transparency log

Release files / term_tree_maker-0.0.1-py3-none-any.whl

Download URL term_tree_maker-0.0.1-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42bdd101176b9dfaeb92bd9e4605833c89a4dce07a81c99bd052f7e7743cf38b
BLAKE2b-256 checksum
How to use checksums
f7ff669f184e4bea397529f16634aa78499db80d3584cc6c2994e59d2b06e0b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page