Python Forum
hundreds of function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
hundreds of function
#1
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?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020