Skip to main content

Kattis CLI - Easily download, test and submit kattis problems

Project description

Kattis kitten

Repo size PyPI version

Kattis CLI - Easily download, test and submit kattis problems

Usage: kk [OPTIONS] COMMAND [ARGS]...

  Simple CLI for downloading and testing kattis problems

Options:
  --help  Show this message and exit.

Commands:
  get       This command downloads a kattis problem and test files
  problems  Simply opens https://open.kattis.com/problems in your webbrowser
  submit    This command submits a problem to kattis
  test      This tests a kattis problem using provided test problems

Installation (requires python >= 3.6):

pip3 install kattiskitten

Commands

Download test files.

> kk get rationalsequence
Downloading samples
Samples downloaded to './rationalsequence'

Test the problem

> kk test rationalsequence
👷‍ Testing rationalsequence...
👷‍ Language = Python 3 🐍

🔎 Test number 1:
❌ Failed...
__________INPUT____________
5
1 1/1
2 1/3
3 5/2
4 2178309/1346269
5 1/10000000

__________INPUT____________
__________OUTPUT___________
Hello world!

__________OUTPUT___________
__________EXPECTED_________
1 1/2
2 3/2
3 2/5
4 1346269/1860498
5 10000000/9999999

__________EXPECTED_________

Submit solution to kattis

> kk submit rationalsequence
Submission received. Submission ID: 5030066.
* Opens web browser on submission page *

Choose language

The default language is python3. To change language you can use the --language flag on the get command.

> kk get rationalsequence --language java
Downloading samples
Samples downloaded to './rationalsequence'

The other commands will auto detect which language you have chosen.

Supported languages

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

kattiskitten-0.14.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

kattiskitten-0.14.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file kattiskitten-0.14.0.tar.gz.

File metadata

  • Download URL: kattiskitten-0.14.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.9 CPython/3.7.9 Darwin/20.1.0

File hashes

Hashes for kattiskitten-0.14.0.tar.gz
Algorithm Hash digest
SHA256 a470f483f8d04ebcbeaa882114ca5a3e32061012e25e42a3202e795935b9a5f8
MD5 055b1d4032ed090e6c6ba58bf12b9689
BLAKE2b-256 b233aede8cfe463b1a39b070a998de526e4d02f83418afb3510d8c8a196733a1

See more details on using hashes here.

File details

Details for the file kattiskitten-0.14.0-py3-none-any.whl.

File metadata

  • Download URL: kattiskitten-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.9 CPython/3.7.9 Darwin/20.1.0

File hashes

Hashes for kattiskitten-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9bcdb206d0406f266e98222c7c70cc0f622e9d90d22a98b59b852ba513ef99d
MD5 c76ebebeee53168916e6785c4d1de772
BLAKE2b-256 1868856216facdbd6ad2327341e215908ce1e4cf31819d9c7ea40b4a911b0899

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