Skip to content

Latest commit

 

History

History
137 lines (93 loc) · 4.21 KB

README.md

File metadata and controls

137 lines (93 loc) · 4.21 KB

Peristéri (Perist-ri)

Peristéri 2.0 has been released! No need for python at all. All you need is your shell

Check out https://github.com/Stylo2k/Perist-ri/tree/2.0

  • Installable as a binary file
  • Multiple Files Submissoin
  • Now In, Out, Expected, Error & Diff files

Submit to Themis through command line and get Themis's feedback.

Successful submission attempt:

Failed submission attempt: Here you get to see the reason and the hint

Multiple Files Submission:

In, Out, Expected, Error and output files:

Browser Mode:


Table Of Contents:

  1. Requirements
  2. Installation
  3. Usage
    1. Through command line arguments
    2. As a command line browser
  4. New features
  5. Coming features

Requirements

  1. Git

    windows

    mac

    Linux

  2. Python3

    installation guide here

  3. Pip (python3-pip)

    look it up for your OS (operating system)

Installation

> git clone https://github.com/Stylo2k/Perist-ri.git
> sh install.sh

First time configuration

For the first time configuration you will need to specify your student number (with a lower case s) and your password This data will get stored locally in :

~/.themis_submitter/data.yaml

Usage

Through command line arguments

> submit <files to submit> <submission url>

Or to see the in, out, expected, error and diff flies:

> submit <files to submit> -y <submission url>

This will simply submit your file to the url you specify. This is the cleanest way to submit. But since not all people will prefer this way. You can use the browser method.

Having trouble with the submit ? Try :

> python3 ~/.themisSubmitter/Peristéri.py

Or just

> ~/.themisSubmitter/Peristéri.py

As a command line browser

> submit

This will let you browse Themis just like you would in your browser. BUT of course through the terminal.

You can specify to what directory you want to go with numbers (indices). When you are at a submittable page, you will get asked if you want to submit or go back. When you submit a small window will open to get you to choose the file you want to submit.

After submission

After submission your submitted file wil get judged and the test cases you passed/failed will get prompted in your terminal. If you pass all test cases the program will terminate. Otherwise, you are given the chance to resubmit.

New feature !

The usage is now different and way better than the previous one. Instead of having to locate the .py file when submitting each time, you actually install it on your system as a bin. So you can use it now as any command you are used to in the terminal. See submit.sh (30-nov-21)

> submit

This feature does not work on all distros tho. If you are having trouble with this feature, use

> python3 ~/.themisSubmitter/Peristéri.py

You can now submit multiple files !!!! (04-12-21)

> submit <file 1> <file 2> <file...> <link>

You can now see the in, out, expected, error and diff files !

> submit <file1> <files...> -y <link>

Coming features

  1. Make the program installable as a bin
  2. Multiple Files submission
  3. See in, out & difference test files
    • Add this to the browser mode
  4. Encrypting the data
  5. Better name for .Py file
  6. More documented code
  7. ?