Requests - https://github.com/kennethreitz/requests . How to make a usable api. The decisions that went into each method call were fantastic. Great test coverage as well. I use package in most python development.
Thanks, I've been hearing a lot about this package, I think it's one I will check out. Cheers!
Ask HN: Good Python codebases to read?
51–60 of 153 posts
Re: Ask HN: Good Python codebases to read?
#52Jumping on the Kenneth Reitz train, you might check out The Hitchhiker's Guide to Python: http://docs.python-guide.org/en/latest/ He recommends the following Python projects for reading: * Howdoi ( https://github.com/gleitz/howdoi ) * Flask ( https://github.com/mitsuhiko/flask ) * Werkzeug ( https://github.com/mitsuhiko/werkzeug ) * Requests ( https://github.com/kennethreitz/requests ) * Tablib ( https://github.com/k…
Re: Ask HN: Good Python codebases to read?
#53Re: Ask HN: Good Python codebases to read?
#54http://norvig.com/lispy.html http://norvig.com/lispy2.html (Lisp interpreter)
http://www.norvig.com/spell-correct.html (Spelling corrector)
http://norvig.com/sudoku.html (Sudoku solver)
Also his online course Design of Computer programs includes many short, well-explained Python examples:
Re: Ask HN: Good Python codebases to read?
#55It's a nice, small, fast web framework. Great for building APIs. Also, it's one ~3k loc, readable file.[1]
[1] https://github.com/bottlepy/bottle/blob/master/bottle.py
Re: Ask HN: Good Python codebases to read?
#56Rather than seeing the code of great libraries, I sometimes want to see how people use them in the real world.
Re: Ask HN: Good Python codebases to read?
#57 tornado -
tornadoweb.org
github.com/facebook/tornado
2 - scapy The entire product runs on the python CLI
secdev.org/scapyRe: Ask HN: Good Python codebases to read?
#58The django project is a good example of a large opensource project which has aged well. http://github.com/django/django
Re: Ask HN: Good Python codebases to read?
#59The functions in PyToolz are short, well tested and idiomatic Python (thought the functional programming paradigm they support is not quite so idiomatic). I recommend starting with the excellent documentation: http://toolz.readthedocs.org/en/latest/
In particular, the API docs have links to the source code for each function: http://toolz.readthedocs.org/en/latest/api.html
Re: Ask HN: Good Python codebases to read?
#60It is a minimal web framework like Sinatra or Flask. The beautiful thing about CherryPy is you write code for it the same way you would write general Python code. I enjoy using it for small projects from time to time.
edit:
Bickbucket Repository: https://bitbucket.org/cherrypy/cherrypy/overview