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.2.tar.gz (5.1 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.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

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

Hashes for mktr-0.1.2.tar.gz
Algorithm Hash digest
SHA256 77ea6293fdb35f3d78bfb4a1881e99a0ec21dd544ef19c2de20ffbf877e982c3
MD5 274b7d246968b1f699771a2c11ef2270
BLAKE2b-256 3d5c11f7be82273c750f185be5d91ebed13612621cab4e84271878f3069f79b2

See more details on using hashes here.

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

Hashes for mktr-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5d252c41f72484eb50f4d86ab7f7f58a9f987342eb50a144db0ccc4c17b826f1
MD5 9dac3cb63dcaf187c2bac50dd9d093a5
BLAKE2b-256 e376080243d08721966581fe0b5bbae100a978e591ba6fe1ccaa8f4cafad0829

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