About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • License: Freeware
  • Last update: 6 years ago
  • Total downloads: 36
  • Price: Free |
  • Operating system: Linux
  • Publisher: Jehiah Czebotar
See full specifications

linux default iconAsyncMongo Publisher's description

AsyncMongo is an asynchronous library for accessing mongo which is built on the tornado ioloop.

AsyncMongo is an asynchronous library for accessing mongo which is built on the tornado ioloop.

Installing: pip install asyncmongo

Installing form github: pip install -e git://github.com/bitly/asyncmongo.git#egg=asyncmongo

Installing from source: git clone git://github.com/bitly/asyncmongo.git; cd asyncmongo; python setup.py install

import asyncmongo
import tornado.web

class Handler(tornado.web.RequestHandler):
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

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'])

System Requirements:

The following two python libraries are required

* pymongo version 1.9+ for bson library
* tornado
Program Release Status:
Program Install Support: Install and Uninstall

Is AsyncMongo your software?

Manage your software

Most Popular

linux default icon GDB 7.4
GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it... Read more
linux default icon Coral 0.9.1
Coral is a tool and a development platform to create and transform models and modeling languages.
linux default icon Forum Paid Plus Script 6.1
Forum Paid Pay Per Post Exchange is targeted at forum owners who wish to...
linux default icon sdo 0.6.5
Converts oracle SDO_GEOMETRY objects to WKT and GeoJSON.
linux default icon Get Paid Plus Script 6.1
Get Paid Plus Script

Related Category

» Other (877)
» Tools & Editors (359)
» Web Development (146)