Skip to main content

Command-line interface for Tronclass.

Project description

Tronclass CLI

Tronclass CLI 可以让您使用命令行完成 Tronclass 平台有关的各项工作。

支持的平台:

支持的功能:

  • 查看待办事项
  • 查看课程列表
  • 查看课程内容
  • 下载课程资料
  • 查看课程作业
  • *提交课程作业 (WIP)

安装

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 查看命令的使用方法。

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

tronclass-cli-0.1.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

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

tronclass_cli-0.1.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file tronclass-cli-0.1.0.tar.gz.

File metadata

  • Download URL: tronclass-cli-0.1.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for tronclass-cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f6dadf588fa312ba43c4ecae45f9c66a92edb132e42eef9b8eee97babad78a8f
MD5 ce13b7331bb25784596576e278b3da7c
BLAKE2b-256 6e94941c59e372d96cfbf5fcad7a314d476c23573f7f103d1b78a388d43aea7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tronclass_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for tronclass_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e49c9bee6a2753494ca50756aef4bac8e34108257470443a0f79ef5c9ba07f32
MD5 f487f23ac9666021c4cac1f60c5a9866
BLAKE2b-256 e49c5fc9f776e930304be947bbca9fb2563d5111948901fd31ef7e24d3c691d6

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