Berry

A minimalist web framework
Download

Berry Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Adeel Ahmad Khan
  • Publisher web site:
  • http://adeel.github.com

Berry Tags


Berry Description

A minimalist web framework Berry is a minimal web framework written in the Python language.. It was inspired by Sinatra. It is WSGI-compatible and makes use of the HTTP server in Paste.You can use something like Jinja, etc., for views and Beaker for sessions. Use nginx or Apache to serve static files.Example: import berry from berry import get, post @get('^$') def index(): return "HOME" @get('^(d+)/?$') def test(id): return str(id) @get('^google/?$') def google(): redirect('http://google.com') berry.start()Getting form parameters:Parameters passed through both GET and POST are stored in berry.params.Parameters from routes are passed as arguments to the function.Using middleware:berry.use(MyMiddleware, options_dict)The WSGI environ variable is available as berry.env. Requirements: · Python


Berry Related Software