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.2.tar.gz (154.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-0.0.2-cp37-cp37m-macosx_10_9_x86_64.whl (185.4 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: kttool-0.0.2.tar.gz
  • Upload date:
  • Size: 154.2 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.2.tar.gz
Algorithm Hash digest
SHA256 6db4f3e4b519b7083ebc3d72ea500a35f3bed03c56c749ecb073e8cfed65e56f
MD5 2e3c05ddc7fc499c1d3c9a590bf8d3c3
BLAKE2b-256 ba667a30618eb952f99656c0f57aac244b4b7529c6538a902ecd947b53358f70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kttool-0.0.2-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 185.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.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3154738849167f3d2346b587c333b4621a994e32cad503c0ff89876751bf82c2
MD5 c8c6b62828db8f2069126c03a61ce9d5
BLAKE2b-256 d215dc2aaee6b732f81d516d4579a47abc7b2db2ebfb7125de7bab62c4528da3

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