Python Forum
python project structure - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: python project structure (/thread-28715.html)



python project structure - anne - Jul-31-2020

I am using Eclipse plug-in PyDev.
PyDev lets me create "New project" and I end up with a basic structure - see attached.

( Edited Sorry odt file cannot be attached )


I am using two working python application as "cut and paste" help.
Both are organized around "folder" with modules of specific functions.

Coming from "C" coding side I expected "main" or its equivalent to be a starting / execution point of python application. Apparently that is not the case - the application executable" could be anywhere and any name.

I am asking - is there a generally accepted structure of python application code , especially when it is GUI centred.

I am not asking for links / references . I like some real life comments on how to organize python project.


RE: python project structure - deanhystad - Aug-01-2020

I don't think anyone understood your question. What is it you want to know? Are you looking for advice on how to split code into modules and how to organize modules? Or are you wondering who starts everything (who is main)?

I think you do yourself a disservice using an IDE and PyDev. When I first started working with Python I used PyCharm because everyone I know said it was great. I spend more time futzing with PyCharm crap than I did learning to program Python. I made very little progress until I uninstalled PyCharm and switched to using and editor and console. Not until I understood the language and how things like modules and import and paths and pip work was I ready for PyCharm and virtual environments and an IDE. I use VS Code due to the sour taste I got from PyCharm, but I'll have to give PyCharm another try