4.9.1 CGI Deployment

##
4.9.1 `CGI` Deployment

The `albatross.cgiapp` module contains a `Request` class to allow you to deploy your application using `CGI`.

CGI is the simplest and most common application deployment scheme. The application is started afresh by your web server to service each client request, and is passed client input via the command line and stdin, and returns it's output via stdout.

An example of a CGI application:

    #!/usr/bin/python
    from albatross.cgiapp import Request

    class Application(...):
        ...

    app = Application()
    if __name__ == '__main__':
        app.run(Request())