mongate

Client for Sleepy Mongoose that provides the same interface as Pymongo
Download

mongate Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Publisher Name:
  • Benjamin Coe

mongate Tags


mongate Description

Client for Sleepy Mongoose that provides the same interface as Pymongo mongate is a Python wrapper for Sleepy Mongoose that provides the same interface as Pymongo.Usage:Connect to Sleepy Mongooseconnection = Connection(SLEEPY_HOST, SLEEPY_PORT)connection.connect_to_mongo(host=MONGO_HOST, port=MONGO_PORT)Select a Database and Collectiondb = connection.db_namecollection = db.collection_nameInsert Datacollection.save({’key’: ’value’})Retrieve Datacollection.find({’key’: ’value’})orcollection.find_one({’key’: ’value’})Update Datacollection.update({’key’: ’value’}, {’$set’: {’key’: ’value’}})or use save() with an object that has already been loaded.HTTPS/Basic AuthMongate supports HTTPS and Basic-Auth. just set auth and https to True when instantiating a Connection. Requirements: · Python


mongate Related Software