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.5.tar.gz (5.4 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.5-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mktr-0.1.5.tar.gz
Algorithm Hash digest
SHA256 c8c3ce6c2d8e6388553286c53281564860afffcfee07855d0651ba012b045b21
MD5 4e8117271e2261c9dff7636ffdb7d0b3
BLAKE2b-256 f7945460b5cae2be5be8c5fbb4ea2fcfd18eab4a652bb8b1300f3661476a25e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mktr-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for mktr-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 25fbae3d48ce9599d5f2f248903bba803d2c7551b43ab5c659edf31a46356b75
MD5 e26f376e1ed880d5dbb25a721676b8ac
BLAKE2b-256 86a531c7723e7ec111a623d6d309334c032f53c2c518ad6119fa124d4137eddd

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