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) 0.8.0 or newer. 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.4.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.4.0
File Size Uploaded Provenance Actions
chalk_grader-0.4.0.tar.gz 62.8 kB Without provenance Details for chalk_grader-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 137.3 kB

Release files / chalk_grader-0.4.0.tar.gz

Download URL chalk_grader-0.4.0.tar.gz
Size 62.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2dba684918e8292e2c5b2504cf596da249765da58221b1cf230da7c9ec0b86a9
BLAKE2b-256 checksum
How to use checksums
2125222564b3f776fc649a5ac176dfd1cdc9eaf30414b19ba623b1780a031826
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.4.0-py3-none-any.whl

Download URL chalk_grader-0.4.0-py3-none-any.whl
Size 74.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31ff4d7c61ee5effdeed3d804f3f9d9f8cb98176e8e8a699492f8145f6376085
BLAKE2b-256 checksum
How to use checksums
567e79b49de7fb33f85754674741445876e4c2663ea8f0f4766c6afd358829df
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.4.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