Skip to main content

Qitianbu command line login tool

Project description

qt-cli

qt-cli 是齐天簿的命令行登录工具,安装后命令名为 qt

当前版本采用 device flow:

  1. 终端发起登录请求
  2. 浏览器打开 https://qt.6-79.cn/cli
  3. 用户在网页端确认本次 CLI 登录
  4. CLI 轮询拿到登录 token

安装

cd qt-cli
python3 -m pip install -e .

使用

qt login
qt profile
qt apps --scope developed
qt app list --scope in-use
qt whoami
qt token
qt oauth --app-id <APP_ID>
qt app oauth --app-id <APP_ID>
qt logout

Reuse In Other CLI Tools

qt can act as a shared authentication broker for other command-line tools.

Read the current account profile:

qt profile --json

Read app lists:

qt apps --scope in-use
qt apps --scope developed
qt apps --scope discover --count 12
qt app list --scope developed

Print the current login token:

qt token

Issue an OAuth authorization code for another Qitianbu app:

qt oauth --app-id R41nXZEwpfl6tw6KYyoEZ4FYST4BXPlF
qt app oauth --app-id R41nXZEwpfl6tw6KYyoEZ4FYST4BXPlF

When there is no local login session, qt oauth and qt app oauth can now fall back to a browser-assisted CLI authorization flow. Use --browser to force that flow even if the local session already exists.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qt_cli-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

qt_cli-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file qt_cli-0.1.0.tar.gz.

File metadata

  • Download URL: qt_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for qt_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 94ec5830928635adbad3cdf3fb1c170e35b2c5e82377405d68f4efeb55d46acd
MD5 1c0022684fe55f4c1921545360c36303
BLAKE2b-256 001879eaf3a891c80259dbe9d4ef3c54bf243471cee8eff20a5f8c2d33fa5bec

See more details on using hashes here.

File details

Details for the file qt_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: qt_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for qt_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 006433a0c5bcb0cbc2ab9346ee513fa50efb425bd6722952d7b61b5115406bb4
MD5 9ed7cad961a1781e43558ac847bbf173
BLAKE2b-256 88025537a419268862e9d76eedf4d5771ec578408e2e94441ca2ff323e3ff8b5

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