# Python Clean Architecture project scaffolder

> 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.

URL: https://thuyavan.netlify.app/projects/python-project-scaffolder
Updated: 2026-10-12

- Period: 2024-12
- Technologies: Python, Code generation

## 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

## Link to ThuOneCopy

ThuOneCopy.ico, style.qss (Qt stylesheet), main_window.py and file_service.py show this is the planned layout of ThuOneCopy v2 (P22, doc 026, a PyQt desktop app). The folder name “clean flutter” is a leftover: the script is the Python counterpart of S02 (doc 035).
