If you are going to use the "pure" python structure the way you want it, including the way you did in your previous language, of course, adapting to the particularities of python. Now ... if using a framework such as django or flask, it would be ideal to follow the recommendations of the FW developers.
Suggestion of one of the members of the Python Software Foundation to design pure python project repositories:
README.rst
LICENSE
setup.py
requirements.txt
sample/__init__.py
sample/core.py
sample/helpers.py
docs/conf.py
docs/index.rst
tests/test_basic.py
tests/test_advanced.py
See more details on the author's website.
Most widely praised practices in the python community are those recommended by the twelve-factor,
The twelve-factor app:
In the modern era, software is commonly delivered as a service: called web apps, or software-as-a-service. The twelve-factor application is a methodology for building software-as-a-service that:
- Use declarative formats to automate initial setup, minimize time and cost for new developers to participate in the project;
- It has a clear contract with the operating system that supports it, offering maximum portability between environments that execute it;
- Are suitable for deploying on modern cloud platforms, avoiding the need for servers and system administration;
- Minimize the divergence between development and production, allowing continuous deployment for maximum agility;
- And can scale without significant changes in tools, architectures, or development practices.
The twelve-factor methodology can be applied to applications written in any programming language, and using any combination of media services (database, queues, memory cache, etc.).