{"id":27298669,"url":"https://github.com/haoyang-graphics/tronclass-cli","last_synced_at":"2025-04-12T00:37:29.209Z","repository":{"id":62585296,"uuid":"313302265","full_name":"haoyang-graphics/tronclass-cli","owner":"haoyang-graphics","description":"View the to-do list, submit your homework, and achieve more in your terminal!","archived":false,"fork":false,"pushed_at":"2021-05-15T12:27:33.000Z","size":111,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T11:17:54.016Z","etag":null,"topics":["cli","cli-app","python","python3","tronclass"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haoyang-graphics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-16T12:55:45.000Z","updated_at":"2024-12-23T02:33:53.000Z","dependencies_parsed_at":"2022-11-03T22:02:37.312Z","dependency_job_id":null,"html_url":"https://github.com/haoyang-graphics/tronclass-cli","commit_stats":null,"previous_names":["howyoungzhou/tronclass-cli"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haoyang-graphics%2Ftronclass-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haoyang-graphics%2Ftronclass-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haoyang-graphics%2Ftronclass-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haoyang-graphics%2Ftronclass-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haoyang-graphics","download_url":"https://codeload.github.com/haoyang-graphics/tronclass-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501986,"owners_count":21114681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cli-app","python","python3","tronclass"],"created_at":"2025-04-12T00:37:28.639Z","updated_at":"2025-04-12T00:37:29.200Z","avatar_url":"https://github.com/haoyang-graphics.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tronclass CLI\n\n[![Upload Python Package](https://github.com/HowyoungZhou/tronclass-cli/actions/workflows/python-publish.yml/badge.svg)](https://github.com/HowyoungZhou/tronclass-cli/actions/workflows/python-publish.yml) [![PyPI version](https://badge.fury.io/py/tronclass-cli.svg)](https://pypi.org/project/tronclass-cli/)\n\nTronclass CLI 可以让您使用命令行完成 Tronclass 平台有关的各项工作。\n\n支持的平台：\n\n- [学在浙大](http://courses.zju.edu.cn/)\n\n支持的功能：\n\n- 查看待办事项\n- 查看课程列表\n- 查看课程内容\n- 下载课程资料\n- 查看课程作业\n- 提交课程作业\n\n## 安装\n\nTronclass CLI 使用 Python 开发，推荐使用 [pipx](https://github.com/pipxproject/pipx#install-pipx) 安装，pipx 可以自动建立独立的 Python 环境，不会干扰您本地的其它 Python 开发环境。当然，您也可以选择使用 `pip` 进行安装。\n\n```\npipx install tronclass-cli\n```\n\n安装完成后，可以使用 `tcc -v` 进行测试。\n\n## 快速开始\n\n首先，您可以添加一个配置文件来指定一些常用信息，如用户名等。配置文件默认位于 `~/.tronclass/config.json`，您可以通过修改环境变量 `TRONCLASS_CLI_CONFIG_FILE` 来指定其它地址。\n\n一个典型的配置文件为：\n\n```json\n{\n    \"session\": {\n        \"username\": \"31xxxxxxxxx\",\n        \"auth_provider\": \"zju\"\n    },\n    \"api\": {\n        \"api_url\": \"zju\"\n    }\n}\n```\n\n随后，您可以尝试使用 `tcc todo` 命令查看您的待办事项，第一次使用时需要输入您的密码，密码会被安全地保存至您操作系统的凭据管理器中，后续使用时将不会要求输入密码。您可以使用 `tcc -h` 查看可用的命令，使用 `tcc [command] -h` 查看命令的使用方法。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaoyang-graphics%2Ftronclass-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaoyang-graphics%2Ftronclass-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaoyang-graphics%2Ftronclass-cli/lists"}