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

Advertisement
Advertisement