TeachingScripts
makelibrary.sh
Make a library.xml file from an existing set of directories with html, problem and video files.
txt2library.sh
Create an EdX library of problems from a txt file with problems.
txt2xml.awk
Generate a series of XML problems from an txt file with problems.
combinecsv.py
Combine the output from AMC with a gradebook from Connect.
python3 combinecsv.py tutorials_b.csv ASTR311_2015W_tut2.csv a.csv 9 6
upload_csv.py
Upload a gradebook in a CSV file to a particular LTI endpoint on EdX:
usage: upload_csv.py [-h] [--mapping-csv MAPPING_CSV] --platform-url PLATFORM_URL [--endpoint ENDPOINT] course_id grade_csv lti_key lti_secret
e.g.
usage: upload_csv.py [-h] --platform-url PLATFORM_URL course_id grade_csv mapping_csv lti_key lti_secret [--endpoint choice_num]
grades.csv format 1 - anon-id or edX ID to look up anon ID in the mapping file 2 - email just output to screen during the upload or name of assignment 3 - score 4 - total possible score 5 - comment until the next comma or put in "quotes"
the lti_key isn't actually important, as you have to choose which assignment the lti_secret is crucial
python upload_csv.py \ --platform-url https://edge.edx.org \ course-v1:UBCx+Heyl01+2015 \ t.csv \ lti_key lti_secret_password