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
In, Out, Expected, Error and output files:
-
Git
-
Python3
installation guide here
-
Pip (python3-pip)
> git clone https://github.com/Stylo2k/Perist-ri.git
> sh install.sh
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
> 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
> 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 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.
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>
- Make the program installable as a
bin
- Multiple Files submission
- See in, out & difference test files
- Add this to the browser mode
- Encrypting the data
- Better name for
.Py
file - More documented code
- ?