Looking for a lightweight Python web framework with minimal configuration [closed]
Asked Answered
M

4

10

I realise that web application frameworks are well documented, yet having tried 2 Python frameworks and found that are neither are suitable for my task, I hope you'll understand the need for this question.

I'm looking for a lightweight, "micro" framework for Python with the following features:

  • Basic HTML layout management
  • Features for HTML forms, tables etc.
  • Authentication and session management
  • Preferably integrable with mod_wsgi
  • Seamless importing of packages

That's it. You may ask why I need a framework for this at all - I don't. But it would save a lot of time, and I'm very surprised that I can't find something like this.

I'm reasonably advanced in Python but want to deal with the HTML and authentication as effortlessly as possible. I have a lot of existing code that I would like to be called from within the framework. I don't require an ORM or DAL, I would like my existing classes to continue to use their own MySQLdb driver. Inevitably, for authentication to be handled, an ORM or DAL will be included, but I just won't use it for anything other than authentication.

I have tried web2py and Grok, both supposedly lightweight, configuration-free frameworks, yet both were far too high-level.

Thanks in advance.

Menjivar answered 17/5, 2011 at 16:48 Comment(2)
As soon as you add "features for HTML forms, tables etc." you lose the "micro" bit. And what does "seamless importing of packages" even mean?Flattery
Out of the frameworks I have used, the higher level they are, the more caveats they tend to have for importing packages/modules. I simply meant with as few caveats as possible.Menjivar
T
12

You should have a look at flask.

Transcendental answered 17/5, 2011 at 17:13 Comment(1)
And, in addition, it's much lower level than web2py (cannot speak for Grok). +1Linneman
F
4

You can also try WebPy.

Fireman answered 17/5, 2011 at 17:43 Comment(0)
Q
3

The full (?) list of python web frameworks is given here. This slideshow compares 10 micro frameworks and should be of intrest. Not all of them will tick your boxes but at least it should give some hints as to their pros/cons.

Quince answered 28/8, 2011 at 14:9 Comment(0)
F
0

I propose looking into web.py and Tornado.

Web.py is incredibly simple to use with a power of a full web framework. I used it for OData implementation with great success.

Fitzgerald answered 12/9, 2012 at 20:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.