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.0.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.0.tar.gz.
File metadata
- Download URL: tree2structure-0.1.0.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 |
3408b93b433484da0a34f5ee451a4285d1d42befccba918286616afd68ee9115
|
|
| MD5 |
728cf958b0af99f475c964c8778f1837
|
|
| BLAKE2b-256 |
b520693310401f4b9889ef5d3c7f2b32efddefae86664967fcfd018b48610be5
|
File details
Details for the file tree2structure-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tree2structure-0.1.0-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 |
3b6fe8f31fb118c9ce5878182f3fd23e4e4b0565fc7bf3a3def5c390a87f21a3
|
|
| MD5 |
6760f8aeb7306d5da63ec0d704e4c95e
|
|
| BLAKE2b-256 |
ec90532afb1470a4311416c98cb18945922ed88abd39309762d4dd4a2b05c1f4
|