A command line tool for competitive programming
Project description
CoolKit
CoolKit is Coding + ToolKit
, A command-line tool used to automate your programming experience.
Installation
Build from Source
- Clone the repository and checkout to stable commit
git clone https://github.com/srbcheema1/CoolKit
cd CoolKit
git checkout v0.0.1
- install requirements
python3 -m pip install --user -r requirements.txt
- Add CoolKit repository to PATH
echo export PATH="$PATH":"`pwd`" >> ~/.bashrc
source ~/.bashrc
- test for coolkit installation
coolkit --help
- if it displays help message you are ready to go.
Usage
srb@srb-pc:$ coolkit --help
usage: coolkit [-h] {init,set,run,submit,fetch,config} ...
positional arguments:
{init,set,run,submit,fetch,config}
optional arguments:
-h, --help show this help message and exit
suboptions are:
init initilize a directory as coolkit directory
set set value of coolkit variables.
config set config values like username, password.
fetch fetch a contest to use it for offline testing.
run run a code file against provided testcases
submit submit a code to online judge. and output the verdict.
For more help regarding suboptions run:
coolkit init -h
coolkit set -h
coolkit config -h
coolkit fetch -h
coolkit run -h
coolkit submit -h
Supported sites
- codeforces
Examples
Similar Tools
- It is worth it to mention few other tools that I was using from a year or so. I have really loved those tools and also used some of their modules/functions in this tool. Those tools are Acedit and Idne.
Note
- Coolkit is smart enough to detect a directory is coolkit repo or not. it automatically initilizes a directory as a coolkit directory in case it is not. Still I have provided
init
option. Its main purpose is to initilize a coolkit directory inside another coolkit directory. by default it will copy parent configurations for once which you can change lateron. - Coolkit is smart enough to detect your program name from your filename. Have a look at
get_problem_name
inglobal_config.py
file. you can suggest imporvements in that function. - Coolkit is smart enough to detect your contest name from your directory name. Have a look at
get_contest_name
inglobal_config.py
file. you can suggest imporvements in that function. - To suggest me improvements you can open an issue, make an PR, mail me or contact me on links provided below. I am working to provide a flexible way for users to modify their own way of detection.
- In case of any bug/issue, Please report this to srbcheema2@gmail.com. Or, even better, submit a PR to fix it!
Contact / Social Media
Development by
Developer / Author: Srb Cheema
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
coolkit-0.0.1.tar.gz
(20.7 kB
view details)
File details
Details for the file coolkit-0.0.1.tar.gz
.
File metadata
- Download URL: coolkit-0.0.1.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.1 setuptools/20.7.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6535ce90dfbb7ebf9f2389dcaeb1657d74ce40baa2ce20d0a802e36723a57f7 |
|
MD5 | 31321b73d2ef82ed0e394fc31fb52c6a |
|
BLAKE2b-256 | 52a0080f4f2bd23d0cf76534cbbbb54f3cf3b132770543f252aaa7837a891adf |