kattis-problem-setup
Download the sample data for any problems from Kattis.
Requirements
The project is built in Python 3.
Installation
To install, simply clone the project:
git clone https://github.com/bradendubois/kattis-problem-setup
cd kattis-problem-setup
Usage
To run the project, simply run the main.py either directly, or in Python, with any number of problem IDs provided.
./main.py PROBLEM_1 PROBLEM_1
or
python main.py PROBLEM_1 PROBLEM_2
where PROBLEM would be the ID of a problem.
Example: If there were sample material for the problem Hello World!, where the ID is hello, usage would be:
pythom main.py hello
and output would be:
Parsing: hello
Title: Hello World!
ID: hello
CPU Time Limit: 5 seconds
Memory Limit: 1024 MB
Difficulty: 1.2
Disclaimers
The description of each problem is not downloaded.
Kattis Terms of Service is clear (see 2. License for content); materials cannot be (a) copied or (b) publically displayed. This script gets uninformative information on memory limits / CPU time, etc. but does not represent materials concerning the problem itself. It would be a clear violation of the TOS to copy, or likely facilitate copying, the actual description of each problem.
Can it copy all the problems from Kattis?
It could be easily made to download a description of every problem from Kattis, but for the same reasons as above, it will not be implemented.
Acknowledgements
- Kattis, for hosting fun competitive programming problems.
- Beautiful Soup, still the best choice for web scraping in Python.
Metadata
Release files for kattis-problem-setup 1.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 |
|---|---|---|---|---|
| kattis-problem-setup-1.0.3.tar.gz | 4.0 kB | Without provenance | Details for kattis-problem-setup-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kattis_problem_setup-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for kattis_problem_setup-1.0.3-py3-none-any.whl |
Total release size: 8.5 kB
Release files / kattis-problem-setup-1.0.3.tar.gz
| Download URL | kattis-problem-setup-1.0.3.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2cdd7580eef52e0e223e0d48b9286142166e49962596cce473123288f1ca4f81
|
|
BLAKE2b-256 checksum How to use checksums |
ce9b81e47e8b7bb603e4809e25d383427be478bae97611d079f3383160a0dcef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / kattis_problem_setup-1.0.3-py3-none-any.whl
| Download URL | kattis_problem_setup-1.0.3-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55a1c0b77e7a81d9d93eb9e4ebc3569a9cb25e9ee13a17eb01098307675a129b
|
|
BLAKE2b-256 checksum How to use checksums |
9cf82d18ba701c58e28a3b3859c05978bc42e78717be28bfa0d76f0c504b6ae6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for kattis-problem-setup 1.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.