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 Word question exports, bundle PDFs for printing, and email graded sheets

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.6.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.6.0
File Size Uploaded Provenance Actions
pyaota-0.6.0.tar.gz 68.8 kB With provenance Details for pyaota-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 146.9 kB

Release files / pyaota-0.6.0.tar.gz

Download URL pyaota-0.6.0.tar.gz
Size 68.8 kB
Tags Source
SHA-256 checksum
How to use checksums
611ccd34bd0d4590bc72c58fa86fae2169d07a23c298c79a8783550f3e0da778
BLAKE2b-256 checksum
How to use checksums
65eacc10e814db3c023098a497acfad9211eac0f9c5745a2123a623cee34b19f
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 25, 2026.

Transparency log

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

Download URL pyaota-0.6.0-py3-none-any.whl
Size 78.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da02607cad84540fb983536bd1c302d70922fc9b6a0ba90252de5b459c83c56d
BLAKE2b-256 checksum
How to use checksums
9512a6c4af94733029f1e747c39b1f46f1f5e3b8509093bfd0f2f8c34e5516f4
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 25, 2026.

Transparency log

Security for pyaota 0.6.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.6.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 25, 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