Skip to main content

No project description provided

Project description

hbase-driver

Native Hbase driver in Python. (No thrift)

Introduction

  • written in pure Python
  • native HBase protocol support (HBase 2.X+)
  • Support both admin operations and regionserver calls.

Get Started

from hbasedriver.client import Client
from hbasedriver.operations import Put, Get
from hbasedriver.exceptions.RemoteException import TableExistsException

# lets say your hbase instance runs on 127.0.0.1 (zk quorum address)
client = Client(["127.0.0.1"])
try:
    client.create_table("", "mytable", ['cf1', 'cf2'])
except TableExistsException:
    pass
table = client.get_table("", "mytable")
table.put(Put(b'row1').add_column(b'cf1', b'qf', b'666'))
result = table.get(Get(b"row1").add_column(b'cf1', b'qf'))
print(result)

Implemented

  • Create, Disable, Delete table
  • Put
  • Get
  • DELETE

TODOs

  • Scan
  • Filters

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hbase-driver-0.0.5.tar.gz (98.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hbase_driver-0.0.5-py3-none-any.whl (145.4 kB view details)

Uploaded Python 3

File details

Details for the file hbase-driver-0.0.5.tar.gz.

File metadata

  • Download URL: hbase-driver-0.0.5.tar.gz
  • Upload date:
  • Size: 98.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for hbase-driver-0.0.5.tar.gz
Algorithm Hash digest
SHA256 881f9cf5f6e1c07fce48543df8742b3e8bcee2ff786eeffd4afc929df0a9e679
MD5 ad4635a3321ff4b7ac719f56e9296c9c
BLAKE2b-256 f1f010a551fd129b75ea7ec107b6f47c96a7a12b257f1165c8d09c16038afc70

See more details on using hashes here.

File details

Details for the file hbase_driver-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: hbase_driver-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 145.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for hbase_driver-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 adaeaf84a1b22d600f202ac17bd9e4af6f0f05f93e4faface9fb57783f9fffa8
MD5 38d4e8551b4fe2e926dffdd5429785b0
BLAKE2b-256 9ba46c43053d896d62bceace4932d534a38c1022bbbcef353c30268996c4fdc5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page