
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Treecraft is a Python tool that generates directory structures from text-based tree representations. It provides an intuitive way to create project scaffolding from a visual directory tree structure.
You can install Treecraft using pip:
pip install treecraft
For development installation:
git clone https://github.com/ashwin271/treecraft.git
cd treecraft
pip install -e .
Create a text file with your desired directory structure:
src/
āāā agents/
ā āāā __init__.py
ā āāā agent.py
āāā utils/
ā āāā __init__.py
ā āāā helpers.py
āāā main.py
Then run Treecraft:
treecraft input.txt -o output_directory
from treecraft import TreeParser, Generator
# Initialize components
parser = TreeParser()
generator = Generator()
# Parse tree structure
with open('input.txt', 'r') as f:
tree_content = f.read()
structure = parser.parse(tree_content)
# Generate directory structure
generator.generate(structure, 'output_directory')
git clone https://github.com/ashwin271/treecraft.git
cd treecraft
pip install -r requirements.txt
pytest tests/
project/
āāā README.md
āāā requirements.txt
āāā src/
āāā main.py
project/
āāā docs/
ā āāā index.md
āāā src/
ā āāā core/
ā ā āāā __init__.py
ā ā āāā main.py
ā āāā utils/
ā āāā __init__.py
ā āāā helpers.py
āāā tests/
ā āāā test_core.py
āāā README.md
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)This project is licensed under the MIT License - see the LICENSE file for details.
Ashwin Murali - @Ashwin_271
Project Link: https://github.com/ashwin271/treecraft
FAQs
Generate directory structures from text-based tree representations
We found that treecraft demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Ā It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600Ć faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.