views:

72

answers:

4

Do you know a framework in Python which is similar to the Spring MVC java framework?

What I'd love to have is that magic Converters that get, say, a movie_id from the request url and automatically fetch the Movie from you database and call a method of yours passing the object.

If you have used Spring MVC you might understand what I mean. Please help clarify if needed.

Thanks! Manuel

A: 

You could try Web2Py. It's self-hosting for development, so you can edit the models/views/controllers within the site that you are developing.

Bruno
A: 

I dont know much about Spring, so heres MVC python frameworks

  • Pylons : Not a full stack framework, but you can collect various libs to make it so
  • Turbogears 2 : Full stack framework based on Pylons
  • Django : Popular full stack framework. It's easier to get started
kusut
+1  A: 

Hey Manuel,

Have you tried the Spring implementation for Python?

http://springpython.webfactional.com/

I am not sure if it includes the MVC functionality that Spring for Java has, but it does seem to pack some of its magic.

Federico Cáceres
+1  A: 

Here's a list of Python Web Frameworks

http://wiki.python.org/moin/WebFrameworks

Most of the big ones are MVC-frameworks.

I would suggest that you try Django and TurboGears 2.

Epeli