Skip to main content

Overview

This is the CLI for the 61A examtool. To edit the various web apps, see the other exam-* folders in the cs61a-apps repo.

To install, run pip install examtool[cli]. To develop, create a virtualenv and run pip install -e .[cli].

The CLI also requires wget and pdflatex to be installed and in your PATH.

To deploy exams to the server, you must be registered as an admin for your course at https://auth.apps.cs61a.org.

Workflow

First, visit https://write.final.cs61a.org to write your exam, following these instructions. When your exam is ready, export it as a JSON and place the JSON in a folder.

In that folder, run examtool deploy and select that JSON along with a roster CSV. When deployed, the exam will be accessible at https://exam.cs61a.org. Roster CSVs must have a header and the columns:

  • Email - The email of a student
  • Deadline - The due date of an exam for a particular student expressed as a Unix timestamp
  • No Watermark - An optional column that is 1 if this student should not receive a watermarked exam (e.g. for DSP accomodations). Defaults to 0 if not specified.

You may wish to send exam PDFs to your students. To do so, run examtool compile-all to generate unique encrypted PDFs for each student. When they are all generated, run examtool send to email them to your students. Note that compilation requires pdflatex and wget. Compilation of watermarked PDFs also requires inkscape.

After your exam ends, run examtool download to download your student submissions as a single CSV and as PDFs to upload to Gradescope. To upload them to Gradescope, run examtool gradescope-upload.

To use an experimental autograder, run gradescope-autograde to 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 the update flag.

If you do not want the exam to be autograded, run examtool download to download your student submissions as a single CSV and as PDFs to upload to Gradescope. Use the --via-html flag to create formatted PDFs, or --direct-pdf to create plaintext PDFs. You must install wkhtmltopdf and place it in your PATH to create formatted PDFs. You can also use the experimental flag --via-latex to embed student responses in the printable LaTeX PDF.

To upload PDFs to Gradescope, run examtool 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, run examtool check-dupes, and then manually decide which of their submissions should be uploaded to Gradescope.

Run examtool loginas to log in as a student and view their exam.

To identify cheating or recover from students losing their Internet connection, run examtool logs to see the full submission history of a particular student, or all students in the roster.

Run examtool save-logs and then examtool cheaters to identify students who have used substituted words that did not occur in their exam, implying that they may be cheaters. Run examtool identify-watermark if you have a screenshot of a watermarked exam that you wish to identify. Run examtool identify-keyword if you wish to determine which students received exams with a particular keyword.

Metadata

Release files for examtool 2.2.45

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for examtool 2.2.45
File Size Uploaded Provenance
examtool-2.2.45.tar.gz 67.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for examtool 2.2.45
File Interpreter ABI Platform
examtool-2.2.45-py3-none-any.whl Python 3 none any Details

Total release size: 162.4 kB

Release files / examtool-2.2.45.tar.gz

Download URL examtool-2.2.45.tar.gz
Size 67.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c4fe366d6f5f131a5b703d5f1311ace464fce3840f2f63db0c3f54a2b3809716
BLAKE2b-256 checksum
How to use checksums
6b342e650b8770a98c37da1624c5fdfa6decd984d5c9af93cb2e6386b935651a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.10.0 requests/2.25.0 setuptools/69.0.3 requests-toolbelt/1.0.0 tqdm/4.66.2 CPython/3.9.17

Release files / examtool-2.2.45-py3-none-any.whl

Download URL examtool-2.2.45-py3-none-any.whl
Size 95.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3eceb9bb3dbbd084ac2300966ff64b7d43b1bea197d92043b7e6b75d64a1cc6c
BLAKE2b-256 checksum
How to use checksums
70240f736a3b23c7495c43bcf8a0a21bcd3d82bdb93e7fbb8be5141707ddb19f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.10.0 requests/2.25.0 setuptools/69.0.3 requests-toolbelt/1.0.0 tqdm/4.66.2 CPython/3.9.17

Security for examtool 2.2.45

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

2.2.45 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page