Start a Python Project with Spyder? -


i used have short python codes. did not bother build project , have separate .py files.

but now, have big python project. find myself unfamiliar how python projects organized , built step step, though have knowledge in java projects eclipse.

how may start building python project (i using spyder ide, if helps)?

or can good python project examples know how project organized in python?

large python projects make use of packages. can read organization of packages , subpackages here. 1 way have main library package called lib contains several smaller subpackages other components of code. can call main method main.py within library package this:

from lib import main  if __name__ == '__main__':     main.main() 

that's put in access point level script on upper level directory.

a great place browse large python projects (without downloading them) github , other similar code repositories.

for general tips on building large project...python focused on object-oriented programming , readability make sure use many classes , modules possible organize code. code should readable , concepts should easy grasp. start large projects outlining classes, methods , functions, think i'll need , using pass lazy placemarker actual implementation. reroll on pass statements , start writing implementations 1 one , testing them using test suite. not move on implementation until i'm sure previous implementations have written work properly.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -