June 2019
Beginner to intermediate
770 pages
19h 24m
English
As we noted in the previous section, there's no essential need for a complex directory structure in a Python project. The ideal structure follows the standard library, and is a relatively flat list of modules. This will include overheads such as the setup.py and README files. This is pleasantly simple and easy to work with.
When the modules and packages get more complex, we'll often need to impose some structure. For complex applications, one common approach is to segregate Python code into a few bundles. To make the examples concrete, let's assume that our application is called my_app:
Read now
Unlock full access