About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

linux default iconMongoAlchemy Publisher's description

MongoAlchemy is a layer on top of the Python MongoDB driver which adds client-side schema definitions

MongoAlchemy is a layer on top of the Python MongoDB driver which adds client-side schema definitions, an easier to work with and programmatic query language, and a Document-Object mapper which allows python objects to be saved and loaded into the database in a type-safe way.

An explicit goal of this project is to be able to perform as many operations as possible without having to perform a load/save cycle since doing so is both significantly slower and more likely to cause data loss.

Interesting Features¶

* Object-Document-Mapping: Turn MongoDB documents into Python objects and vice-versa.
* A rich expression language: which can be used to do queries for loading documents as well as updating documents without loading them.
* Use Any Collection and Field Names — Configuration allows collection names and field names to be different from their python names.
* Computed Fields ComputedField fields allow a function to be used to generate the value for a field. Extremely useful for fields where the value is a function (like a last-updated field), or where the field is generated from other fields (like a set of keywords generated or the components of a URL)
* User-defined validation — for values being wrapped for the database or unwrapped into a python object, as well as validators which happen for both. See Field
* Arbitrary Value Fields — A field that can hold arbitrary values: AnythingField
* More Flexible Mapping Type A dict-like field which can have arbitrary key and value types as well as allowing indexing on the keys — not normally possible in Mongo — by storing them in a different format than how they appear when accessed in python a plain dict. KVField
* Automatically Calculated Updates — The session object has an mongoalchemy.session.Session.update() function which determines which fields are dirty and will execute the appropriate update operations to update the object in the database. The operations used for updating can be overriden at the field definition level as well as in the update call.
* Drop into raw Mongo — Most functions will accept raw pymongo instead of the mongoalchemy objects. For example:

session.query('SomeClass').filter(SomeClass.name == foo).limit(5)``

is perfectly valid, as is:



easy_install MongoAlchemy

System Requirements:

В· Python
Program Release Status: Minor Update
Program Install Support: Install and Uninstall

MongoAlchemy Tags:

Click on a tag to find related softwares

Is MongoAlchemy your software?

Manage your software

Most Popular

linux default icon GDB 7.4
GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it... Read more
linux default icon Coral 0.9.1
Coral is a tool and a development platform to create and transform models and modeling languages.
linux default icon Forum Paid Plus Script 6.1
Forum Paid Pay Per Post Exchange is targeted at forum owners who wish to...
linux default icon sdo 0.6.5
Converts oracle SDO_GEOMETRY objects to WKT and GeoJSON.
linux default icon Get Paid Plus Script 6.1
Get Paid Plus Script

Related Category

» Other (877)
» Tools & Editors (359)
» Web Development (146)