#NEWLINE# @ classmethod #NEWLINE# def get_connection_pool( self , pool_id , * args , **kwargs ) : #NEWLINE# #INDENT# "get a connection pool, transparently creating it if it doesn't already exist\n\n        :Parameters:\n            - `pool_id`: unique id for a connection pool\n        " #NEWLINE# assert isinstance ( pool_id , ( str , unicode ) ) #NEWLINE# if ( not hasattr ( self , '_pools' ) ) : #NEWLINE# #INDENT# self . _pools = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# if ( pool_id not in self . _pools ) : #NEWLINE# #INDENT# self . _pools [ pool_id ] = ConnectionPool ( * args , ** kwargs ) #NEWLINE# #UNINDENT# return self . _pools [ pool_id ]