Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
86 lines (61 sloc) 1.91 KB

Gunstar: Another Python Framework

Gunstar is a WSGI micro web framework.

Github Repo.

Build Status - Travis CI https://coveralls.io/repos/allisson/gunstar/badge.png?branch=master

Features

Example

Hello World App:

# -*- coding: utf-8 -*-
from gunstar.app import Application
from gunstar.http import RequestHandler

class IndexHandler(RequestHandler):
    def get(self):
        self.response.write('Hello World')


routes = (
    ('/', IndexHandler, 'index_named_url'),
)


app = Application(routes=routes)


if __name__ == '__main__':
    from wsgiref.simple_server import make_server
    server = make_server('127.0.0.1', 8080, app)
    server.serve_forever()

Contents

Indices and tables