Ruby on Rails
PythonOnRails

I’d be very interested to see a Rails implementation for Python. It could support multiple deployment methods, including mod_python.

Anyone else up for it?

—Bryan Helmkamp

http://subway.python-hosting.com/ (broken link)

—Peter Hunt

Actually implementing it would be technically over my head, but I could help bang on it and so forth. If it was done as well and thoughtfully as rails appears to be, it would go over quite well I think. I gave my semi-informed opinion on some python web stuff (and vs java) here (broken link) if you’re bored or want to see some other opinions. Developers of both Webware and Quixote posted comments, and a couple Zope fans.

—Todd G

I could do some of the coding, but things like metaclasses still confuse me rather easily.

I think there are some solid libraries out there that we could build off of, and that would save a lot of development time.

Specifically, I think Cheetah would be a great template language, SQLObject could be adapted to be more like Active Record, and \FormEncode could be refactored to be an easy to plug in data validation layer for use in the Active Record objects.

Of the three libraries, I think SQLObject would need the most work. I don’t like how it runs an UPDATE query on every assignment statmenet, instead of waiting for a save() command. Also, SQLObject replicates the DB schema in your Python code, instead of pulling it out dynamically like Active Record in Rails.

—Bryan Helmkamp

SQLObject has a feature now to do lazy updates. I forget — I think do lazyUpdate=True in your class. There’s been a feature to pull the schema out of the database for a while now, see "fromDatabase":http://sqlobject.org/docs/SQLObject.html#automatic-class-generation

—Ian Bicking

I have this feeling that the best place to start is nevow (broken link), it has magic form designing via freeform and formless, and has some many other nifty things. But IMO you’d better start from zero (or start from SQLObject) instead of trying to subvert some other library.
Or just use Ruby :)
GabrieleRenzi

As someone who uses both Python and Ruby, I’d suggest giving Ruby a chance. The only thing that’ll trip you up is you have to explicitly end your blocks. The Ruby on Rails community would benefit from a bunch of smart Python guys contributing. Try it, you might like it!
— Gregg H.

It seems to me that a combo of the little known Aquarium framework and SQLObject is something fairly close to being the Python equivalent of Rails. I discuss that more in the comments on the “Aquarium page on the ”newWikiWord">PythonInfo? wiki":http://www.python.org/cgi-bin/moinmoin/Aquarium

MamadingCeesay?

Why do you want to go through the trouble of reimplementing something that already exists? Why not use the real thing, now instead of trying to build something for later? What’s more, I think that David used many advanced features of Ruby (such as adding methods to already existing classes) to make Rails possible, so it could be much harder to do in Python (or .NET or TCL or Perl or whatever)

— Vincent Foley

Some of us already have rich object frameworks written in Python that we would really like not to have to throw away, rewrite, and re-debug in Ruby, just to use a good framework like Rails.

— Anthony Thompson

Just for the record, it is possible to dynamically add methods to classes in Python. See, for example this Python Cookbook recipe .
— Afonso F.

Afonso, this is not trhe same thing. You can’t modify builtin classes in python (though you can add methods to classes you created inheriting from Object
GabrieleRenzi

Would the approach proposed by this guy on comp.lang.python be helpfull?
Message-ID: <mailman.251.1105018597.22381.python-list@python.org>
Lorenzo

Check out this project: http://www.djangoproject.com/
Natively described model, multiple applications within single project, looks appealing

See http://www.turbogears.org also

As a Python developer who is starting with Ruby on Rails, I would be interested in having ROR output python code.
-Robert H.

Guys you can try Monk. It is very simple frenwork for building complex applications. Monk is currently in development stage but the author claims that it is good enough to use it as the core of your projects.

Check it out
http://www.gnucitizen.org

Personally, I like it alot because I did a simple wiki app in less then 30 minutes in a single file. Moreover i trust it because it is very simple and very lightweight.