AsyncMongo v.0.1.2


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:// from source: git clone git://; cd asyncmongo; python 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='', 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
  • 166
  • Free

Review AsyncMongo

  • captcha
New Components & Libraries software
  • SentiVeillance SDK Trial  v.6.0.178880Real-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: ...
  • DbForge Documenter for MySQL  v.1.1dbForge Documenter for MySQL is a handy MySQL and MariaDB documentation tool that automatically generates documentation of an entire MySQL database in HTML, PDF, and MARKDOWN file formats.
  • Mgosoft PCL To PDF SDK  v.11.8.8Mgosoft PCL To PDF Converter is a fast, affordable way to batch convert your LaserJet PCL print files to industry standard PDF (Portable Document Format).