Skip to main content

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?

  1. 通过山大 SSO 登录 SDUOJ 并获取 cookie
  2. 调用 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)

Source distribution for SDUOJ 0.0.2
File Size Uploaded
sduoj-0.0.2.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for SDUOJ 0.0.2
File Interpreter ABI Platform
sduoj-0.0.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page