Hi everyone,
I'm pretty new in Python devs and I want to know which code structure are you using? Are there some tips to have a clean Python code?
Based on multiple GitHub projects, the one that I used looks like this.
- controllers
- models
- resources
- routes
- services
- static (for webapps exposed by Flask)
- templates (for webapps exposed by Flask)
- server.py
Do you have some other tips for Python projects?
Thanks for your help!
Top comments (4)
If you are using (or want to use) the Fish shell, you can use a Fish Function to make your
python
command run a container with some default options (Python example linked at the end of this article).Fish in the boat
Amin ・ Feb 28 ・ 4 min read
Here is how it could look.
And if you are not using Fish, you will probably have learned one thing or two. Win win.
Thanks for the information!
If you want I have a list of Python IDE / Tools. Do you want me to post it here?
Yes, for sure!
Thanks