WSGI-compliant HTTP publisher.
Project description
Overview
Otto is an HTTP publisher which uses a routes-like syntax to map URLs to code. It supports object traversal.
You can use the publisher to write web applications. It was designed with both small and large applications in mind. We have tried to incorporate elements of existing publishers to allow diverse and flexible application patterns while still being in concordance with the Zen Of Python.
Here’s a variation of a familiar theme:
#!/usr/bin/env python2.6 import otto import webob import wsgiref.simple_server app = otto.Application() @app.route("/*path/:name") def hello_world(request, path=None, name=u'world'): return webob.Response(u"An %d-deep hello %s!" % (len(path), name)) wsgiref.simple_server.make_server('', 8080, app).serve_forever()
See the documentation for this release.
Changes
1.0 (2009-11-12)
Initial public release.
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
Otto-1.0.tar.gz
(67.9 kB
view details)
File details
Details for the file Otto-1.0.tar.gz
.
File metadata
- Download URL: Otto-1.0.tar.gz
- Upload date:
- Size: 67.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dd822057327528b76897069ba201a4829bb785274cd748472888d3df3fb2b02 |
|
MD5 | 218d9a7c0e929a5bcef1db01285dfbc6 |
|
BLAKE2b-256 | 1728d015f4d60a3a37378afc99aa3a2d5f0772105c6ece06ec34352fee7f2565 |