Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python project structure
#1
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.
Reply
#2
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Project Structure for Modularity and Reusability with Multiple Entry Points b19wh33l5 0 150 Apr-24-2024, 12:21 PM
Last Post: b19wh33l5
  Project structure with a virtual environment gdbengo 1 1,450 Jan-26-2022, 03:22 PM
Last Post: snippsat
  Calling main in project structure fails sandro4912 0 1,349 Aug-22-2020, 01:51 PM
Last Post: sandro4912
  Call functions recursively in tree structure using python dubru 1 2,299 Feb-15-2019, 06:43 PM
Last Post: nilamo
  Python structure question PickyBiker 4 4,941 Dec-11-2016, 05:37 PM
Last Post: PickyBiker

Forum Jump:

User Panel Messages

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