Re:Eve: A Python REST API Framework
by noelherrick on Tuesday September 10, 2013 @11:24AM
(#6360560)
A simple REST api framework for Python is something I've been looking for, and this definitely fits the bill. Unfortunately, I need to use it with Postgres. For those who also have this requirement, it looks like they have a SQLAlchemy development branch that enables support for relational databases. Looks promising!
[ Parent
| on HN ]
This indeed looks promising and lightweight. For relational databases there is always Django Tastypie (although it depends on Django and is heavier than this Flask alternative)
Have a look at Spyne: http://spyne.io
Specifically: http://spyne.io/#s=sql&ser=Json&show=Data
Have you tried Bottle? It is very simple, defined in one file that you include with your project. It has attribute-based routing (including PUT!). It's great for smaller projects and prototyping. I'm not sure how well it scales to larger projects.
also Flask-Restless (http://flask-restless.readthedocs.org)
Using Flask, SQLAlchemy what is it that you are missing?
Re:Eve: A Python REST API Framework
by kennywinker on Tuesday September 10, 2013 @04:33PM
(#6363263)
Writing the glue takes a surprising amount of time/energy/learning for a newb. I've got a couple of hobby projects on the go where I am learning to create webapps / rest apis using flask + SQLAlchemy. None of these projects are anywhere near shippable.
Not knocking the tools, they're great + fun. But writing the glue gets non-trivial fast once you step beyond a single table with no access control.