Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install asyncmongo

How to install asyncmongo

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install asyncmongo
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.2.1
1.3-alpha3Never BuiltWhy not?
1.2.1 Available View build log
1.2 Failed View build log
1.1.1 Available View build log
1.0.3 Available View build log
1.0 Failed View build log
0.1.3 Available View build log
0.1.2 Available View build log
0.1 Available View build log
Windows (64-bit)
1.2.1
1.3-alpha3Never BuiltWhy not?
1.2.1 Available View build log
1.2 Failed View build log
1.1.1 Available View build log
1.0.3 Available View build log
1.0 Failed View build log
0.1.3 Available View build log
0.1.2 Available View build log
0.1 Available View build log
Mac OS X (10.5+)
1.2.1
1.3-alpha3Never BuiltWhy not?
1.2.1 Available View build log
1.2 Failed View build log
1.1.1 Available View build log
1.0.3 Available View build log
1.0 Failed View build log
0.1.3 Available View build log
0.1.2 Available View build log
0.1 Available View build log
Linux (32-bit)
1.3-alpha3 Available View build log
1.2.1 Available View build log
1.2 Failed View build log
1.1.1 Available View build log
1.0.3 Available View build log
1.0 Failed View build log
0.1.3 Available View build log
0.1.2 Available View build log
0.1 Available View build log
Linux (64-bit)
1.3-alpha3 Available View build log
1.2.1 Available View build log
1.2 Failed View build log
1.1.1 Available View build log
1.0.3 Available View build log
1.0 Failed View build log
0.1.3 Available View build log
0.1.2 Available View build log
0.1 Available View build log
 
License
Apache Software License
Lastest release
version 1.3-alpha3 on May 30th, 2013

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

[![Build Status](https://travis-ci.org/bitly/asyncmongo.png?branch=master)](https://travis-ci.org/bitly/asyncmongo)

Installation

Installing: pip install asyncmongo

Usage

asyncmongo syntax strives to be similar to [pymongo](http://api.mongodb.org/python/current/api/pymongo/collection.html).

import asyncmongo import tornado.web

class Handler(tornado.web.RequestHandler):

@property def db(self):

System Message: ERROR/3 (<string>, line 25)

Unexpected indentation.
if not hasattr(self, '_db'):
self._db = asyncmongo.Client(pool_id='mydb', host='127.0.0.1', port=27017, maxcached=10, maxconnections=50, dbname='test')

System Message: WARNING/2 (<string>, line 27)

Definition list ends without a blank line; unexpected unindent.

return self._db

@tornado.web.asynchronous def get(self):

System Message: ERROR/3 (<string>, line 31)

Unexpected indentation.
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)

System Message: WARNING/2 (<string>, line 39)

Definition list ends without a blank line; unexpected unindent.

self.render('template', full_name=response['full_name'])

About

Some features are not currently implemented:

  • directly interfacing with indexes, dropping collections
  • retrieving results in batches instead of all at once

System Message: WARNING/2 (<string>, line 48)

Bullet list ends without a blank line; unexpected unindent.

(asyncmongo's nature means that no calls are blocking regardless of the number of results you are retrieving) * tailable cursors #15

Requirements

The following two python libraries are required

Issues

Please report any issues via [github issues](https://github.com/bitly/asyncmongo/issues)

Subscribe to package updates

Last updated May 30th, 2013

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.