Coder Social home page Coder Social logo

grading-assigner's Introduction

Usage

Requires the requests module, which you can either install globally or in a virtualenv.

Install: pip install -r requirements.txt (expects Python to be installed along with pip)

usage: grading-assigner.py [-h] [--auth-token TOKEN]

Poll the Udacity reviews API to claim projects to review.

optional arguments:
  -h, --help            show this help message and exit
  --auth-token TOKEN, -T TOKEN
                        Your Udacity auth token. To obtain, login to
                        review.udacity.com, open the Javascript console, and
                        copy the output of
                        `JSON.parse(localStorage.currentUser).token`. This can
                        also be stored in the environment variable
                        UDACITY_AUTH_TOKEN.
  --debug, -d           Turn on debug statements.

Example

$ export UDACITY_AUTH_TOKEN=...
$ ./grading-assigner.py
|2016-08-03 19:28:44,766| Requesting certifications...
|2016-08-03 19:28:45,357| Found certifications for project IDs: [2, 3] in languages [u'pt', u'en']
|2016-08-03 19:28:45,358| Polling for new submissions...
|2016-08-03 19:28:45,358| Will poll for projects/languages [{'project_id': 2,
'language': u'pt'}, {'project_id': 2, 'language': u'en'}, {'project_id': 3,
'language': u'pt'}, {'project_id': 3, 'language': u'en'}]
|2016-08-03 19:28:45,751| Creating a request for 2 project(s) in 2 languages
|2016-08-03 19:28:47,876|
|2016-08-03 19:28:47,876| =================================================
|2016-08-03 19:28:47,876| You have been assigned to grade a new submission!
|2016-08-03 19:28:47,876| View it here: https://review.udacity.com/#!/submissions/237
|2016-08-03 19:28:47,876| =================================================
|2016-08-03 19:28:47,876| Continuing to poll...
|2016-08-03 19:28:48,042| Creating a request for 2 project(s) in 2 languages
|2016-08-03 19:28:50,177|
|2016-08-03 19:28:50,178| =================================================
|2016-08-03 19:28:50,178| You have been assigned to grade a new submission!
|2016-08-03 19:28:50,178| View it here: https://review.udacity.com/#!/submissions/238
|2016-08-03 19:28:50,178| =================================================
|2016-08-03 19:28:50,178| Continuing to poll...
|2016-08-03 19:28:50,353| Waiting for assigned submissions < 2
|2016-08-03 19:28:55,531| Waiting for assigned submissions < 2
^C|2016-08-03 19:28:56,591| Cleaning up active request

Press ctrl-c to quit.

grading-assigner's People

Contributors

cepera-ang avatar scbrubaker02 avatar simplydallas avatar vergenzt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.