first of all thanks and i know stack overflow is full of this argument (but we can consider a review question). I have some question about to organize a Python project.
from this link i had find this nice schema
/myproject
/__init__.py # This makes it a Python package and importable.
/evaluate.py # Contains the code to actually do calculations.
/main.py # Starts the application
/ui.py # Contains the code to make a pretty interface
from this web site __init__.py
is normally empty
my question are:
- suppose you have a function (def foo). The foo is located in evaluate.py or in main.py?
- if foo is located in
main.py
(orevaluate.py
) what evaluate.py ( or main.py) contains? - sometimes i find
utilities.py
and/ormodule.py
. What utilities.py/module.py contains?
Thanks in advance