Tronclass CLI
Tronclass CLI 可以让您使用命令行完成 Tronclass 平台有关的各项工作。
支持的平台:
支持的功能:
- 查看待办事项
- 查看课程列表
- 查看课程内容
- 下载课程资料
- 查看课程作业
- 提交课程作业
安装
Tronclass CLI 使用 Python 开发,推荐使用 pipx 安装,pipx 可以自动建立独立的 Python 环境,不会干扰您本地的其它 Python 开发环境。当然,您也可以选择使用 pip 进行安装。
pipx install tronclass-cli
安装完成后,可以使用 tcc -v 进行测试。
快速开始
首先,您可以添加一个配置文件来指定一些常用信息,如用户名等。配置文件默认位于 ~/.tronclass/config.json,您可以通过修改环境变量 TRONCLASS_CLI_CONFIG_FILE 来指定其它地址。
一个典型的配置文件为:
{
"session": {
"username": "31xxxxxxxxx",
"auth_provider": "zju"
},
"api": {
"api_url": "zju"
}
}
随后,您可以尝试使用 tcc todo 命令查看您的待办事项,第一次使用时需要输入您的密码,密码会被安全地保存至您操作系统的凭据管理器中,后续使用时将不会要求输入密码。您可以使用 tcc -h 查看可用的命令,使用 tcc [command] -h 查看命令的使用方法。
Metadata
Release files for tronclass-cli 0.2.8
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 |
|---|---|---|---|---|
| tronclass-cli-0.2.8.tar.gz | 13.4 kB | Without provenance | Details for tronclass-cli-0.2.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tronclass_cli-0.2.8-py3-none-any.whl | Python 3 | none | any | Details for tronclass_cli-0.2.8-py3-none-any.whl |
Total release size: 34.0 kB
Release files / tronclass-cli-0.2.8.tar.gz
| Download URL | tronclass-cli-0.2.8.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74a03a00df84dfd374e946da0b51fe30f1088463f68cdd08695deee11f1b510e
|
|
BLAKE2b-256 checksum How to use checksums |
c151ccf728d04a615f6b9d0ed349efd327f30ba4728d8822060dd077920d61c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Release files / tronclass_cli-0.2.8-py3-none-any.whl
| Download URL | tronclass_cli-0.2.8-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66bd94546ae7964771182734e4c5dbc5fe1951a83803960945a671c8a4410c2f
|
|
BLAKE2b-256 checksum How to use checksums |
951a981ee15b21f3785f99d2b4618300ee8c12386261f52e396e0fca0f9c9455
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Security for tronclass-cli 0.2.8
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.