Skip to main content

A generic homework checker.

Project description

# Homework checker #

This is a python module and script that can be used to check homeworks.

## How to use it ## One can specify the expected results in the form of a yaml file specifying excercises and specific tests for them, then this file is fed into the [check_homework.py](ipb_homework_checker/check_homework.py) script. The result is a markdown file with a table of results and a list of encountered errors.

To set up a new job script, follow the [schema.yml](schema/schema.yml) file. The schema file is automatically generated whenever you run the tests of this project, and your script should follow the guides defined in that schema file. For an example job script, see an example from the tests of this project: [example_job.yml](ipb_homework_checker/tests/data/homework/example_job.yml).

If you want to see a project that uses this checker, feel free to poke around [homework-solutions-repo][solutions] project. If you have no access, ask me or Cyrill for it.

## Prerequesits ## We need ruamel.yaml and schema libraries to run this code. Install them with: ` sudo pip3 install ruamel.yaml schema `

## Start digging ## If you want to change anything, start from [check_homework.py](ipb_homework_checker/check_homework.py) script and dig from there.

[solutions]: https://gitlab.igg.uni-bonn.de/teaching/homework-solutions-repo

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

ipb_homework_checker-0.0.6.tar.gz (11.4 kB view details)

Uploaded Source

File details

Details for the file ipb_homework_checker-0.0.6.tar.gz.

File metadata

  • Download URL: ipb_homework_checker-0.0.6.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for ipb_homework_checker-0.0.6.tar.gz
Algorithm Hash digest
SHA256 ddd9cde84846e3cb3426600a2c08f0257c0e74eac48831cf9053c56ec0d56928
MD5 83cf68e071defea6d3f8fd82b64f847a
BLAKE2b-256 95441b34825830f34be94a0d912295d798026dd555d24a7251f8e3139ea799c0

See more details on using hashes here.

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