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.
Metadata
Release files for qt-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qt_cli-0.1.0.tar.gz | 6.0 kB | Without provenance | Details for qt_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qt_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for qt_cli-0.1.0-py3-none-any.whl |
Total release size: 13.1 kB
Release files / qt_cli-0.1.0.tar.gz
| Download URL | qt_cli-0.1.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94ec5830928635adbad3cdf3fb1c170e35b2c5e82377405d68f4efeb55d46acd
|
|
BLAKE2b-256 checksum How to use checksums |
001879eaf3a891c80259dbe9d4ef3c54bf243471cee8eff20a5f8c2d33fa5bec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / qt_cli-0.1.0-py3-none-any.whl
| Download URL | qt_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
006433a0c5bcb0cbc2ab9346ee513fa50efb425bd6722952d7b61b5115406bb4
|
|
BLAKE2b-256 checksum How to use checksums |
88025537a419268862e9d76eedf4d5771ec578408e2e94441ca2ff323e3ff8b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for qt-cli 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.