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.9.tar.gz
(11.2 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.9-py3-none-any.whl
(14.0 kB
view details)
File details
Details for the file ketacli-0.9.tar.gz.
File metadata
- Download URL: ketacli-0.9.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e297110d22cf736b396eb0e6c76ede5633f48302da8b370025d8faca8d109aed
|
|
| MD5 |
75a2aa3fde7965bac701965daa33e976
|
|
| BLAKE2b-256 |
a9f4d17557b1ae241bb7d49f310e2d6dca5c0bc3fae2f46dd05d76b0ac740d16
|
File details
Details for the file ketacli-0.9-py3-none-any.whl.
File metadata
- Download URL: ketacli-0.9-py3-none-any.whl
- Upload date:
- Size: 14.0 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 |
da4a4b7c76d1ec3fdaf65fc013dc776bab5c880a37fad6a14d3717c1b4a64125
|
|
| MD5 |
1bc207c3e8fae952a427ca9ed204ebe5
|
|
| BLAKE2b-256 |
dadd2d819e0d7cbe106a72b22173633adfe62e9f6bf65651908263ecf2dbdd58
|