Kattis command line tool
Project description
Kattis unofficial command line helper
Inspired by (and works well with) xalanq's codeforce tool
Sample usage
1. Config your template type
First and foremost, download your kattisrc file and put it in your $HOME directory (ie ~/.kattisrc). After that, run
kt config
to configure your code template. This will allow the tool to quickly generate code template for your problem.
2. Generate folder for problem statement and sample intputs and outputs
kt gen <problem_id>
For example, if you want to attempt problem Distinctive Character, the problem ID is distinctivecharacter. From your kattis working folder, type in
kt gen distinctivecharacter
You should be able to see 2 set of sample inputs/outputs generated in a folder called distinctivecharacter
After that, you can cd into the folder and start working on the problem.
3. Test your code
If you've set up your config properly, you should be ready to test whether your code pass sample input and output. Simply run
kt test
And observe the difference ..
Submit file and check result on the terminal
From your current problem folder
kt submit
You should be able to see how many test cases your code has passed so far
Update version of kttool
Check current version of kttool
kt version
If there is a newer version, you can run
kt update
to check.
Installation
pip install --upgrade kttool
Reference
License
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kttool-1.2.5.tar.gz.
File metadata
- Download URL: kttool-1.2.5.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a781db814511f2f546b26c6c31efeb64d1a341a9b20150c46bc6d57d9c4a4a31
|
|
| MD5 |
f2ecdcedd8f671c1931241010111e8eb
|
|
| BLAKE2b-256 |
b2a08331c94b16cc3698a3f3e210a3f465ff4a2c445747c18487265ef7cf5b6f
|
File details
Details for the file kttool-1.2.5-py2.py3-none-any.whl.
File metadata
- Download URL: kttool-1.2.5-py2.py3-none-any.whl
- Upload date:
- Size: 41.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d3136922acb05a68e87053f2a9a47728de5c3bf55270f089c726bfe27d8439f
|
|
| MD5 |
66d1d05d285e0ca6949f5d5e946915d9
|
|
| BLAKE2b-256 |
7fde5562666973bea28f75505c4128100441215695ba8af5459f853b09fbd994
|