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

# Below step is for linux only, skip this if gcc, g++, python3-dev etc have been installed
sudo apt-get install build-essential python3-dev

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

Uploaded Source

Built Distributions

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

kttool-0.0.6-cp38-cp38-macosx_10_9_x86_64.whl (206.4 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

kttool-0.0.6-cp37-cp37m-macosx_10_9_x86_64.whl (218.6 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

kttool-0.0.6-cp36-cp36m-macosx_10_9_x86_64.whl (230.0 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: kttool-0.0.6.tar.gz
  • Upload date:
  • Size: 161.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/33.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for kttool-0.0.6.tar.gz
Algorithm Hash digest
SHA256 a4cbe86c801ff5fe306f463cf6605bcfb503c94f9d8156c6c323b96677f7a516
MD5 08ee4b3f6ad575773ef32446041a551e
BLAKE2b-256 544f3cffca50749e6178cd27fdb6cef949112fb9e915cee18052bcf342a46ee5

See more details on using hashes here.

File details

Details for the file kttool-0.0.6-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: kttool-0.0.6-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 206.4 kB
  • Tags: CPython 3.8, 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/33.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for kttool-0.0.6-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b33d29e8b40ec0b69ff0e41dac2bb08bbd4e2ace8d445265b6343e7ef355c352
MD5 2b4e0dfe06d59bfc369057c7ebd2e8c1
BLAKE2b-256 bc7f46e54c158b71ead6af6a2520aece01b7360872c174852d56ef44a31c3a2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kttool-0.0.6-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 218.6 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/33.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for kttool-0.0.6-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f34cce4877e51744f9d162b63b11e257cacb737b31d2add1e83fe684ed4a5d21
MD5 3af5a7c0ce72d0598bb4abd72f0a1e38
BLAKE2b-256 990cf2c3a1dca2fe07a0f2cf536d472ebd27189175e6d53902ea3aa7167baf48

See more details on using hashes here.

File details

Details for the file kttool-0.0.6-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: kttool-0.0.6-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 230.0 kB
  • Tags: CPython 3.6m, 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/33.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for kttool-0.0.6-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5f5bdb40b04411e0a1c1143f990b1242d6b5e44078cb16eebfa07c70864e958d
MD5 dd6fa14855d320e5fb203b25b3a8bdfb
BLAKE2b-256 dc29f6746daee63ff54ea4ff121553564a1ad1ca1452267cbaa9265885b35eb3

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