Skip to content

Python client library that contains tools for accessing to MongoLab databases via MongoLab REST API using a similar syntax to PyMongo.

License

Notifications You must be signed in to change notification settings

puentesarrin/pymongolab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyMongoLab

Latest PyPI version Number of PyPI downloads
Info:See PyMongoLab documentation site for more information. See GitHub repository for the latest source.
Author:Jorge Puente Sarrín <puentesarrin@gmail.com>

About

PyMongoLab is a Python client library that contains tools for accessing to MongoLab databases via the MongoLab REST API using a similar syntax to PyMongo. Useful in cases where network barriers (firewalls, etc.) prevent use of the standard MongoDB driver.

>>> from pymongolab import MongoClient
>>> con = MongoClient("MongoLabAPIKey")
>>> db = con.database
>>> col = db.collection.find()
>>> list(col)
[{u'_id': ObjectId('50243d38e4b00c3b3e75fc94'), u'foo': u'bar', u'tld': u'com'},
{u'_id': ObjectId('50004d646cf431171ed53846'), u'foo': u'bar', u'tld': u'org'}]

Installation

You can to use pip to install PyMongoLab:

$ pip install pymongolab

Or using last source:

$ pip install git+git://github.com/puentesarrin/pymongolab.git

Documentation

Sphinx must be installed to generate the documentation. Documentation can be generated by running python setup.py doc.

About

Python client library that contains tools for accessing to MongoLab databases via MongoLab REST API using a similar syntax to PyMongo.

Resources

License

Stars

Watchers

Forks

Packages

No packages published