Skip to main content

Convert tree structure into actual folders/files via GUI or CLI

Project description

mktr

PyPI Version Python Version License

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 --destroy supporting 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 via install_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

mktr-0.1.3.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

mktr-0.1.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file mktr-0.1.3.tar.gz.

File metadata

  • Download URL: mktr-0.1.3.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for mktr-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f5985f7d612ffd607a4b7585d8cad4014fb79664c43f927f243ab9834e7c4a33
MD5 209947c8a1cc70d1a10586ec0620b545
BLAKE2b-256 471350b7a2da9d88f9c56ceda46de6ee9172c0abe450e76ca2a7a051f1d2c8b1

See more details on using hashes here.

File details

Details for the file mktr-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: mktr-0.1.3-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

Hashes for mktr-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 68244a1f59cdc8c62ef98bfb6776fd2493a5a2836a924810a1a7c6cc423e645e
MD5 ad322fecb1f8176b2497db98146a3287
BLAKE2b-256 00e664182fd160e19868f352a00329059eff316adb20d3c9420749f45b8ac8fa

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