PyTin 1.1

A CGI environment framework.
The PyTin package is a CGI framework that provides shortcuts for application writers to focus less on common tasks and more on their application's functionality.

Requests

Requests take all the data that exists in different areas like environment variables and standard input, and puts it all into one, cleanly organized object.

Responses

Responses are file-like objects, but with convenience methods named w (with a newline) and wn (without one). They also have custom attributes for setting common HTTP headers like Content-Type and Location.

RQMods/RSMods

These are applied to requests and responses. You pass a list of them as the rqmods and rsmods keyword arguments. They're not required, and PyTin doesn't even ship with any (yet), but they could be very helpful if you're in a situation where you'd need one.

Bake

Bake is the major function you need to know. It will publish your object, collect the environment variables, enable tracebacks if needed, and pass extra settings to your application. After your request has been returned, it will be compiled and returned.

Prebake

The prebake function is designed to allow extra security and lighter script files. It's a command-line-based wizard that produces a simple file that imports a function stored in a module and automatically bakes it.

last updated on:
January 1st, 2009, 15:25 GMT
price:
FREE!
homepage:
pac-sci.homeip.net
license type:
GPL (GNU General Public License) 
developed by:
LeafStorm/Pacific Science
category:
ROOT \ Internet \ HTTP (WWW)
PyTin
Download Button

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT