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, Scan
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'))
table.put(Put(b'row1').add_column(b'cf2', b'qf', b'777'))
result = table.get(Get(b"row1").add_column(b'cf1', b'qf'))
print(result)
scan_result = table.scan(Scan(b"row1").add_family(b'cf1'))
for row in scan_result:
print(row)
Implemented
- Create, Disable, Delete table
- Put
- Get
- DELETE
- Scan
TODOs
- Filters
- More params in the operations.
Project details
Release history Release notifications | RSS feed
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.10.tar.gz
(100.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
hbase_driver-0.0.10-py3-none-any.whl
(147.2 kB
view details)
File details
Details for the file hbase-driver-0.0.10.tar.gz.
File metadata
- Download URL: hbase-driver-0.0.10.tar.gz
- Upload date:
- Size: 100.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
850d070a24b53c0e7a1d59b6d9d98c9eaa9f3017db370c0c783e71f68ee99590
|
|
| MD5 |
8badda02c4d22e0ea7b07bca1d1f42b3
|
|
| BLAKE2b-256 |
56a57f953193ab2214f22f8a9e3c20891379c3f52eb55bfcb9b309e87799694f
|
File details
Details for the file hbase_driver-0.0.10-py3-none-any.whl.
File metadata
- Download URL: hbase_driver-0.0.10-py3-none-any.whl
- Upload date:
- Size: 147.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d84420fa1ea80e8554b49f8b34b1a81d35560e2ac90f5bfced4090ae79133d16
|
|
| MD5 |
6361888f09380931a5820f928d29ff06
|
|
| BLAKE2b-256 |
3a9a0d9b2ebc2bf58b6d2f9413f5b5a3d20d9cdbb30b680ba9dc99b00b3a76c7
|