KetaDB Client
Project description
ketadb 工具
示例
ketacli login --name <username> --endpoint http://localhost:9000 --token <yourtoken>
ketacli logout
# 枚举所有仪表盘
ketacli list dashboard --fields id,app,updateTime --sort updateTime --order asc --prefix test
# 描述资源的字段
ketacli describe dashboard
# 插入一条数据
ketacli insert --repo test01 '[{"a":1}]'
# 查询一条数据
ketacli search 'repo=test01 | limit 10'
# 指定返回格式,支持json、csv、html、latex等
ketacli search 'repo=test01 | limit 10' --format json
# 创建一个资源
ketacli create repos test_repo --file file.json
自动补全
在你的 .bashrc / .zshrc 中加入以下语句
#zshrc 中不存在的话也需要添加
autoload -U +X bashcompinit && bashcompinit
eval "$(register-python-argcomplete ketacli)"
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
ketacli-0.11.tar.gz
(11.9 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
ketacli-0.11-py3-none-any.whl
(14.8 kB
view details)
File details
Details for the file ketacli-0.11.tar.gz.
File metadata
- Download URL: ketacli-0.11.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88b74dc90f7aec668d9273080044eaa888d8613352d60e11437f0aa52d2a4cf0
|
|
| MD5 |
05a469d5133fd627629d40aa429f1f5d
|
|
| BLAKE2b-256 |
e5f6808c28bac483300230ff121d2c94c90d3a00be480afd8c4c0de209f8c24a
|
File details
Details for the file ketacli-0.11-py3-none-any.whl.
File metadata
- Download URL: ketacli-0.11-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bddd30036661709000fbb7eb0450c2ab9d3d2be5d8a9e537cd5075aec10fea0e
|
|
| MD5 |
edcfa90b68a26c664aee381d57e79362
|
|
| BLAKE2b-256 |
1cccaf7edbf4afcd57476729b3d4a0ae87ed73ed1212e3c2a91a6e5f194f57d1
|