From d068d22e3852ff7b67293e97ad7b81f6609e1e41 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 22 Jan 2013 12:00:56 -0600 Subject: [PATCH] Added README --- README | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..a559fc9 --- /dev/null +++ b/README @@ -0,0 +1,39 @@ +.. vim: set ft=rst : + +===== +Milla +===== + +*Milla* is a simple and lightweight web framework for Python. It built on top +of `WebOb`_ and thus implements the `WSGI`_ standard. It aims to be easy to use +while imposing no restrictions, allowing web developers to write code the way +they want, using the tools, platform, and extensions they choose. + +To get started using *Milla* right away, visit `Downloads`_ to get the latest +version, then read the `Documentation`_. + +Example +======= + +.. code:: python + + from wsgiref import simple_server + from milla.dispatch import routing + import milla + + + def hello(request): + return 'Hello, world!' + + router = routing.Router() + router.add_route('/', hello) + app = milla.Application(router) + + httpd = simple_server.make_server('', 8080, app) + httpd.serve_forever() + + +.. _WebOb: http://webob.org/ +.. _WSGI: http://wsgi.readthedocs.org/ +.. _Downloads: https://bitbucket.org/AdmiralNemo/milla/downloads +.. _Documentation: http://milla.readthedocs.org/