A connection pool for anything
Project description
pypool
=====
a simple connection pool
expand pypool
~~~~~~~~~~~~~
must be implemented pypool.connection.Connection all method
a hbase extension like this:https://github.com/duanhongyi/hbase
Sample usage
~~~~~~~~~~~~
::
from hbase import Connection
pool = ConnectionPool(size,connection_klass=Connection,**{'host':'127.0.0.1','port':9090,})
with pool.connection() as conn:
//do something
pass
Download
~~~~~~~~
* https://github.com/duanhongyi/pypool
=====
a simple connection pool
expand pypool
~~~~~~~~~~~~~
must be implemented pypool.connection.Connection all method
a hbase extension like this:https://github.com/duanhongyi/hbase
Sample usage
~~~~~~~~~~~~
::
from hbase import Connection
pool = ConnectionPool(size,connection_klass=Connection,**{'host':'127.0.0.1','port':9090,})
with pool.connection() as conn:
//do something
pass
Download
~~~~~~~~
* https://github.com/duanhongyi/pypool
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
poolbase-0.1.4.tar.gz
(3.2 kB
view hashes)
Built Distribution
poolbase-0.1.4-py2.7.egg
(6.2 kB
view hashes)