{"id":16640610,"url":"https://github.com/wgzhao/easybase","last_synced_at":"2025-03-21T15:32:14.968Z","repository":{"id":57424995,"uuid":"60321314","full_name":"wgzhao/easybase","owner":"wgzhao","description":"Developer-friendly Python library to interact with Apache HBase, supports time range scan and multi-versions ","archived":false,"fork":false,"pushed_at":"2023-03-09T09:03:43.000Z","size":231,"stargazers_count":18,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T02:44:36.029Z","etag":null,"topics":["easybase","happybase","hbase","python","thriftpy2","timerange"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wgzhao.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.rst","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-03T05:42:59.000Z","updated_at":"2023-03-09T09:10:58.000Z","dependencies_parsed_at":"2024-10-28T11:11:40.602Z","dependency_job_id":null,"html_url":"https://github.com/wgzhao/easybase","commit_stats":{"total_commits":84,"total_committers":4,"mean_commits":21.0,"dds":0.2142857142857143,"last_synced_commit":"4018ea7284198aedf3bb2c451423910e96434ad7"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgzhao%2Feasybase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgzhao%2Feasybase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgzhao%2Feasybase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgzhao%2Feasybase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wgzhao","download_url":"https://codeload.github.com/wgzhao/easybase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244822725,"owners_count":20516154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["easybase","happybase","hbase","python","thriftpy2","timerange"],"created_at":"2024-10-12T07:24:21.727Z","updated_at":"2025-03-21T15:32:14.605Z","avatar_url":"https://github.com/wgzhao.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"EasyBase\n========\n\n.. image:: https://github.com/wgzhao/easybase/actions/workflows/python-package.yml/badge.svg\n    :target: https://github.com/wgzhao/easybase\n\n.. image:: https://img.shields.io/pypi/dm/easybase.svg\n    :target: https://pypi.org/project/easybase/\n\n.. image:: https://img.shields.io/pypi/v/easybase.svg\n    :target: https://pypi.org/project/easybase/\n\n.. image:: https://img.shields.io/pypi/pyversions/easybase.svg\n    :target: https://pypi.org/project/easybase/\n\n.. image:: https://img.shields.io/pypi/implementation/easybase.svg\n    :target: https://pypi.org/project/easybase/\n\n\n**EasyBase** is a developer-friendly Python library to interact with\n`Apache HBase \u003chttps://hbase.apache.org\u003e`__ . The original source code\nforked from `HappyBase \u003chttps://github.com/wbolster/happybase\u003e`__.\n\n\nFeature highlight\n=================\n\n-  easy using\n\n-  support HBase Thrift 2 protocol(HBase Thrift 1 is NO longer supported)\n\n-  using `thriftpy2 \u003chttp://github.com/thriftpy/thriftpy2\u003e`__ instead of\n   old thriftpy\n\n\nInstallation\n============\n\n.. code:: shell\n\n   pip install easybase\n\n\nUsage\n=====\n\n\nConnect\n-------\n\n.. code:: python\n\n   import easybase\n   host, port = 'localhost', 9000\n   tbl = 'test1'\n   conn = easybase.Connection(host=host, port=port)\n   table = conn.table(tbl)\n   rs = conn.scan(limit=10)\n   for row in rs:\n     print(row)\n\n\nCreate Table\n------------\n\n.. code:: python\n\n   table_def = {'cf1':dict(),\n                'cf2':{'max_versions':2000}}\n   conn.create_table('test1', table_def)\n\n\nWrite row to table\n------------------\n\n.. code:: python\n\n   puts = {'cf1:c1': 'v1',\n           'cf1:c2': 'v2'\n          'cf2:c2': 'v3'}\n   tbl = conn.table('test1')\n   tbl.put(row='rk1', puts)\n\n\nGet row from table\n------------------\n\n.. code:: python\n\n   rk = 'rk1'\n   tbl = conn.table('test1')\n   rs = tbl.row(rk)\n\n\nScan rows \n----------\n\n.. code:: python\n\n   tbl = conn.table('test1')\n   scanner = tbl.scan(row_start='rk_0001', row_stop='rk_0100')\n   for row in scanner:\n     print(row)\n\nGet all namespace\n------------------\n\n.. code:: python\n\n   for ns in conn.list_namespaces():\n        print(ns)\n\nYou can get detail in\n`DemoClient.py \u003chttps://github.com/wgzhao/easybase/blob/master/DemoClient.py\u003e`__\n\n\nLicense\n=================\nMIT License   `\u003chttp://www.opensource.org/licenses/MIT\u003e`_. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgzhao%2Feasybase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwgzhao%2Feasybase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgzhao%2Feasybase/lists"}