Skip to main content

pyaota

Multiple choice exam question manager, exam generator, and exam grader

Tests PyPI Docs

pyaota builds randomized multiple-choice and true/false exams from YAML question banks, typesets them with a machine-readable answer sheet (bubble field, student-ID bubbles and a QR code identifying the version), and grades the scanned sheets back into your gradebook CSV.

  • Many versions from one bank, with questions and choices shuffled per version
  • Optional encryption of each version's answers in its QR code, so grading needs no key file
  • Per-page graded overlays, a failed-pages report, and interactive recovery for unreadable pages
  • Utilities to convert ZyBooks question exports (QTI XML or Word), bundle PDFs for printing, and email graded sheets (Windows/Outlook)

Install

pip install pyaota

You also need xelatex (TeX Live or MiKTeX) to build exams and Poppler (apt install poppler-utils, brew install poppler, or conda install -c conda-forge poppler) to grade them. Optional extras: pyaota[interactive] for grade --interactive.

Quick start

# build two shuffled 20-question versions with answers encrypted in the QR codes
pyaota build -q examples/question_banks/simple_math.yaml \
  -n 2 -nq 20 -nc 4 -sc -sq --encode-answers-in-qr \
  --institution "Example University" --course "MATH 101" --term "Spring 2026" \
  -en "Quiz 1" -od build

# after the exam: grade the scanned answer sheets
pyaota grade -i scans.pdf -alj build/answersheet_layout.json -od graded

Keep answersheet_layout.json away from students: it holds the key that decrypts the answers in the QR codes.

Documentation

Full documentation — question bank schema, every subcommand, the grading workflow and worked examples — is at https://pyaota.readthedocs.io.

Development

git clone https://github.com/cameronabrams/pyaota.git
cd pyaota
pip install -e '.[test]'
pytest

Changes are recorded in CHANGELOG.md.

Metadata

Release files for pyaota 0.7.0

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

Source distribution (sdist)

Source distribution for pyaota 0.7.0
File Size Uploaded Provenance Actions
pyaota-0.7.0.tar.gz 70.4 kB With provenance Details for pyaota-0.7.0.tar.gz

Built distribution (wheel)

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

Total release size: 149.9 kB

Release files / pyaota-0.7.0.tar.gz

Download URL pyaota-0.7.0.tar.gz
Size 70.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f4b6dd3253091030e4d061d94ac1eb0663c1ba59b3a32d31a2388723194ef1b2
BLAKE2b-256 checksum
How to use checksums
ac55a70317523432600b7e5822155ee63b104adf6750528fb2de42fb88797eac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / pyaota-0.7.0-py3-none-any.whl

Download URL pyaota-0.7.0-py3-none-any.whl
Size 79.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b7ef455c90d0fef12d022a24566a5cd0fef36001943ff7450f8b4f561009646
BLAKE2b-256 checksum
How to use checksums
e8d6f56540bbfec7920046d08f69b1ef3ce57adfbcda7ac322635e9ef4323b80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for pyaota 0.7.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyaota-0.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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