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.

Installation (pip)

pip3 install hbase-driver

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.7.tar.gz (99.0 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.7-py3-none-any.whl (145.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hbase-driver-0.0.7.tar.gz
  • Upload date:
  • Size: 99.0 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.7.tar.gz
Algorithm Hash digest
SHA256 174e17124003dea8afb38dbaa76ce63fc43ec50fbdbccf0b330027be9147f64e
MD5 4cf6e9418138d70f7e73076babe6b056
BLAKE2b-256 5641767e0f59fb26dcf8d5797ce230f8d6f96cce1c08ed7feaf421af3e52665b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hbase_driver-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 145.8 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3463c391f473f313982d29ef94898adfe44022dacbb4d67b2e6112fcfd465211
MD5 ca9227ccf23ae9148431e595814e915c
BLAKE2b-256 5a28062cb51199aaf7f8ee11d60d50ba82de620882997fc2b76e293ce489a4a1

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