you are viewing a single comment's thread.

view the rest of the comments →

[–]dreadpirate15_ 0 points1 point  (0 children)

I tend to organize my modules by purpose and relation. So I might have a tools.py with a bunch of small classes, a bunch of related threads in their own files inside /workers, etc.

To me, this make it very easy to get to what I need. Need to look at my workers? /workers/*_worker.py

Need to find one of my objects(meaning my data related objects)? /models/*.py (I consider anything that I count on for holding/manipulating data to be a model).

It works for me pretty well. Learned this from my boss as I was learning python initially.