Python ORMs (SQLAlchemy, etc)

Status
You're currently viewing only drogin's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

drogin

Ars Tribunus Angusticlavius
8,283
Subscriptor++
I'm fairly well experienced with .NET development on Windows, but there are a couple of side projects I'd like to use as an opportunity to learn Python and its ecosystem.

I've gone through a book and gotten a handle on the basics of the language itself (which still feels kind of dirty to me) and no I am looking into libraries to provide some services I'm used to on the .NET platform.

One of those things is a good ORM. I've used Subsonic, NHibernate, and Entity Framework in .NET and I am looking for something with the same set of capabilities. I've been reading about SQLAlchemy and it seems like the most mature framework. However, if anyone here is more plugged in to the Python universe I'd appreciate hearing about newer or better systems.

At a high level:

I tend to favor ORMs that allow me to separate my mapping (i.e. meta) information from my domain models.

I prefer Data Mapper style ORMs over Active Record, but I would be willing to give Active Record another chance if the library was "OMG Awesome".

The ORM should have a fluent API for queries.

The ORM should generate at least somewhat performant SQL.
 

drogin

Ars Tribunus Angusticlavius
8,283
Subscriptor++
FogleBird":3dnw30k6 said:
And Python isn't dirty! You've just been brainwashed all these years. ;)

LOL. At this point my statement is mostly just do to a couple of things:
  • The whole module/package thing creeps me out. I'm used to dealing with "hard" entities like assemblies and dlls when it comes to making reusable code. It just seems all very wrong to base something like that on naming conventions. If it is a directory it is a package. If it has a file called __init__.py then you can restrict imports by having a magic variable __all__, etc.
  • The fact that you can use some kind of crazy syntax to bake unit tests into your documentation. Part of me thinks this is really cool, the rest of me thinks :scared:

Again, these are just some mindshift things. It is obviously a successful system.
 
Status
You're currently viewing only drogin's posts. Click here to go back to viewing the entire thread.
Not open for further replies.