{"id":23113,"library":"happybase","title":"HappyBase","description":"HappyBase is a developer-friendly Python library to interact with Apache HBase, providing a Thrift-based client. Current version is 1.3.0, released in 2023. Release cadence is low, with occasional updates.","status":"active","version":"1.3.0","language":"python","source_language":"en","source_url":"https://github.com/wbolster/happybase","tags":["hbase","thrift","nosql","database"],"install":[{"cmd":"pip install happybase","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"HappyBase uses Thrift for HBase communication","package":"thrift","optional":false}],"imports":[{"note":"HappyBase exports Connection at the package level; import from happybase, not as a submodule.","wrong":"import happybase.Connection","symbol":"Connection","correct":"from happybase import Connection"}],"quickstart":{"code":"import os\nfrom happybase import Connection\n\nhost = os.environ.get('HBASE_HOST', 'localhost')\nport = int(os.environ.get('HBASE_PORT', 9090))\nconnection = Connection(host=host, port=port)\nprint(connection.tables())\nconnection.close()","lang":"python","description":"Connects to HBase Thrift server and lists tables."},"warnings":[{"fix":"Upgrade to Python 3.6+ and install thrift>=0.10.","message":"HappyBase 1.0+ dropped support for Python 2.7 and older Thrift versions.","severity":"breaking","affected_versions":"<1.0.0"},{"fix":"Wrap calls in try-except and recreate the connection on failure.","message":"HappyBase Connection does not automatically reconnect. If the Thrift server restarts, you must create a new Connection object.","severity":"goto","affected_versions":"all"},{"fix":"Use Table.scan() with row_prefix instead of batch(walk=True).","message":"The 'batch' method's 'walk' parameter is deprecated and will be removed.","severity":"deprecated","affected_versions":">=1.2.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"pip install thrift","cause":"The thrift library is not installed.","error":"ModuleNotFoundError: No module named 'thrift'"},{"fix":"Start the Thrift server with 'hbase thrift start' or check host/port.","cause":"HBase Thrift server is not running or not reachable.","error":"TTransportException: Could not connect to localhost:9090"},{"fix":"Use 'host' and 'port' via a tuple: Connection(('localhost', 9090)) or upgrade to >=0.9.","cause":"Using an older version of HappyBase that doesn't accept 'port' directly.","error":"TypeError: __init__() got an unexpected keyword argument 'port'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}