Skip to main content

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

Project description

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.

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

treesh-0.1.0.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

treesh-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file treesh-0.1.0.tar.gz.

File metadata

  • Download URL: treesh-0.1.0.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for treesh-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f209e5b7e3b57d6dfc7043baa1a87fa15838329c98d4660ada8d349c7e24783f
MD5 8524120bc2121dac68d754ac96ba0596
BLAKE2b-256 79a0ec0cb543a7c5ad29230075bdc6ca9de3083d83c0fda9df06997bf68bcd16

See more details on using hashes here.

File details

Details for the file treesh-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: treesh-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for treesh-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd53c7d9b2ebdfe0fee12d36909b50ae764f2263b4e1346101ed524cff2346bd
MD5 e9437b5bcae654f1b6ff7d39240eefd7
BLAKE2b-256 37649601c60383956bec33cdf708e1f880f5489a1b2613443d22c76359e1b3e8

See more details on using hashes here.

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