@classmethod
    def get_connection_pool(self, pool_id, *args, **kwargs):
        assert isinstance(pool_id, (str, unicode))
        if not hasattr(self, '_pools'):
            self._pools = {}
        if pool_id not in self._pools:
            self._pools[pool_id] = ConnectionPool(*args, **kwargs)
        # logging.debug("%s: _connections = %d", pool_id, self._pools[pool_id]._connections)
        return self._pools[pool_id]
get a connection pool, transparently creating it if it doesn't already exist
dataset/ETHPy150Open bitly/asyncmongo/asyncmongo/pool.py/ConnectionPools.get_connection_pool