Package: examtool
OverviewThis is the CLI for the 61Aexamtool. To edit the various web apps, see the otherexam-*folders in thecs61a-appsrepo.To install, runpip install examtool[cli]. To develop, create a virtualenv and runpip install -e .[cli].The CLI also requireswgetandpdflatexto be installed and in your PATH.To deploy exams to the server, you must be registered as an admin for your course athttps://auth.apps.cs61a.org.WorkflowFirst, visithttps://write.final.cs61a.orgto write your exam, followingthese instructions. When your exam is ready, export it as a JSON and place the JSON in a folder.In that folder, runexamtool deployand select that JSON along with a roster CSV. When deployed, the exam will be accessible athttps://exam.cs61a.org. Roster CSVs must have a header and the columns:Email- The email of a studentDeadline- The due date of an exam for a particular student expressed as a Unix timestampNo Watermark- An optional column that is1if this student should not receive a watermarked exam (e.g. for DSP accomodations). Defaults to0if not specified.You may wish to send exam PDFs to your students. To do so, runexamtool compile-allto generate unique encrypted PDFs for each student. When they are all generated, runexamtool sendto email them to your students. Note that compilation requirespdflatexandwget. Compilation of watermarked PDFs also requiresinkscape.After your exam ends, runexamtool downloadto download your student submissions as a single CSV and as PDFs to upload to Gradescope. To upload them to Gradescope, runexamtool gradescope-upload.To use an experimental autograder, rungradescope-autogradeto download the exam, create the Gradescope assignment, upload them to Gradescope, add the outline to Gradescope, group all of the submissions, and finally apply grades to the groupings! Note you can use the same command to upload and autograde exams to the same Gradescope assignment, just ensure you use theupdateflag.If you do not want the exam to be autograded, runexamtool downloadto download your student submissions as a single CSV and as PDFs to upload to Gradescope. Use the--via-htmlflag to create formatted PDFs, or--direct-pdfto create plaintext PDFs. You must installwkhtmltopdfand place it in your PATH to create formatted PDFs. You can also use the experimental flag--via-latexto embed student responses in the printable LaTeX PDF.To upload PDFs to Gradescope, runexamtool gradescope-upload.Note that if you ran alternate versions of your exam, it is possible that a student might have taken both versions (say, if they switched from the regular to the alternate version after filling out part of the regular version). To check for such students, runexamtool check-dupes, and then manually decide which of their submissions should be uploaded to Gradescope.Runexamtool loginasto log in as a student and view their exam.To identify cheating or recover from students losing their Internet connection, runexamtool logsto see the full submission history of a particular student, or all students in the roster.Runexamtool save-logsand thenexamtool cheatersto identify students who have used substituted words that did not occur in their exam, implying that they may be cheaters. Runexamtool identify-watermarkif you have a screenshot of a watermarked exam that you wish to identify. Runexamtool identify-keywordif you wish to determine which students received exams with a particular keyword.