AsyncMongo v.0.1.2

Advertisement
Advertisement

AsyncMongo is an asynchronous library for accessing mongo which is built on the tornado ioloop.InstallationInstalling: pip install asyncmongoInstalling form github: pip install -e git://github.com/bitly/asyncmongo.git#egg=asyncmongoInstalling from source: git clone git://github.com/bitly/asyncmongo.git; cd asyncmongo; python setup.py installUsageimport asyncmongoimport tornado.webclass Handler(tornado.web.RequestHandler): @property def db(self): if not hasattr(self, '_db'): self._db = asyncmongo.Client(pool_id='mydb', host='127.0.0.1', port=27107, maxcached=10, maxconnections=50, dbname='test') return self._db @tornado.web.asynchronous def get(self): self.db.users.find({'username': self.current_user}, limit=1, callback=self._on_response) # or # conn = self.db.connection(collectionname="...", dbname="...") # conn.find(..., callback=self._on_response) def _on_response(self, response, error): if error: raise tornado.web.HTTPError(500) self.render('template', full_name=respose['full_name'])

AsyncMongo is an asynchronous library for ...

 
  • Freeware
  • 20 Kb
  • 169
  • Free
 
 

Review AsyncMongo

  • captcha
 
 
New Components & Libraries software
  • Viscomsoft TWAIN SDK ActiveX  v.8.0Windows TWAIN SDK - Capture images from all the TWAIN compliant scanner and webcam devices. Has ability to adjust the scanner image resolution (DPI).
  • SentiVeillance SDK Trial  v.6.0.183849Real-time biometric face recognition and pedestrian/vehicle tracking SDK for surveillance systems and networks. Supports up to 10 cameras on one PC. Automatic identification against watch list, gender/emotions detection. See: youtu.be/Jpt5jE5rwCQ ...
  • AspMap  v.4.9AspMap is a set of high-performance mapping controls for ASP.NET. AspMap gives you the ability to generate live map images, drill-down capability, thematic mapping, point-to-point routing and other features.