Updated Kattis API wrapper
Project description
autokattis
Updated Kattis API wrapper as of May 2023 after the major UI/UX change.
Setup
Simply install it as a Python package.
$ pip install autokattis
Use Cases
Login
Construct a Kattis
object that takes in the username and the password.
from autokattis import Kattis
kt = Kattis('username', 'password')
where 'username'
is your Kattis username/email and 'password'
is your Kattis account password. Both should be provided as Python strings.
Problem-specific
kt.problems() # problems you have solved so far
kt.problems(show_partial=False) # exclude partial submissions
kt.problems(*[True]*4) # literally all problems on Kattis
kt.list_unsolved() # let's grind!
kt.plot_problems() # plot the points distribution
kt.plot_problems(filepath='plot.png') # save to a filepath
kt.plot_problems(show_partial=False) # plot fully solved submissions
kt.problem('2048') # fetch info about a problem
kt.problem('2048', 'abinitio', 'dasort') # fetch multiple in one
User-specific
kt.stats() # your best submission for each problem
kt.stats('Java') # all your Java submissions
kt.stats('Python3', 'Cpp') # multiple languages
kt.suggest() # what's the next problem for me?
Ranklist
kt.ranklist() # people around you
kt.ranklist(country='Singapore') # country leaderboard
kt.ranklist(country='SGP') # use alpha-3 code instead
kt.ranklist(university='National University of Singapore') # university leaderboard
kt.ranklist(university='nus.edu.sg') # use university domain instead
Useful References
-
Old UI Kattis API wrapper: https://github.com/terror/kattis-api
Most of the work in
autokattis
is heavily inspired and motivated by this repository. -
Kattis official CLI tool: https://github.com/Kattis/kattis-cli
Since Kattis has provided an official tool to automate submissions, there won't be such feature in
autokattis
.
Contributing
asdf
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for autokattis-1.4.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f659b577813877850882298432793bb016a467becb7a0bcde9543866ba4dceb |
|
MD5 | 9d7f3dbba1378cce707b86816dc3e243 |
|
BLAKE2b-256 | 7350a46d5b90f991c50c78de57214a794c6b952b90114e69ae01a4559cf3c302 |