pureodm

A minimalist ODM for Python and MongoDB
Download

pureodm Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Nick Saika
  • Publisher web site:
  • http://indienick.github.com/

pureodm Tags


pureodm Description

pureodm is an incredibly lightweight document-to-object mapper for Python and MongoDB.Seriously, another ODM?Wait! Before you turn your nose up, ask yourself if you have ever wanted to throw your current ODM out the window.Yes? You have? Well, you're in luck. Hopefully this ODM sucks significantly less than the one that gave you those grey hairs. (Don't worry, they aren't that noticeable.)What makes PureODM so much better? Well, for starters I don't do anything for you. You're all big girls, and boys, and I figure you know exactly how you want to connect to your database, and I'm pretty sure you would rather have anything I do, done in plain sight.Let me put it this way: PureODM is an object-to-document mapper. It will not manage your connections for you, it will not create and maintain indexes for you, in fact, it will not do anything but turn results from a pymongo query into an object, for you.So, how do I work this thing?Hopefully, it's pretty straight forward.After you get it installed (which should be relatively painless), all you need to do is...import pureodmclass Bread(pureodm.Model): fields = {'grain': {'default': 'wheat', 'type': str, 'required': True}, 'fiber_content': {'default': 1, 'type': int}}...and that's pretty much it.So...?I'm not a fan of repeating myself, so for a much more in-depth look at PureODM, I highly suggest you read the documentation.Product's homepage


pureodm Related Software