Skip to main content

Tools for evaluating student submissions.

Project description

Grading Tools

build codecov

This library allows you to compare student submissions to an answer, and provide meaningful feedback. It currently accommodates basic Python data structures, pandas Series and DataFrames, scikit-learn models, and images.


$ pip install grading-tools


>>> from grading_tools.graders import PythonGrader
>>> sub = {"snake": "reptile", "frog": "reptile"}
>>> ans = {"snake": "reptile", "frog": "amphibian"}
>>> g = PythonGrader(sub, ans)
>>> g.grade_dict()
>>> g.return_feedback(html=False)
    'score': 0,
    'passed': False,
    'comment': "The value for the key `frog` doesn't match the expected result."


grading-tools was created by Nicholas Cifuentes-Goodbody at WorldQuant University. It is not currently licensed for reuse of any kind.


This package uses Python Semantic Release, so all commit messages must follow the Angular format.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

grading_tools-0.20.1.tar.gz (19.1 kB view hashes)

Uploaded source

Built Distribution

grading_tools-0.20.1-py3-none-any.whl (20.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page