4

Previously I have been using web2py, it's quite good but a little heavy for my purposes.

Basically I am seeking a Python microframework with:

  • Automatic no-arg function -> controller (endpoint) conversion (or simple @app.route() style syntax)
  • Ability to expose (send/receive) these endpoints as JSON; and restrict their access by HTTP verb (e.g.: only GET); at the [controller] function level
  • Automated error/exception capturing (with tracebacks)
  • Deployability to heroku and OpenShift

Thinking wheezy.web, Flask, bottle or pyramid

From an MVC standpoint, all I require are the Models (db+schema) and Controllers (managing HTTP verbs + endpoints + connection to/from Models).

A T
  • 13,008
  • 21
  • 97
  • 158
  • I'd go with Flask (I'm a bit biased, though). Check this extension → [Flask-RESTful](http://flask-restful.readthedocs.org/en/latest/) – Nadir Sampaoli Mar 16 '13 at 10:05
  • Thanks, will definitely benchmark my dev time with it. FYI for mods: [this question](http://stackoverflow.com/q/713847/587021) was closed and all the answers are out-dated; so maybe we can keep this thread open? – A T Mar 16 '13 at 10:06
  • 1
    FYI: For anyone still looking at this thread, I have been using [Bottle](http://bottlepy.org) for months now. – A T Dec 22 '13 at 05:49

1 Answers1

0

Take a look on python frameworks. Try to use Grok or TurboGears.

Mihai8
  • 3,113
  • 1
  • 21
  • 31