Skip to content

minttu/cses.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cses.py

A command line client for cses.fi

Installing

Clone the repo, start a virtualenv and ./setup.py install. Or if you don't do virtualenvs just sudo ./setup.py install. Currently tested only only on Python 3.4 on Linux, but should work with at least Python 3.2 too.

Using

First cses conf to set your credentials. Then cses task select to select a course and a task. If you already have some code, you can use cses assoc to associate it with the selected task. If you would like a new file, use cses create. To edit your selected file you can use cses edit and to view the description of the task in your browser you can use cses show. Finally, to submit your code for evaluation, you can use cses submit.

Commands

All of the commands can be abbreviated as long as there is no collision.

cses conf
    set your username and password

cses course show
    show all courses
cses course select
    select your course

cses task show
    show all tasks in the currently selected course
cses task select
    select your task

cses next
    go to the next task
cses previous
    go to the previous task

cses associate FILE
    associates the FILE with the current task
cses submit
    submits the current task to the server and prints the response
cses create
    creates a file for the task
cses edit
    edits the current tasks file with your default editor ($EDITOR)
cses show
    shows the current tasks description in your browser
cses test
    [-k --keep-going] Wont stop at the first failed test
    [--full] Prints the full input, expected output and actual output
    [-d --diff] Shows a diff between the expected and actual output
    tests the file locally
cses run
    runs the file

About

Code Submission Evaluation System Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages