News for hackers. Stuff that matters.
Re:Ask HN: What Python framework would you use to serve up a... by avinassh on Wednesday November 05, 2014 @02:46AM (#8560876)
I use Tornado. It's simple, lightweight and very well documentated. It wouldn't take much time to get it up and running. And it also supports asynchronous operations out of box unlike Flask.

However community isn't big as that of Flask and has low bus factor.

Other alternative is Django REST Framework[0]. It's also well documented and get the work done. However code base is large compared to Tornado. Advantage is, it has a bigger community support and it's easy to find a developer.

[0] - http://www.django-rest-framework.org/

Re:Ask HN: What Python framework would you use to serve up a... by dougzor on Wednesday November 05, 2014 @06:27PM (#8564890)
We use pyramid+gunicorn+nginx without any issue. Behind that is SQLAlchemy & Postgres (with memcached for caching layer)

I know that SurveyMonkey also uses the pyramid+nginx setup.

Edit: Pyramid Documentation: http://docs.pylonsproject.org/en/latest/docs/pyramid.html#py...

Re:Ask HN: What Python framework would you use to serve up a... by jackgolding on Wednesday November 05, 2014 @02:49AM (#8560882)
I use flask-restful at work, as a non web developer I haven't had any problems with it.
Re:Ask HN: What Python framework would you use to serve up a... by mushfiq on Wednesday November 05, 2014 @03:32PM (#8564092)
I used Django Tastypieapi (http://tastypieapi.org/). Deployed with wsgi, backend was mongodb. Worked perfectly fine. Documentation is also better than average.
Re:Ask HN: What Python framework would you use to serve up a... by webmaven on Wednesday November 05, 2014 @06:15PM (#8564847)
I've just started using Morepath: http://morepath.readthedocs.org/

It's new, not fully baked yet, and yet it is amazingly powerful and simple to use.

Re:Ask HN: What Python framework would you use to serve up a... by techdragon on Wednesday November 05, 2014 @05:46AM (#8561256)
Another vote for Django Rest Framework, it's very good at getting an API going when prototyping.
Re:Ask HN: What Python framework would you use to serve up a... by kolev on Tuesday November 04, 2014 @08:09PM (#8560021)
I use Eve [1].

[1] http://python-eve.org/

Re:Ask HN: What Python framework would you use to serve up a... by mercnet on Wednesday November 05, 2014 @07:07AM (#8561422)
Eve looks amazing! Do you use SqlAlchemy with it? I notice they created a separate branch for it and was wondering if it was stable.
Re:Ask HN: What Python framework would you use to serve up a... by kolev on Wednesday November 05, 2014 @02:13PM (#8563621)
No, I haven't, but our Eve-based backend has been one of the most stable and well-performing component.
Re:Ask HN: What Python framework would you use to serve up a... by hakanderyal on Wednesday November 05, 2014 @03:46AM (#8560990)
Flask+uwsgi+nginx. Simple, battle tested, just works.
Re:Ask HN: What Python framework would you use to serve up a... by dheera on Wednesday November 05, 2014 @10:21AM (#8562152)
Thanks! Any particular points I should be aware of in this setup?

I've deployed many small websites using flask+uwsgi+nginx before, but for a high-volume API, there seem to be a number of "fragile" aspects to this, e.g. processes and threads settings, since WSGI is synchronous.

If I may ask, what's usually the weakest link in this setup, and what's the best way to monitor for problems and scale appropriately and intelligently as users grow? For example, let's say I set processes = 16, it hits the limit, but it turns out that I still have plenty of CPU and RAM to spare and I want it to dynamically make use of that?

Re:Ask HN: What Python framework would you use to serve up a... by johns on Wednesday November 05, 2014 @12:43PM (#8563031)
flask-restful if flask (powers Twilio API and was written by my co-founder), Django Rest Framework if Django