pykattis
A CLI tool for solving Kattis problems with python.
Installation
pip install pykattis
Usage
To create a solution for a problem, run:
pykattis create {problem_id}
where problem_id is the Kattis problem ID.
This creates the directory problems/{problem_id} in the current working directory with the files solution.py, an __init__.py file, and downloads the sample input-anwer pairs to a samples.json file.
The solution.py-file is where you will be writing the solution to the problem.
Inside it is a function solve(input_: str) -> str:, which you will fill out with your program as you see fit.
This function is called by the commands kattis run and kattis test.
To simply run the program as a script, run:
pykattis run {problem_id}
and to test it on the sample input-answer pairs defined in samples.json, run:
pykattis test {problem_id}
To upload the solution to Kattis, you can submit the problem's solution.py file through Kattis's web form.
However, this is a temporary solution.
In a future version, you will be able to publish your solution to Kattis directly through pykattis.
If you, for some reason, just want to download a problem's samples, you can run:
pykattis download_samples {problem_id}
It is recommended to use a VCS, like git, to keep track of your solutions.
Metadata
Release files for pykattis 0.0.3
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 |
|---|---|---|---|---|
| pykattis-0.0.3.tar.gz | 5.8 kB | Without provenance | Details for pykattis-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pykattis-0.0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pykattis-0.0.3-py2.py3-none-any.whl |
Total release size: 14.0 kB
Release files / pykattis-0.0.3.tar.gz
| Download URL | pykattis-0.0.3.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4e7ffee1c822e5fdb47664a37ab4d1a2213ed184fb36da5c177f1ec46c71049
|
|
BLAKE2b-256 checksum How to use checksums |
6de844b05c0630ca7544ca0823294af32a54af96297c72fb07b53638ab64b4c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6
|
Release files / pykattis-0.0.3-py2.py3-none-any.whl
| Download URL | pykattis-0.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
10349592e708dd92c0def5e6ff7756c426309025a2a05eeb8e7340b06da343ba
|
|
BLAKE2b-256 checksum How to use checksums |
2d890d58c5a665d0858bfcdb8ad0520255ed608edf45947c2b5b06f662b55542
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6
|
Security for pykattis 0.0.3
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.