Image generated using MidJourney with a paid license by the author

Can You Even __init__.py?

Casting magic using __init__.py

--

Whenever you try to import your code from a different folder, you throw in an empty __init__.py. It has almost become a muscle memory for most Python developers — beginners or wizards. But do we really know __init__.py?

In this blog post, let’s dive into how __init__.py works and three ways a non-empty __init__.py helps us as Python…

--

--