Metadata-Version: 2.4
Name: mktr
Version: 0.1.5
Summary: Convert tree structure into actual folders/files via GUI or CLI
Author: Kamil Małek
Author-email: truckdriverbuck@gmail.com
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: customtkinter>=5.2.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# mktr

[![PyPI Version](https://img.shields.io/pypi/v/mktr.svg)](https://pypi.org/project/mktr/)
[![Python Version](https://img.shields.io/pypi/pyversions/mktr.svg)](https://pypi.org/project/mktr/)
[![License](https://img.shields.io/pypi/l/mktr.svg)](https://opensource.org/licenses/MIT)

**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

```bash
pip install mktr
```

## Usage

### GUI

Run the GUI without arguments:

```bash
mktr
```

### CLI

Create filesystem from a tree structure file:

```bash
mktr some_tree.txt
```

Destroy files or directories recursively (supports glob patterns):

```bash
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

