happybase

一个开发人员友好的Python库,用于与Apache HBase交互。(A developer-friendly Python library to interact with Apache HBase.)

Github stars Tracking Chart

HappyBase

HappyBase 是一个开发人员友好的 Python 库,可与Apache HBase 进行交互。

HappyBase 设计用于标准 HBase 设置,并为应用程序开发人员提供 Pythonic API以与 HBase 交互。 实际上,HappyBase 使用 Python Thrift 库使用其 Thrift 网关连接到 HBase,该网关包含在标准 HBase 0.9x 版本中。

示例

下面的示例说明了库的基本用法。 用户指南包含更多示例。

import happybase

connection = happybase.Connection('hostname')
table = connection.table('table-name')

table.put(b'row-key', {b'family:qual1': b'value1',
                       b'family:qual2': b'value2'})

row = table.row(b'row-key')
print(row[b'family:qual1'])  # prints 'value1'

for key, data in table.rows([b'row-key-1', b'row-key-2']):
    print(key, data)  # prints row key and data for each row

for key, data in table.scan(row_prefix=b'row'):
    print(key, data)  # prints 'value1' and 'value2'

row = table.delete(b'row-key')

Main metrics

Overview
Name With Ownerpython-happybase/happybase
Primary LanguagePython
Program languagePython (Language Count: 3)
PlatformLinux, Mac, Windows
License:Other
所有者活动
Created At2012-05-20 20:06:10
Pushed At2024-07-23 19:12:41
Last Commit At2024-07-23 21:12:40
Release Count13
Last Release Namev1.2.0 (Posted on )
First Release Namehappybase-0.2 (Posted on 2012-09-18 23:47:57)
用户参与
Stargazers Count608
Watchers Count34
Fork Count162
Commits Count288
Has Issues Enabled
Issues Count209
Issue Open Count25
Pull Requests Count23
Pull Requests Open Count9
Pull Requests Close Count19
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

HappyBase

HappyBase is a developer-friendly Python_ library to interact with Apache
HBase_.

  • Documentation <https://happybase.readthedocs.io/>_ (Read the Docs)
  • Downloads <http://pypi.python.org/pypi/happybase/>_ (PyPI)
  • Source code <https://github.com/wbolster/happybase>_ (Github)

.. _Python: http://python.org/
.. _HBase: http://hbase.apache.org/

.. If you're reading this from the README.rst file in a source tree,
you can generate the HTML documentation by running "make doc" and browsing
to doc/build/html/index.html to see the result.