There are a lot of MongoDB libraries for Python. Some of them could be very helpful. But when it comes to use PyMongo we are stuck with dicts and strings. Mnj (MongoEnergy) is here to fix it.
Direct MongoDB syntax mapping to dicts. ◦ Officially supported ◦ Has async derivative “Motor” • MongoEngine — most popular ODM ◦ Class to Collection mapping ◦ Django-like syntax ◦ Has async derivative “MotorEngine” • Other ◦ TxMongo (Twisted, PyMongo-like) ◦ MongoKit (alternative ODM, lack of maintenance, slow, was buggy) ◦ Some Django hacks, etc
DSL for PyMongo-like API • Helper Library that implements useful features • Object Document Mapping (ODM) • Licensed under BSD 2-clause license • Well coded and tested (PEP-8, 99% coverage) • `pip install mnj`
Object Document Mapping (different types in the same query) • Document linking/referencing • Redundant data in document references • Large documents (transparently split and merge docs>16MB) • Bucketing (transparently store series in a single document)
https://pypi.python.org/pypi/mnj • Star and fork on Github https://github.com/lig/mnj • Implement and contribute features https://github.com/lig/mnj/issues • Join chat and ask questions on Gitter https://gitter.im/lig/mnj