Ant Farm

Overview

Antfarm is an ultra-light weight WSGI web framework.

Essentially, it wraps the WSGI call structure, providing helpful wrappers for common needs.

You create an App instance, with a root view. A “view” is a function which accepts a Request instance, and returns a Response.

QuickStart

Into test.py place:

from antfarm import App, Response

application = App(root_view = lambda r: Response('Hello World!'))

And launch:

gunicorn test:application

Indices and tables