Skip to main content

chalk-grader

The grading engine of chalk, shared with chalk-worker: profiles written as data, the bwrap sandbox, the reference run that fixes the expected tests, the scoring and the checks for tampering. It knows nothing about quizzes, rosters or codehood.

from pathlib import Path

from chalk_grader.models import Autograder
from chalk_grader.profile_grader import ProfileGrader, resolve_profile
from chalk_grader.task import Task

conf = Autograder(profile="elm-test", answer="src/Main.elm")
grader = ProfileGrader(
    script=None,
    task=Task("soma", "prova-1", root=Path("graders/soma"), template=Path("graders/soma/template")),
    conf=conf,
    name="elm-test",
    profile=resolve_profile("elm-test", {}),
    solution=Path("graders/soma/solution/Main.elm").read_text(),
)
graded = grader("student-id", "module Main exposing (..)\n...")

Linux only: student code runs under bubblewrap (bwrap). The security model is in dev/rfc/modelo-de-seguranca-e-sandbox-do-autograder.md (in Portuguese), and the profiles are documented in docs/user-manual/autograding-scripts.md.

Metadata

Release files for chalk-grader 0.2.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 chalk-grader 0.2.0
File Size Uploaded Provenance Actions
chalk_grader-0.2.0.tar.gz 49.9 kB Without provenance Details for chalk_grader-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chalk-grader 0.2.0
File Interpreter ABI Platform Actions
chalk_grader-0.2.0-py3-none-any.whl Python 3 none any Details for chalk_grader-0.2.0-py3-none-any.whl

Total release size: 110.5 kB

Release files / chalk_grader-0.2.0.tar.gz

Download URL chalk_grader-0.2.0.tar.gz
Size 49.9 kB
Tags Source
SHA-256 checksum
How to use checksums
66994c2347bf52417e68882eaf7593f200dfa8fdf49419cbf1c3694f2595c8d3
BLAKE2b-256 checksum
How to use checksums
d32aa056814eb36ee8b4e4b74f5f3e9e4d64120a18d6ab33b534ccbff547c619
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / chalk_grader-0.2.0-py3-none-any.whl

Download URL chalk_grader-0.2.0-py3-none-any.whl
Size 60.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ffebd91bf0ff453b068c3750558af2006779fefd02dcb99cb4d59a0b36019fa6
BLAKE2b-256 checksum
How to use checksums
416f7e0c323ea751fb04a5ded476298f6715d66ba09ca07786972018f4b0c3ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for chalk-grader 0.2.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.

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