-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bf4f9e
commit 2274669
Showing
21 changed files
with
17,411 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 0.0.1 | ||
|
||
项目创建 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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的支持 |
Oops, something went wrong.