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

# 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.4.tar.gz (154.5 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.4-cp37-cp37m-macosx_10_9_x86_64.whl (189.4 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: kttool-0.0.4.tar.gz
  • Upload date:
  • Size: 154.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/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for kttool-0.0.4.tar.gz
Algorithm Hash digest
SHA256 646c94af4b92a1f96ce7537d43ff53ba7e0f0fedaf7c6042841823f3d8de06d2
MD5 f3bdc051eb7127820daaafba1310bf24
BLAKE2b-256 a197cec7c58ed67efa110de3ccdc136f3f783c6b0da65bca238de24dbc81a555

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kttool-0.0.4-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 189.4 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.4-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4747c5e6a58262c6e93a97d5798c1451354125c7932c67cb6634ba8aedb8b5a8
MD5 100d76816919070f4ee16f462271a44e
BLAKE2b-256 630397ef2ffb76d867844e4baccd0018627a7ea82ee7a54fb2713a7b93698d57

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