Skip to main content

a CLI to view, code and submit problems directly from terminal

Project description

View, Code, Submit directly from terminal

Made with love by Divesh Uttamchandani

Note: Termicoder is in its alpha stage and has only been tested on Ubuntu + python3 . Support for other configurations is being worked on, if you are using some other platform and encounter errors, do create a issue for them on github

Installation

User installation

Run the following commands in terminal/command prompt

pip install termicoder
use sudo -H if required. preferably use pip3 (python3)

Developer installation

clone termicoder’s repository

git clone https://github.com/diveshuttam/termicoder.git

in the root folder of repo run

pip install --editable .
notice the dot(.) in above command at the end
Note: it is better to use virtualenv and pip3 (python3)

Autocomplete for bash

Method 1

run the following command every time you use terminal
eval "$(_TERMICODER_COMPLETE=source termicoder)"

Method 2

put the following command in your .bashrc
eval "$(_TERMICODER_COMPLETE=source termicoder)"

Method 3

Method 2 makes bash to load up slowly, so try:
eval "$(_TERMICODER_COMPLETE=source termicoder)" > autocomplete.sh
and put . path_to_autocompte.sh/autocomplete.sh in your .bashrc

Current Support

Judges Supported Currently:

  1. Iarcs Opc

  2. CodeChef

Languages Supported Currently:

  1. C

  2. C++

  3. Java

  4. Python2/3

Usage

Only commands highlighted here, for details we reccommend going through sample run which contains detailed usage

for details of a particular command use

termicoder --help
termicoder <COMMAND> --help

or you can have a look at helptext which contains the output of all help commands

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

        view, code & submit problems directly from terminal.

    Commands:
        code    creates file with template code.
        setup   sets up problem, contests and login.
        submit  submit a solution.
        test    test code against the sample testcases.
        view    view contests, problems and problem statement

Contribute

Visit Termicoder’s homepage for information on how to contribute

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

termicoder-0.2.0.tar.gz (32.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page