Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.177.068 Times

AsyncMongo 0.1.2

Company: Jehiah Czebotar
Date Added: December 02, 2013  |  Visits: 322

AsyncMongo

Report Broken Link
Printer Friendly Version


Product Homepage
Download (43 downloads)



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

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Asyncmongoclientpool Mydb Callback Dself Response Connfind Dbname Test Error Full Drespose Full Getself Host Install Maxcached Maxconnections Port Responsesel Return Self Db Selfcurrent User Selfdbusersfind Username Tornadowebasynchronous
Users rating: 0/10

License: Freeware Size: 20.48 KB
USER REVIEWS
More Reviews or Write Review


ASYNCMONGO RELATED
Networking Tools  -  echoping 5.2.0
"echoping" is a small program to test (approximatively) performances of a remote host by sending it TCP "echo" (or other protocol) packets. To install it, see the INSTALL file. Or type "./configure && make && sudo make install" if youre in a...
112.64 KB  
Libraries  -  Test::Resub 1.02
Test::Resub is a lexically scoped subroutine replacement for testing. SYNOPSIS #!/usr/bin/perl use Test::More tests => 4; use Test::Resub qw(resub); { package Somewhere; sub show { my ($class, $message) = @_; return "$class,...
14.34 KB  
Libraries  -  Test::Unit::Runner::XML 0.1
Test::Unit::Runner::XML is a Perl module that can generate XML reports from unit test results. SYNOPSIS use Test::Unit::Runner::XML; mkdir("test_reports"); my $runner = Test::Unit::Runner::XML->new("test-reports"); $runner->start($test);...
3.07 KB  
Libraries  -  Test::Unit::TestCase 0.14
Test::Unit::TestCase is a unit testing framework base class. SYNOPSIS package FooBar; use base qw(Test::Unit::TestCase); sub new { my $self = shift()->SUPER::new(@_); # your state for fixture here return $self; } sub set_up { #...
45.06 KB  
Libraries  -  Test::Unit::Procedural 0.24
Test::Unit::Procedural Perl module contains a procedural style unit testing interface. SYNOPSIS use Test::Unit::Procedural; # your code to be tested goes here sub foo { return 23 }; sub bar { return 42 }; # define tests sub test_foo {...
75.78 KB  
Libraries  -  Chart::EPS_graph::Test 0.01d
SYNOPSIS From the CLI, call as below where /some/dir/ is any directory you have permission to write to. perl -e "use Chart::EPS_graph::Test; print Chart::EPS_graph::Test->full_test(/some/dir);" From anywhere else call... use...
24.58 KB  
Modules  -  Test Yourself 6.x-4.0-alpha4
Test Yourself allow users to test their skills and get feedback quickly.Test Yourself is a Quiz extension and provides an alternative to the default quiz taking logic provided by the Quiz project itself. Test Yourself is different from the normal...
204.8 KB  
Development Editors  -  Blueberry Connection Tester 1.0.0.4
Blueberry Connection Tester is a FREE test tool that allows software developers to efficiently gather information from remote PCs of problems caused by software designed to run on a variety of PC configurations. The modern PC environment is...
327.68 KB  
Modules  -  Ubercart Payflow Link 6.x-1.1
Payflow Link is a payment solution provided by PayPal but maintained separately from Website Payments Standard.It is a hosted solution, meaning customers will be redirected from your checkout review page to the payment page to enter their credit...
10 KB  
Programming  -  PyLRU 1.0.1
A least recently used (LRU) cache for Python. Pylru implements a true LRU cache along with several support classes. The cache is efficient and written in pure Python. It works with Python 2.6+ including the new 3.x series. Basic...
10.24 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB