Spyre

A Web Framework the way it should be.

Spyre is a lightweight Python web application framework, initially developed for a large interactive website we were building. We found it to be rather useful and hence it is now available to our customers.

The Hello World Example

Spyre has been developed with speed and ease of use in mind. As an example, here is a basic (but complete) web application written for Spyre:

#!/usr/bin/env python

from spyre.core import WebApp
from spyre.controller import Controller, Response

class HelloWorld(Controller):
    def get(self, request, name):
        if not name:
            name = 'world'
        return Response('Hello, %s!' % name)

urls = (
    (r'/(.*)/?$', HelloWorld),
)

application = WebApp(urls, debug=True)
application.run_test_server(8000)

As you can see, it is much easier to get started in Spyre than it is in one of the heavyweight full-stack frameworks such as Django.

Features

Spyre makes lots of common tasks easy including:

Documentation

You can find documentation for Spyre at http://hmarr.co.uk/spyredocs/

Spyre Code Screenshot