Based on my knowledge for:
1st: if these functions, say, have 1000 / 100s lines / functions, the module will become more and more awkward and difficult to read and edit. The package would be the right choice for him, as it facilitates fine-grained categorization and slightly quick module loading, as delnan correctly said, along with many other many other benefits that I currently don't know about.
Now, say, your project at the whole development stage will need only 10-20 such functions, then I propose to make one module.
2: utilities , followed by specific modules with their specific names foo.py Or just utilities.py
3rd: I would appreciate a good response from others.
PS: rule of thumb. Try to keep utility functions independent of project logic and as general as possible. This way your functions will be reused elsewhere without dependency problems.
Edit 1-2: Improving the accuracy of the first answer
Bleeding fingers
source share