10. Reference Material¶
We found the following references useful while writing prestans, they cover a variety of advanced Python programming and Web development topics.
It’s important that you understand the basic concepts of Python Web Programming. All our documentation and support is based around the assumption that you are familiar with Python Web development using WSGI and are writing Ajax Web apps.
10.1. WSGI & REST¶
- WSGI - the way Web servers talk to Python apps.
- ReUsable Web Components with Python and Future Python Web - presented by Ben Bangert (YouTube).
- Hosting Python Web Applications - presented by Graham P Dumpleton (YouTube).
- What every developer should know about REST - Michael Mahemoff‘s Web Directions Code 2013 presentation on REST (YouTube).
- Thoughts on RESTfulAPI Design - by Geert Jansen
- Unacceptable Browser HTTP Accept Headers - Kris Jordan‘s comprehensive article on how different browser interpret the Accept header.
- The Accept Header - Chris Shifflett describes the Accept Header.
- A Beginner’s Guide to HTTP Cache Headers - Kyle Young’s excellent description of HTTP cache headers.
- Know your HTTP headers well - Andrei Neculau‘s guide to the HTTP protocol
10.3. Advanced Python¶
- Python WSGI reference implementation - available in Python 2.5
- Effbot - (A Semi-Official) Python FAQ Zone
- Python Decorators - various Prestans utilities are provided as decorators
- Python Types and Objects - an excellent article by Shalabh Chaturvedi on how Python sees Objects and Types.
- Python Attributes and Methods - another excellent article by Shalabh Chaturvedi providing an indepth understanding of how attributes and methods work.
- Python Regular Expressions - Google Developer article on regular expressions.
- Regular Expressions by Example - specific regular expression examples.
- Inspecting live objects in Python - the inspect module provides functions for introspecting on live objects and their source code. This article by Doug Hellmann shows off many really nice features like discovering method signatures, extracting docstrings, etc.
- An Intro to logging - learn about how to use and extend the Python logging feature.
- Python Style Guide - PEP 0008 standards on naming stuff in Python
- Getting Stated with WSGI - Armin Ronarcher’s introduction to WSGI.
Implementation specific posts:
- Faux function type signatures in Python - using a Python decorator to ensure that your functions get values in the right type from WSGI calls. Originally posted as a response on Stackoverflow.
10.5. Server Software¶
- Google App Engine - an extemely easy to work with Cloud platform run by Google.
- mod_wsgi - a connector module allowing your to run WSGI apps with Apache Web server.
- wsgid - Wsgid is a generic WSGI handler for mongrel2 web server. Mongrel2 is a non-blocking web server backed by a high performance queue (0mq). Wsgid plays a gateway role between mongrel2 and your WSGI application, offering a full daemon environment with start/stop/reload functionality.
- Werkzeug - The Python WSGI Utility Library (including a development HTTP server)
- MongoDB - MongoDB (from “humongous”) is a scalable, high-performance, open source NoSQL database. Written in C++.