Git Product home page Git Product logo

autograde-prototype's Introduction

Autograde-prototype (v0.9)

This is an API created for handling the grading of python submissions in ECX's 30DaysOfCode Challenge.

Usage

  1. Clone the repo and put your test cases in the Hidden-Beginner or hidden-tests folder
  • A test file with name q1.py and score 8 should contain this:
test = {
	"name": "q1",
	"points": 8,
	"hidden": False,
	"suites": [ 
		{
			"cases": [ 
				{
					"code": r"""
					>>> main(8, 12) == 4
					True
					""",
					"hidden": False,
					"locked": False,
				} 
			],
			"scored": False,
			"setup": "",
			"teardown": "",
			"type": "doctest"
		}
	]
}

What basically happens is that each of the code block is tested against the user submission and scored if it matches the output. N.B: multiple code blocks are possible and can be used in cases where its all or nothing. They should look like this:

...
	...
		"cases": [ 
				{
					"code": r"""
					>>> main(8, 12) == 4
					True
					""",
					"hidden": False,
					"locked": False,
				},
				{
					"code": r"""
					>>> main(6, 12) == 6
					True
					""",
					"hidden": False,
					"locked": False,
				} 
			],
	...
...
  1. File to be graded and user's namee server is sent in a form through a POST request to th and the grade is sent back as response ========> This can be integrated with AJAX PHP on each user dashboard, granting access to instanteneous grading.

Constraints

  • All users must submit with the exact same function name as the test file in order to avoid problems
  • Go Crazy and break it, It helps us see the weak points in the application.

suggestions are welcome and should be directed to Geektutor

autograde-prototype's People

Contributors

dependabot[bot] avatar sbg3k avatar

Stargazers

 avatar  avatar  avatar

autograde-prototype's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.