Real Python

Get Your Code: Click here to download two small example projects that show how __init__.py turns folders into importable packages.

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

What Is Python's __init__.py For?

Build a Real Package Layout With __init__.py

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

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