Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graph2doc-0.1.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graph2doc-0.1.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file graph2doc-0.1.2.tar.gz.

File metadata

  • Download URL: graph2doc-0.1.2.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

Hashes for graph2doc-0.1.2.tar.gz
Algorithm Hash digest
SHA256 30e217747b98c14af64f3e078bcf6cfead281060504d8d60293353ba02349556
MD5 432c2bc2678f18a6e52fe68b4ea17fc5
BLAKE2b-256 29e5269a1f2a67921e22219777506b5d53dfc9fa6b49328c7382f4e08838cd7c

See more details on using hashes here.

File details

Details for the file graph2doc-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: graph2doc-0.1.2-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

Hashes for graph2doc-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4749b47a76dc562d49b8092c246904fd621d25273e783f920dfb514ed9e8b6ce
MD5 58dbb61e5238b790cd99366b8889bd24
BLAKE2b-256 8319e86f0b5d86a885a969bb496148808407be074f684d1262ba8b8f382721de

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