0

Some details about the project:

  • pure backend project, no front

  • expose a rest api (maybe custom routes?)

  • connect to other rest apis

  • query MySQL & MongoDB using an ORM

  • have unit tests

What Python framework would you recomend me for it?

Vlad Zloteanu
  • 8,464
  • 3
  • 41
  • 58
  • Why did you tagged your question with django and pylons but didn't include directly names of other python web-frameworks? – Marek Jan 17 '13 at 14:25
  • any of them your requirements aren't exactly unique. – Tom Willis Jan 19 '13 at 19:47
  • @TomWillis Considering the fact that I don't need any interface/views, I can choose a 'lighter' framework (with less/no support for views/templates) ;) – Vlad Zloteanu Jan 19 '13 at 19:50
  • 2
    then use a "lighter" one. it still stands that these aren't unique requirements. and thus any web framework will work based on your bullet points. this question simply provides an opportunity for everyone to list their favorite framework. – Tom Willis Jan 19 '13 at 20:04

4 Answers4

5

Any of them will work. Arguably the most popular Python web frameworks these days are Django, Flask, and Pyramid.

Chris McDonough
  • 2,479
  • 18
  • 18
  • Appears Pylons and Zope2 are (still) more popular, if counting by number of pypi installs: https://python3wos.appspot.com. – tshepang Jan 20 '13 at 08:06
2

You might want to consider cherrypy (cherrypy.org). From their website:

CHERRYPY IS A PYTHONIC, OBJECT-ORIENTED WEB FRAMEWORK

CherryPy allows developers to build web applications in much the same way they would build any other object-oriented Python program. This results in smaller source code developed in less time.

For more information on creating rest services in cherrypy, see Creating RESTful applications in CherryPy in the cherrypy documentation.

Community
  • 1
  • 1
Bryan Oakley
  • 370,779
  • 53
  • 539
  • 685
2

I agree with @Bryan about Cherrypy also you can try Flask

http://flask.pocoo.org/

Flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions.

Roberto Alarcon
  • 1,430
  • 2
  • 18
  • 32
1

Django Piston may be the solution.

For MongoDB, you can find something in this IBM blog and in this question

Community
  • 1
  • 1
Don
  • 16,928
  • 12
  • 63
  • 101