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.4.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.4-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mktr-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 8fe39681a81b6bf0b7eb878678b48f579889e69a7c089f0b58dad6524c2f6999
MD5 ead4fa475f6bd217a9458057c9c2957e
BLAKE2b-256 70de646d8d5161bdaac21579dcdfb5d95704428d45465a3778130519169574c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mktr-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7e2ed39cf643f8795bcb7ccf55bdb805ac6d6cbe5c3793dd897ecd0e94c1e272
MD5 6573bd7569f631d6ee4367c60ce19580
BLAKE2b-256 6ffa6e9e5966dfc14ded0841ac465cb649e97ce30c96988aff7790ae30f28a06

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