Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz1273327 committed May 5, 2022
1 parent 3bf4f9e commit 2274669
Show file tree
Hide file tree
Showing 21 changed files with 17,411 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
run: |
python setup.py sdist bdist_wheel bdist_egg
- name: 'Upload dist'
uses: 'actions/upload-artifact@v2'
with:
name: packages
path: dist/*
- name: Publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run:
twine upload dist/*
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 0.0.1

项目创建
5 changes: 5 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include LICENSE
include README.md
include CHANGELOG.md
include requirements.txt
recursive-include pyhbasecli *.pyx *.pxd *.pxi *.py *.c *.h *.temp *.jinja
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,36 @@
# pyhbasecli

基于thrift2的hbase客户端

+ author: hsz

keywords: hbase,thrift

## 特性

+ 可以连接处理阿里云hbase
+ 使用的是[thrift2版本](https://github.com/apache/hbase/blob/master/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift?spm=a2c6h.12873639.article-detail.6.216d35d1BSozCF&file=hbase.thrift)
+ 支持http方式连接
+ python友好的接口设计

## 安装

```bash
pip install pyhbasecli
```

## 例子

```python
with HBaseCli(
url="http://ld-bp17y8n3j6f45p944-proxy-hbaseue.hbaseue.rds.aliyuncs.com:9190",
headers={"ACCESSKEYID": "root", "ACCESSSIGNATURE": "root"}) as client:
nsinfo = client.show_namespaces()
print(nsinfo)

```

## todo

+ 增加socket方式连接
+ 增加对Mutation的支持
Loading

0 comments on commit 2274669

Please sign in to comment.