SDUOJ_on_shell
这是什么?
This repo is still under construction.
这是一个 python 项目,在命令行上使用 SDUOJ
可以做什么?
- 在终端登录 SDUOJ
- 查看题目列表与题目详情
- 提交代码
- [] 查看提交状态
How to Use?
Install
pip install SDUOJ
Run
- 在终端登录 oj 并查看题目,顺便下载题目的
.md文件python -m SDUOJ -ojd
默认查看用户组里的题单,如果是比赛,调用的是另外几个 api,如需要可以手动修改一下 - 提交代码,并返回结果(分数)
python -m SDUOJ -oju
上传的目标在config.json中指定,该文件由运行-ojd命令得到
How does it work?
- 通过山大 SSO 登录 SDUOJ 并获取 cookie
- 调用 SDUOJ 的 若干 API
一起来完善这个项目
如果你有什么好的想法,欢迎提出 issue 或者 pr
Metadata
Release files for SDUOJ 0.0.2
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 |
|---|---|---|---|---|
| sduoj-0.0.2.tar.gz | 9.0 kB | Without provenance | Details for sduoj-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sduoj-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for sduoj-0.0.2-py3-none-any.whl |
Total release size: 20.5 kB
Release files / sduoj-0.0.2.tar.gz
| Download URL | sduoj-0.0.2.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b3808a4d74b728641b11a1030c5ae962104b44e04e5842255296593d60b33c4
|
|
BLAKE2b-256 checksum How to use checksums |
196a6bc99149c77a0d24925ec75844876d6082babbe37e799b51bf0f63f87806
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.2
|
Release files / sduoj-0.0.2-py3-none-any.whl
| Download URL | sduoj-0.0.2-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41f2845c80d43719e7e07515116a5a20cbe07a6619c0c334325bdd196b4ca526
|
|
BLAKE2b-256 checksum How to use checksums |
71f911e04d52e6ee90f69bc43f78cbac5c3f7931878e7bf36670903ed7ece294
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.2
|
Security for SDUOJ 0.0.2
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.