A small WSGI wrapper for creating small python web apps
Project description
A really small framework for rapid development of small python web applications
Why?
I got tired of dealing with the same boring WSGI stuff every time I wanted to make a small web-utility in django, but I didn’t want to go to far away from it, so I made this little thing to ease the work a bit.
How it works
Example:
from pyroutes import application, route @route('/') def index(request, name='world'): return 'Hello %s!' % name
The above creates a complete WSGI compliant application. Result:
GET / Hello world! GET /foo Hello foo!
See http://readthedocs.org/docs/pyroutes/ for more information.
Templating
pyroutes includes a small xml-based templating system called xml-template. For more information about xml-template, check out its bzr repo from http://bzr.sesse.net/xml-template XML-Template is released under the GPLv2 license.
For more information about usage, see the wiki example.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyroutes-0.5.0.tar.gz
.
File metadata
- Download URL: pyroutes-0.5.0.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e770cabc7c2b8602ac2eaaf85a4e815f5cd928dc5c2bda3720712b6a4c3c2424 |
|
MD5 | 250b0ea5d9a6c8b71f8109cf1fe9982b |
|
BLAKE2b-256 | afd03be5cf017b3b411b1a512824666a1c4e3a355d023b5162acddf02c876c38 |