Skip to main content

PyPI badge

code-grader

Generate a PDF of graded source files as a feedback for students

Installation

  • Please ensure that latexmk or pdflatex is in $PATH!
  • We use the minted and the geometry LaTeX package
  • Install this package
pip3 install code-grader

Or from this repo:

pip3 install -e .

Usage

code-grader Signal.java LinearFilter.java

where Signal.java LinearFilter.java are Java source code files somewhere in the directory structure of current directory.

Usually, you want to grade more than one student:

# Will generate one PDF for each subdir of current working directory
code-grader Signal.java LinearFilter.java --batch-grade

More options:

code-grader -h

Magic Comments

Comment your code with

  • /// <- Hint for the students
  • // [task blub: X/Y points] Grading for a subtask

Metadata

Release files for code-grader 0.1.8

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

Source distribution (sdist)

Source distribution for code-grader 0.1.8
File Size Uploaded Provenance Actions
code-grader-0.1.8.tar.gz 15.7 kB Without provenance Details for code-grader-0.1.8.tar.gz

Release files / code-grader-0.1.8.tar.gz

Download URL code-grader-0.1.8.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
05dbb65703676f3a695036646cec6d247fc0f7646a8439f72a9d32f0d381c3c7
BLAKE2b-256 checksum
How to use checksums
ae2994266df6d3d5ff86328e3d60ccb19cba12ef0f0316ead5cf3295cb7f8908
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.2

Security for code-grader 0.1.8

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.

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