Python Forum

Full Version: hundreds of function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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.