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

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-0.0.1.tar.gz (151.3 kB view details)

Uploaded Source

Built Distribution

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

kttool-0.0.1-cp37-cp37m-macosx_10_9_x86_64.whl (185.5 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: kttool-0.0.1.tar.gz
  • Upload date:
  • Size: 151.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for kttool-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c5ae24f39776a896cda5dbde0c1325cdc175f84b0fe9525b2583d094b82494b4
MD5 2c321f24b30ab28ad348ce03d80126aa
BLAKE2b-256 3802d02850ba6e326d37b05b07373721f18d7960fd669bba2968621c27360180

See more details on using hashes here.

File details

Details for the file kttool-0.0.1-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: kttool-0.0.1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 185.5 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for kttool-0.0.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8c975c2ed38fb6cf06f5cdbf013ad2c6d1255ddba474a6edd92e2a83526f99c6
MD5 544a7dab7137c8e9564cd60be75184eb
BLAKE2b-256 4848e440aa10a9548b37676a8ab6dec3e34f96b1cc83290e972b05edb5ce7b49

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