Skip to main content

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

This version

0.13

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.13.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ketacli-0.13-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file ketacli-0.13.tar.gz.

File metadata

  • Download URL: ketacli-0.13.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for ketacli-0.13.tar.gz
Algorithm Hash digest
SHA256 33b4817f22ffcf982f5917b4c3584c4f9a403394655c031a6484b32a980b22d4
MD5 f0d1320d97a8ddc039eea72951b26936
BLAKE2b-256 fad9d9e3fa385dfa4744d502232c6f3e5bd96719bfe81bbdac1f7c81625d8979

See more details on using hashes here.

File details

Details for the file ketacli-0.13-py3-none-any.whl.

File metadata

  • Download URL: ketacli-0.13-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for ketacli-0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 a0cd3673e7cd93980e0641dbefa18a4e581a24357962a57952ba15518ef0c962
MD5 dfec935da445ad7fb4aa12ff4ba113f1
BLAKE2b-256 60f68dc58a1bba9b5fcae2ecb8ecf71aea7cebf2c5abcf092ec19507d9068ddd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page