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.3.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.3-cp37-cp37m-macosx_10_9_x86_64.whl (189.1 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: kttool-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 aee0bb13f5b15228d3605e7a164e55ab76b06f6ac131533a792ef7173c11e76e
MD5 87c71b56f4aaa106adcb3fb4e4e4321e
BLAKE2b-256 8f0bf1b6071594301563c8a2d6da3e98a2b34e910d8116f8e663d393c766f897

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kttool-0.0.3-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 189.1 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.3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 871d8a1847bbf7ad5b6250046e4eabdc0eac64bb46c722c17e3d7db801c7dfa3
MD5 77db5d01f48f3fb88cef84ea260e8ba8
BLAKE2b-256 f723121a7e2521aa0c0a93c9f8056966c4047a39eeee657e1c02a772ef380e54

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