Did I find the right examples for you? yes no

All Samples(24)  |  Call(21)  |  Derive(0)  |  Import(3)
Connection to an HBase Thrift server.

The `host` and `port` parameters specify the host name and TCP port
of the HBase Thrift server to connect to. If omitted or ``None``,
a connection to the default port on ``localhost`` is made. If
specifed, the `timeout` parameter specifies the socket timeout in
milliseconds.

If `autoconnect` is `True` (the default) the connection is made directly,
otherwise :py:meth:`Connection.open` must be called explicitly before first(more...)

src/s/o/socorro-HEAD/socorro/external/happybase/connection_context.py   socorro(Download)
    def connection(self, name=None):
        return HBaseConnection(
            self.config,
            happybase.Connection(
                host=self.config.hbase_host,

src/l/i/link-0.2.4/link/wrappers/nosqlwrappers.py   link(Download)
        """
        import happybase 
        return happybase.Connection(self.host,
                                         port=self.port,compat=self.version)
 

src/l/i/link-HEAD/link/wrappers/nosqlwrappers.py   link(Download)
        """
        import happybase 
        return happybase.Connection(self.host,
                                         port=self.port,compat=self.version)
 

src/m/r/mrlin-HEAD/mrlin_utils.py   mrlin(Download)
	def __init__(self, host, server_port): 
		self.host = host
		self.server_port = server_port
		self.connection = happybase.Connection(host=self.host, port=self.server_port)
 

src/u/s/usn-app-HEAD/serving-layer.py   usn-app(Download)
	def __init__(self, host): 
		self.host = host
		self.server_port = HBASE_THRIFT_PORT
		self.connection = happybase.Connection(host=self.host, 
port=self.server_port)

src/s/q/SqlHBase-0.4/sqlhbase/borgs/hbase.py   SqlHBase(Download)
__author__ = 'zeph'
 
from happybase import Connection
from sqlhbase.borgs import *
 
    def link(self, ns):
        if ns not in self._db:
            try:
                self._db[ns] = Connection(CLUSTER_HOST, table_prefix=ns)
            except Exception, e:

src/s/q/SqlHBase-0.4/sqlhbase/intake.py   SqlHBase(Download)
    def connect(self):
        if self._namespace == "": raise RuntimeError("Hey! U shall select a DB first")
        self._connection = happybase.Connection(__hbase__, table_prefix="_"+self._namespace)
        self._connection.open()
        if __createtable__ not in self._connection.tables():
    def get_namespaces(self):
        connection = happybase.Connection(__hbase__)
        connection.open()
        n_spaces = []
        for t in connection.tables():
    def cls_parser(self):
        return HBaseParse(
            happybase.Connection(__hbase__, table_prefix=self._namespace),
            self._create_tbl,
            self._values_tbl,

src/h/a/happybase-0.8/tests/test_api.py   happybase(Download)
)
 
from happybase import Connection, ConnectionPool, NoConnectionsAvailable
 
HAPPYBASE_HOST = os.environ.get('HAPPYBASE_HOST')
def setup_module():
    global connection, table
    connection = Connection(**connection_kwargs)
 
    assert_is_not_none(connection)
def test_connection_compat():
    with assert_raises(ValueError):
        Connection(compat='0.1.invalid.version')
 
 
def test_timeout_arg():
    Connection(
        timeout=5000,
    assert_equal(connection.table('foobar', use_prefix=False).name, 'foobar')
 
    c = Connection(autoconnect=False)
    assert_equal('foo', c._table_name('foo'))
 

src/h/a/happybase-HEAD/tests/test_api.py   happybase(Download)
)
 
from happybase import Connection, ConnectionPool, NoConnectionsAvailable
 
HAPPYBASE_HOST = os.environ.get('HAPPYBASE_HOST')
def setup_module():
    global connection, table
    connection = Connection(**connection_kwargs)
 
    assert_is_not_none(connection)
def test_connection_compat():
    with assert_raises(ValueError):
        Connection(compat='0.1.invalid.version')
 
 
def test_timeout_arg():
    Connection(
        timeout=5000,
    assert_equal(connection.table('foobar', use_prefix=False).name, 'foobar')
 
    c = Connection(autoconnect=False)
    assert_equal('foo', c._table_name('foo'))