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.3.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.3.0
File Size Uploaded Provenance Actions
chalk_grader-0.3.0.tar.gz 58.0 kB Without provenance Details for chalk_grader-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 127.1 kB

Release files / chalk_grader-0.3.0.tar.gz

Download URL chalk_grader-0.3.0.tar.gz
Size 58.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1bf28370599e0a2541ffe90023a9be4c6064eeb8fc6f13f908195f3b85bf25e1
BLAKE2b-256 checksum
How to use checksums
5bd79a0d91c16788480c6eb7970e8fc7880b6836b1a04e37b1dfaae26419d278
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.3.0-py3-none-any.whl

Download URL chalk_grader-0.3.0-py3-none-any.whl
Size 69.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b671b9216b5f11a73175a77fb4502e70bd0cc2725fbaa113a0d9c4a6ff73f047
BLAKE2b-256 checksum
How to use checksums
5e1d31d1207d8103e66f2529f5996031f627a713d309762cb1d8e0bf389c1b65
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.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.

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