1

Read some online post about the best practice of python project structure but I am still not clear of it. Why do we need a main.py? Why do we need __init__.py and what should be in that file? Why do we need command line arguments parsing? ... What's the best place/resource that I can have a clear view of the right structure with good example that can help to understand this?

Thanks

Pynchia
  • 10,996
  • 5
  • 34
  • 43
JamesWang
  • 1,175
  • 3
  • 14
  • 32
  • You don't "need" main.py (the entry script could be called anything) or command line parsing (what if you had nothing to parse?)... Or an init if you don't have separate modules. – OneCricketeer Nov 05 '19 at 06:36

1 Answers1

0

I would suggest going through these links.

For project structures, you can also check popular GitHub repositories