문제

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?

도움이 되었습니까?

해결책

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

다른 팁

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.

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.

Django Piston may be the solution.

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top