Convert tree-style folder structure into real files and folders with comments
Project description
tree2structure
Convert a textual tree-style folder structure into nested Python dicts and generate real files/folders with inline comments.
Install
pip install tree2structure
Usage
from tree2structure.parser import parse_structure
from tree2structure.generator import create_from_structure
structure = parse_structure(your_string_raw_tree)
create_from_structure(structure, base_path="your_project/")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tree2structure-0.1.1.tar.gz
(1.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tree2structure-0.1.1.tar.gz.
File metadata
- Download URL: tree2structure-0.1.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.0 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03f0d683474a480358676de28bb855382bffa6a47002fe3df279dddb9c7d95d1
|
|
| MD5 |
03d9c634ade499c3aa879e2f11c9b3c9
|
|
| BLAKE2b-256 |
18b81972c554cab26c7ebff10a006110016d02e6411129597350995e69479e19
|
File details
Details for the file tree2structure-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tree2structure-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.0 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e05648fcc018a487f94d94301b81ea80c9a3979947bd5aeb11e973d68d686ed
|
|
| MD5 |
76b22e938e96edf4b978c1324b38922b
|
|
| BLAKE2b-256 |
7de5f52d2e425bd1d95b0ca80d84df7ef894253e24cf9a932d4f7f7d1f0f0ae4
|