资 源 简 介
The repoze.what mongoDB plugin
Note: This plugin is not official and it is under revision before it is released in repoze.what and pypi.
This is a source adapter plugin for repoze.what and MongoDB.
MongoDB is a schema-less document oriented database. It is highly recommended to use version 1.1.0 or later.
How to install
The minimum requirements are pymongo, and repoze.what, and you can
install it having setuptools:
python setup.py install
Sample use
Here we need to have a mongoDB server installed, check here for instructions.
>>> import pymongo>>> db_conn = pymongo.Connection("localhost")>>> db = db_conn["authdb"]>>> from repoze.