Convert ASCII tree diagrams into real filesystem structures.
Project description
graph2doc
graph2doc converts a text-based tree diagram into a real directory structure on disk.
It takes input like:
python_app
├── README.md
├── requirements.txt
├── setup.py
├── app
│ ├── __init__.py
│ ├── main.py
│ ├── config.py
│ └── utils.py
└── tests
├── __init__.py
└── test_main.py
and creates actual folders/files matching that structure.
Installation
Install from PyPI
pip install graph2doc
How to Use
After installing, you can run the tool from anywhere using the command:
graph2doc
By default, it looks for a file named tree.txt in the current directory and creates the folder structure in the current working directory.
Use a custom input file
graph2doc -i path/to/your_tree.txt
Use a custom output directory
graph2doc -o path/to/output_folder
Specify both input and output explicitly
graph2doc -i path/to/tree.txt -o path/to/output_folder
Example input .txt
project
├── README.md
├── requirements.txt
├── setup.py
├── app
│ ├── init.py
│ ├── main.py
│ ├── config.py
│ └── utils.py
└── .gitignore
What it does
graph2doc reads a “tree-like” structure and generates real folders and files matching it.
If intermediate directories don’t exist, they are created automatically.
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
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 graph2doc-0.1.1.tar.gz.
File metadata
- Download URL: graph2doc-0.1.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
251610c4274bdc9d1b1c9e1978da11a0d6c3a0141c64bdd5aec10e807001234d
|
|
| MD5 |
487ac4c3abf7f85452aef8da9c997aa8
|
|
| BLAKE2b-256 |
4f771eed6785efbf4c7d7580000122ad7cd2107b59c3ba4d32a020c7c1e3fb4a
|
File details
Details for the file graph2doc-0.1.1-py3-none-any.whl.
File metadata
- Download URL: graph2doc-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d694ba7975c0470b27ccfe9ab52a467e11ac73d5e73dc8c70d865c4de36ee7a
|
|
| MD5 |
5583cbae33c969106ecf45a114d9afd0
|
|
| BLAKE2b-256 |
3c69c0da53e545e1388b2576cb343f77338c2b0382a74c278f6ee80faa0db4a2
|