Skip to main content

Using SDUOJ on shell

Project description

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

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

sduoj-0.0.2.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

sduoj-0.0.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file sduoj-0.0.2.tar.gz.

File metadata

  • Download URL: sduoj-0.0.2.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for sduoj-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8b3808a4d74b728641b11a1030c5ae962104b44e04e5842255296593d60b33c4
MD5 3029ad952defc0448d787102d377c38a
BLAKE2b-256 196a6bc99149c77a0d24925ec75844876d6082babbe37e799b51bf0f63f87806

See more details on using hashes here.

File details

Details for the file sduoj-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: sduoj-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for sduoj-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 41f2845c80d43719e7e07515116a5a20cbe07a6619c0c334325bdd196b4ca526
MD5 998524fe6e05ae1224c2dd110fdef424
BLAKE2b-256 71f911e04d52e6ee90f69bc43f78cbac5c3f7931878e7bf36670903ed7ece294

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page