autograder_gen
autograder_gen is a tool for lecturers to automatically generate assessment scripts for Grading a Programming Assignment on Gradescope. It supports filling out an interactive web form or providing a YAML configuration, which then generates a packaged ZIP file ready to be uploaded to Gradescope. The project validates your YAML configuration, renders test scripts using Jinja2 templates, and packages everything for immediate upload to Gradescope.
Installation
Install the package via pip:
pip install autograder-gen
CLI Usage
The package provides two command-line tools:
autograder-gen: Generates Gradescope autograders and test stub packages from configuration files.autograder-run: Runs thesolution/folder and test stubs against an autograder.
Generating Autograders (autograder-gen)
autograder-gen
usage: autograder-gen [TARGET ...] [-h] [--version] [--description]
Generate Gradescope autograder script from YAML configuration.
positional arguments:
TARGET Configuration YAML file(s) or directories with
config.yaml inside (default: ./config.yaml)
options:
-h, --help show this help message and exit
--version show program's version number and exit
--description Generate description.docx for the assessment
Examples
Single config:
autograder-gen lab/config.yaml
# OR (directory with a config.yaml)
autograder-gen lab
# OR (zero arguments defaults to ./config.yaml)
autograder-gen
Multiple configs or directories:
autograder-gen lab1/config.yaml lab2/config.yaml
# OR
autograder-gen lab1/ lab2/
# OR directory containing subfolders with config.yaml
autograder-gen path/to/assignments/
Running Autograders (autograder-run)
autograder-run
usage: autograder-run [TARGET ...] [-h] [--version]
Run Gradescope autograder.zip at a folder against solution/ folder and stub submissions.
positional arguments:
TARGET Configuration YAML file(s) or directory with autograder.zip
options:
-h, --help show this help message and exit
--version show program's version number and exit
Examples
autograder-run week_05_arrays
# OR
autograder-run week_05_arrays/config.yaml
# OR directory containing subfolders with config.yaml
autograder-run path/to/assignments/
Web Interface
Launch the interactive web interface:
autograder-gen-web
Building from Source
For development instructions, building from source, and running Python source files directly, see BUILD.md.
Authors
- Alan Guedes – @alanlivio: maintainer
- Giorgio Werberich Scur – @giorgioscur: intial contributions
License
Contributions are welcome and will be credited. This project is licensed under the MIT License.
The University of Reading retains rights of original contributions.
Metadata
Release files for autograder-gen 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autograder_gen-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for autograder_gen-0.3.0-py3-none-any.whl |
Release files / autograder_gen-0.3.0-py3-none-any.whl
| Download URL | autograder_gen-0.3.0-py3-none-any.whl |
|---|---|
| Size | 86.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82d4dbc0194af38697ec0bccea825a2df60308775d345bb720a3757da92c8863
|
|
BLAKE2b-256 checksum How to use checksums |
d7b4a2b398223843471bc0a77c51d415dc17c562717cefb9fe2c931955211c7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for autograder-gen 0.3.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.
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.