Any good python-based open source projects illustrating coding standards and best practices?

In question

+4
source share
8 answers

Check out the flask code, release notes commenting that the code was very well written:

http://lucumr.pocoo.org/2010/4/16/flask-0-1-released

Armin, the author of Flask, also wrote Werkzeug, which I use a lot and find it very well written. Here is the source:

http://github.com/mitsuhiko/flask/blob/master/flask.py

+3
source

You cannot read too many sources. I think it would be a good idea to take some Pythonistas (Raymond Hettinger and Ian Bicking come to mind) and fetch their code from their projects or from other sources such as ActiveState and go through them.

+1
source

I vote for Django , maybe it depends too much on the area of ​​web development.

+1
source

Python STDLIB

0
source

I think the Python interface for Redis , written by Andy McCurdy, is a great example of how to write, package, and organize Python code. Look at the source code for yourself!

0
source

Twisted code is pretty well written, although it's a somewhat complicated code base.

0
source

I know http://code.google.com/p/jaikuengine/ has been ported to the Google App by the googlers engine, so there should be some good practices.

0
source

Consider stdlib, some modules are larger than others. One of the projects I found illustrates good python coding techniques: rietveld . Of course, the good in the eyes of one person is terrible in a stranger.

0
source

Source: https://habr.com/ru/post/1308153/


All Articles