Developer tools & scriptsOwnerDec 2024

Python Clean Architecture project scaffolder

TL;DR

Describe a project as a nested dictionary and the script creates every folder and empty file idempotently. It was the planned layout for ThuOneCopy v2.

Period
Dec 2024
Technologies
2
Diagrams
0
Reading time
1 min

PythonCode generation

1 chapter(s) collapsed in quick read

What it does

A nested Python dict describes the project. A recursive create_structure(base_path, structure_dict) walks it: a dict becomes a sub-folder, a list becomes empty files in that folder, a “” value becomes a single empty file.

Generated layout:

project_root/
├─ src/app (main.py) · core (config.py) · data/{repositories, datasources} · domain (models.py)
│ services (file_service.py) · ui/{widgets, main_window.py, header.py} · utils (helpers.py)
├─ tests/ (test_file_service.py, test_main_window.py)
├─ assets/icons/ThuOneCopy.ico · assets/styles/style.qss
└─.gitignore · requirements.txt · README.md

Related projects

Want to discuss this project?

Happy to walk through the architecture, trade-offs or the code.

Email me about it

© 2026 Thuyavan Sivarasa. Script code is MIT licensed.