Qitianbu command line login tool
Project description
qt-cli
qt-cli 是齐天簿的命令行登录工具,安装后命令名为 qt。
当前版本采用 device flow:
- 终端发起登录请求
- 浏览器打开
https://qt.6-79.cn/cli - 用户在网页端确认本次 CLI 登录
- 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
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
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
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94ec5830928635adbad3cdf3fb1c170e35b2c5e82377405d68f4efeb55d46acd
|
|
| MD5 |
1c0022684fe55f4c1921545360c36303
|
|
| BLAKE2b-256 |
001879eaf3a891c80259dbe9d4ef3c54bf243471cee8eff20a5f8c2d33fa5bec
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
006433a0c5bcb0cbc2ab9346ee513fa50efb425bd6722952d7b61b5115406bb4
|
|
| MD5 |
9ed7cad961a1781e43558ac847bbf173
|
|
| BLAKE2b-256 |
88025537a419268862e9d76eedf4d5771ec578408e2e94441ca2ff323e3ff8b5
|