Python Forum
hundreds of function - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html)
+--- Forum: Bar (https://python-forum.io/forum-27.html)
+--- Thread: hundreds of function (/thread-35369.html)



hundreds of function - Skaperen - Oct-25-2021

i have written over a hundred functions in Python. i use most of them frequently in other projects. i want to release them for others to use. i'd like to know this preference. would it be preferred to have them as separate files or as one big file?


RE: hundreds of function - Gribouillis - Oct-25-2021

You could perhaps follow the format of other authors of utility libraries. They usually group their functions by topic and they create a submodule for each of these topics. See for example the structure of python_utils or pytil or grizzled-python or similar libraries in Pypi such as toolz, etc.