{"id":17866518,"url":"https://github.com/photonquantum/pysjtu","last_synced_at":"2025-09-07T16:47:16.268Z","repository":{"id":38962209,"uuid":"231589949","full_name":"PhotonQuantum/pysjtu","owner":"PhotonQuantum","description":"The Python iSJTU client for Humans.","archived":false,"fork":false,"pushed_at":"2024-06-04T13:12:33.000Z","size":9105,"stargazers_count":47,"open_issues_count":3,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-31T22:52:54.869Z","etag":null,"topics":["course-registration","course-select-system","curriculum","gpa","json","sjtu"],"latest_commit_sha":null,"homepage":"https://pysjtu.readthedocs.io/en/latest/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PhotonQuantum.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-01-03T13:01:31.000Z","updated_at":"2025-06-06T17:01:24.000Z","dependencies_parsed_at":"2025-05-06T23:16:57.606Z","dependency_job_id":"9dcc1a1a-af39-4d05-91e1-d33bcd15f825","html_url":"https://github.com/PhotonQuantum/pysjtu","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/PhotonQuantum/pysjtu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhotonQuantum%2Fpysjtu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhotonQuantum%2Fpysjtu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhotonQuantum%2Fpysjtu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhotonQuantum%2Fpysjtu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PhotonQuantum","download_url":"https://codeload.github.com/PhotonQuantum/pysjtu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhotonQuantum%2Fpysjtu/sbom","scorecard":{"id":109849,"data":{"date":"2025-08-11","repo":{"name":"github.com/PhotonQuantum/pysjtu","commit":"570889f73ab783fb85b8d6a923ae5a19dafb3188"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build_n_publish.yml:1","Warn: no topLevel permission defined: .github/workflows/pysjtu.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_n_publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/PhotonQuantum/pysjtu/build_n_publish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build_n_publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/PhotonQuantum/pysjtu/build_n_publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pysjtu.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/PhotonQuantum/pysjtu/pysjtu.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pysjtu.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/PhotonQuantum/pysjtu/pysjtu.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pysjtu.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/PhotonQuantum/pysjtu/pysjtu.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":0,"reason":"23 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: GHSA-vqfr-h8mv-ghfj","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: GHSA-gmj6-6f8f-6699","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h","Warn: Project is vulnerable to: PYSEC-2021-427 / GHSA-f865-m6cq-j9vx","Warn: Project is vulnerable to: GHSA-8qvm-5x2c-j2w7","Warn: Project is vulnerable to: PYSEC-2023-117 / GHSA-mrwq-x4v8-fh7p","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: PYSEC-2025-49 / GHSA-5rjg-fvgr-3xxf","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f","Warn: Project is vulnerable to: GHSA-f9vj-2wh5-fj8j","Warn: Project is vulnerable to: GHSA-q34m-jh98-gwm2","Warn: Project is vulnerable to: GHSA-jfmj-5v4g-7637"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T11:54:25.948Z","repository_id":38962209,"created_at":"2025-08-15T11:54:25.949Z","updated_at":"2025-08-15T11:54:25.949Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274065651,"owners_count":25216443,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["course-registration","course-select-system","curriculum","gpa","json","sjtu"],"created_at":"2024-10-28T09:37:22.179Z","updated_at":"2025-09-07T16:47:16.227Z","avatar_url":"https://github.com/PhotonQuantum.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cstrong\u003ePySJTU\u003c/strong\u003e \u003cem\u003e- The Python iSJTU client for Humans.\u003c/em\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/PhotonQuantum/pysjtu\"\u003e\n    \u003cimg src=\"https://github.com/PhotonQuantum/pysjtu/workflows/PySJTU%20Tests/badge.svg\"\n\u003c/a\u003e\n\u003ca href=\"https://badge.fury.io/py/pysjtu\"\u003e\n    \u003cimg src=\"https://badge.fury.io/py/pysjtu.svg\" alt=\"PyPI version\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca href='https://pysjtu.readthedocs.io/en/latest/?badge=latest'\u003e\n    \u003cimg src='https://readthedocs.org/projects/pysjtu/badge/?version=latest' alt='Documentation Status' /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.codacy.com/manual/PhotonQuantum/pysjtu?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=PhotonQuantum/pysjtu\u0026amp;utm_campaign=Badge_Coverage\"\u003e\n    \u003cimg src=\"https://api.codacy.com/project/badge/Coverage/4961a9a6c817419fae7b7b567b8e1367\"/\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.codacy.com/manual/PhotonQuantum/pysjtu?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=PhotonQuantum/pysjtu\u0026amp;utm_campaign=Badge_Grade\"\u003e\n    \u003cimg src=\"https://api.codacy.com/project/badge/Grade/4961a9a6c817419fae7b7b567b8e1367\"/\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n![screenshot](docs/images/pysjtu.png)\n\n---\n\n```python\n\u003e\u003e\u003e import pysjtu\n\u003e\u003e\u003e c = pysjtu.create_client(username=\"FeiLin\", password=\"WHISPERS\")\n\u003e\u003e\u003e chemistry = c.schedule(year=2019, term=0).filter(\"大学化学\")\n\u003e\u003e\u003e chemistry[0].teacher_name\n['麦亦勇']\n\u003e\u003e\u003e calculus_exam = c.exam(year=2019, term=0).filter(course_id=\"MA248\")\n\u003e\u003e\u003e calculus_exam[0].date\ndatetime.date(2019, 11, 6)\n```\n\nAnd, to persist your session...\n\n```python\n\u003e\u003e\u003e import pysjtu\n\u003e\u003e\u003e session = pysjtu.Session()\n\u003e\u003e\u003e session.login(\"FeiLin\", \"WHISPERS\")\n\u003e\u003e\u003e session.dump(\"lin_fei.session\")\n\n\u003e\u003e\u003e session = pysjtu.Session()\n\u003e\u003e\u003e session.load(\"lin_fei.session\")\n\u003e\u003e\u003e pysjtu.Client(session).student_id\n519027910001\n```\n\n## Features\n\nPySJTU allows you to manipulate [iSJTU](https://i.sjtu.edu.cn) APIs easily.\n\nYou don't need to construct queries on your own, or guessing the meaning of poorly named variables (to name a few, `kch_id`, `rwzxs`) any more. \nNow `course.name` `course.hour_total` is enough!\n\nMain features of PySJTU:\n\n- A friendly API with understandable attribute names.\n- Easy session persistence.\n- Robust captcha recognition using ResNet.\n- 80% iSJTU APIs covered. (Course selection APIs included.)\n- Fully type annotated.\n- 99% test coverage.\n\n## Installation\n\nInstall with pip:\n\n```shell script\n$ pip install pysjtu[ocr]\n```\n\nPySJTU requires Python 3.8+.\n\n## Built With\n\n- [HTTPX](https://www.python-httpx.org/) - A next generation HTTP client for Python.\n- [marshmallow](https://github.com/marshmallow-code/marshmallow) - An ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.\n- [ONNX Runtime](https://github.com/microsoft/onnxruntime) - A performance-focused complete scoring engine for Open Neural Network Exchange (ONNX) models.\n- [NumPy](https://numpy.org/) - The fundamental package for scientific computing with Python.\n- [Pillow](https://python-pillow.org/) - The friendly PIL fork.\n\n## License\n\nThis project is licensed under GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details.\n\n\u003cp align=\"center\"\u003e\u0026mdash;💖\u0026mdash;\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003ci\u003eBuilt with love by LightQuantum\u003c/i\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphotonquantum%2Fpysjtu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphotonquantum%2Fpysjtu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphotonquantum%2Fpysjtu/lists"}