Real Python

Get Your Cheat Sheet: Click here to download your free Python project structure cheat sheet and keep the flat vs. src/ decision and the entry-point wiring within reach on your next project.

Almost there! Complete this form and click the button below to gain instant access:

A person at a drafting machine arranges labeled cards on a layout board beside signs reading LAYOUTS, flat, src, and ORGANIZE MODULES ENTRY POINT SUBPACKAGES, with a Python logo.

Python Project Structure: How to Choose the Right Layout (Cheat Sheet)

๐Ÿ”’ No spam. We take your privacy seriously.

ยฉ 2012โ€“2026 Real Python โ‹… Privacy Policy