Code Monkey home page Code Monkey logo

cses.py's Introduction

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
    tests the file locally
cses run
    runs the file

cses.py's People

Contributors

minttu avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.