Skip to main content

treesh

Turn a text description of a folder structure into an actual folder structure.

$ treesh examples/rust-crate.txt --root ./my-crate

Install

For now, treesh lives on GitHub.

uv tool install git+https://github.com/not-em/treesh

Usage

From a file:

treesh examples/python-package.txt --root ./my-project

From a string:

treesh "src/
    main.py
    utils.py"

Dry run (preview without creating):

treesh examples/rust-crate.txt --dry-run

Tree format

treesh accepts trees in most sensible formats:

  • Four-space indentation, or tree-drawing characters (├──, └──, │), or both
  • Trailing slashes (src/) or children mark a folder
  • Comments after # or ← are stripped
  • Blank lines and whole line comments are ignored

Examples

See the examples/ folder for ready-made trees.

Metadata

Release files for treesh 0.1.0

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

Source distribution (sdist)

Source distribution for treesh 0.1.0
File Size Uploaded
treesh-0.1.0.tar.gz 17.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for treesh 0.1.0
File Interpreter ABI Platform
treesh-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.9 kB

Release files / treesh-0.1.0.tar.gz

Download URL treesh-0.1.0.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f209e5b7e3b57d6dfc7043baa1a87fa15838329c98d4660ada8d349c7e24783f
BLAKE2b-256 checksum
How to use checksums
79a0ec0cb543a7c5ad29230075bdc6ca9de3083d83c0fda9df06997bf68bcd16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / treesh-0.1.0-py3-none-any.whl

Download URL treesh-0.1.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd53c7d9b2ebdfe0fee12d36909b50ae764f2263b4e1346101ed524cff2346bd
BLAKE2b-256 checksum
How to use checksums
37649601c60383956bec33cdf708e1f880f5489a1b2613443d22c76359e1b3e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 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