Any python web framework with the following featur

2019-09-03 02:46发布

As the basic framework core:

  • Request Lifecycle REST
  • Routing
  • Requests & Input
  • Views & Responses
  • Controllers
  • Errors & Logging

And these features would make our dev easy and fast:

  • Authentication
  • Cache
  • Core Extension
  • Events
  • Facades
  • Forms & HTML
  • IoC Container
  • Mail
  • Pagination
  • Queues
  • Security
  • Session
  • SSH
  • Templates
  • Unit Testing
  • Validation

And really good support for MongoDB.

Is there any such framework?

3条回答
欢心
2楼-- · 2019-09-03 03:22

There is a fork of Django that supports non relational databases. For my own projects I prefer to use a hybrid: standard (relational) Django, with MongoEngine for entities I want to store in MongoDB. The syntax is almost identical to django.db models.

查看更多
男人必须洒脱
3楼-- · 2019-09-03 03:32

I'm kinda confused by the desire of a "REST lifecycle" combined with features like "Session", "Input", etc.

For a general purpose Web/API application you might want to check out on Flask and Flask-PyMongo. Could be a good match for your use case.

If you're looking into building a RESTful Web Service, then the Eve REST API framework (which is powered by Flask and supports MongoDB out of the box) could be a good choice. You can then peek into the source of extensions like Eve-Docs to learn how to, eventually, integrate the webservice with HTML/static/dynamic pages (Flask style.)

查看更多
何必那么认真
4楼-- · 2019-09-03 03:32

Try Django.. im not sure but worth trying

查看更多
登录 后发表回答