Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/malthe/otto
WSGI-compliant HTTP publisher
https://github.com/malthe/otto
Last synced: about 2 months ago
JSON representation
WSGI-compliant HTTP publisher
- Host: GitHub
- URL: https://github.com/malthe/otto
- Owner: malthe
- Created: 2009-10-31T08:35:19.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2019-09-04T10:16:29.000Z (over 5 years ago)
- Last Synced: 2024-11-01T22:42:57.835Z (about 2 months ago)
- Language: Python
- Homepage: http://pypi.python.org/pypi/Otto
- Size: 452 KB
- Stars: 11
- Watchers: 6
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
Awesome Lists containing this project
README
Overview
========Otto is an HTTP publisher which uses a routes-like syntax to map URLs
to code. It supports routing and 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 :term:`Zen Of Python`.Here's a variation of a familiar theme::
import otto
import webob
import wsgiref.simple_serverapp = otto.Application()
@app.connect("/*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()
This release is compatible with Python 2.6+ and Python 3.2+.
See the `documentation `_ for this release.