Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

A CGI environment framework.

Project description

PyTin is a CGI framework that provides shortcuts for application writers to focus less on common tasks and more on their application’s functionality.


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 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.


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 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.


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.

Project details

Release history Release notifications

This version
History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
PyTin-1.1.tar.gz (5.5 kB) Copy SHA256 hash SHA256 Source None Jan 1, 2009

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page