Skip to main content

Kattis command line tool

Project description

Kattis unofficial command line helper

pypi wheel license download

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

MIT License

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

kttool-1.1.1.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kttool-1.1.1-py2.py3-none-any.whl (34.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file kttool-1.1.1.tar.gz.

File metadata

  • Download URL: kttool-1.1.1.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.12

File hashes

Hashes for kttool-1.1.1.tar.gz
Algorithm Hash digest
SHA256 c14d92e2f7f48bfbda3063222afc75f157313038e084f7b47acaec7726dcb07a
MD5 2f5b99287573bbcd7cd974544f88bbb7
BLAKE2b-256 6c594dbc93d14e36fabb96e73d5048dc9becace53f18424c82adbba1baf070b3

See more details on using hashes here.

File details

Details for the file kttool-1.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: kttool-1.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 34.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.12

File hashes

Hashes for kttool-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 882f622cffb3830dc2154d1ab8e924d539f065c636b93554ee24b89e9acf059d
MD5 0aacb865eec6a9add08c0c71443e1a32
BLAKE2b-256 41ff794edc1c854c260b9a73c5df1dd7dcd97733984ef7e548fa462b85af9083

See more details on using hashes here.

Supported by

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