Convert tree structure into actual folders/files via GUI or CLI
Project description
mktr
mktr is a Python utility to create or destroy filesystem structures from a tree-like text representation. It provides both a graphical user interface (GUI) and command-line interface (CLI).
Features
- Interactive GUI for easy filesystem creation
- CLI mode for automation and scripting
- Generate directory and file structures from a tree format
- Safe recursive files/directories deletion with
--destroysupporting glob patterns - Cross-platform support (Windows, macOS, Linux)
Installation
pip install mktr
Usage
GUI
Run the GUI without arguments:
mktr
CLI
Create filesystem from a tree structure file:
mktr some_tree.txt
Destroy files or directories recursively (supports glob patterns):
mktr --destroy path/to/directory
mktr --destroy partial-name-*
Tree Structure Format
- Use tree characters (
├,└,│,─) or slash/to denote directories. - Files are lines without trailing slash.
Example:
project/
├── README.md
├── src/
│ └── main.py
└── tests/
└── test_main.py
Development
- Python 3.7+
- Requires
customtkinter(installed automatically viainstall_requires) for GUI mode
License
MIT License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mktr-0.1.2.tar.gz.
File metadata
- Download URL: mktr-0.1.2.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77ea6293fdb35f3d78bfb4a1881e99a0ec21dd544ef19c2de20ffbf877e982c3
|
|
| MD5 |
274b7d246968b1f699771a2c11ef2270
|
|
| BLAKE2b-256 |
3d5c11f7be82273c750f185be5d91ebed13612621cab4e84271878f3069f79b2
|
File details
Details for the file mktr-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mktr-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d252c41f72484eb50f4d86ab7f7f58a9f987342eb50a144db0ccc4c17b826f1
|
|
| MD5 |
9dac3cb63dcaf187c2bac50dd9d093a5
|
|
| BLAKE2b-256 |
e376080243d08721966581fe0b5bbae100a978e591ba6fe1ccaa8f4cafad0829
|