neugs-utils


Nameneugs-utils JSON
Version 0.0.20 PyPI version JSON
download
home_page
SummaryAlternative Grading Options for Gradescope autograder
upload_time2023-06-14 19:21:13
maintainer
docs_urlNone
author
requires_python>=3.6
licenseThe MIT License (MIT) Copyright (c) 2022 Albert Lionelle Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords gradescope grading
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Northeastern University Grade Scope Utility 

In progress gradescope utility used for alternative grading schemes, including mastery grading and standards grading. Additionally, contains utility functions used to make the grading process easier.

## Features

### Tier Mastery Grading: 

Focuses on mastery based grading in grading tiers, meaning
grades are corrected, so only the tests are passed in order based on groups. If any
test in a group stops, so does all grading until the previous group is fixed. 

Common tiers are (COMMON_ONE, COMMON_TWO, COMMON_THREE, COMMON_FOUR) which is
"Learning", "Approaching", "Meets", "Exceeds". To tag a test in a tier use the
tier decorator. An example of a common test setup with tier grading would be as follows


#### Example:

```python
    from gradescope_utils.autograder_utils.decorators import number, tags
    from neugs_utils import tier, COMMON_ONE, COMMON_TWO, COMMON_THREE

    class TestOne(unittest.TestCase):
        @tier(COMMON_THREE)
        @tags("Learning")  #tags should come *after* tiers if they are used at all
        @number(3.0)
        def test_random(self):
            result = 6
            for i in (6, 5, 61):
                self.assertEqual(result, i, "this is my message, that display due to TWO failing")

        @tier(COMMON_TWO)
        @number(2.0)
        def test_approaching(self):
            result = 3
            self.assertEqual(result, 5, "this should fail")

        @tier(COMMON_TWO)
        @number(2.0)
        def test_some_other_approaching(self):
            result = 5
            self.assertEqual(result, 5, "this should pass")

        @tier(COMMON_ONE)
        @number(1.0)
        def test_valid(self):
            self.assertEqual(5, 5, "really!")

        @tier(COMMON_ONE)
        @number(1.1)
        def test_valid2(self):
            self.assertEqual(6, 6, "really!")
```

Given the example above, and assuming default points of 1 point per tier, the above student would earn
1 point, and will be encouraged to submit again to completed Tier Two and Tier 3


In run_test.py make sure to change JSONTestRunner to TierMasteryJSONTestRunner
```python        
    
import unittest
from neugs_utils import TierMasteryJSONTestRunner

if __name__ == '__main__':
    suite = unittest.defaultTestLoader.discover('tests')
    with open('/autograder/results/results.json', 'w') as f:
        TierMasteryJSONTestRunner(visibility='visible', stream=f).run(suite)
```

### Utilities:

There are also a number of additional utility functions added in common_tests.py and context_managers.py. These are meant to be for utility to help with common grading tasks. 


This module is still in early stages of development! 

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "neugs-utils",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "gradescope,grading",
    "author": "",
    "author_email": "Albert Lionelle <lionelle+neugs-utils@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/65/45/cfb6f1039679d086b5b31313a91981571a4077d657524f1d4aed0d04e641/neugs_utils-0.0.20.tar.gz",
    "platform": null,
    "description": "# Northeastern University Grade Scope Utility \r\n\r\nIn progress gradescope utility used for alternative grading schemes, including mastery grading and standards grading. Additionally, contains utility functions used to make the grading process easier.\r\n\r\n## Features\r\n\r\n### Tier Mastery Grading: \r\n\r\nFocuses on mastery based grading in grading tiers, meaning\r\ngrades are corrected, so only the tests are passed in order based on groups. If any\r\ntest in a group stops, so does all grading until the previous group is fixed. \r\n\r\nCommon tiers are (COMMON_ONE, COMMON_TWO, COMMON_THREE, COMMON_FOUR) which is\r\n\"Learning\", \"Approaching\", \"Meets\", \"Exceeds\". To tag a test in a tier use the\r\ntier decorator. An example of a common test setup with tier grading would be as follows\r\n\r\n\r\n#### Example:\r\n\r\n```python\r\n    from gradescope_utils.autograder_utils.decorators import number, tags\r\n    from neugs_utils import tier, COMMON_ONE, COMMON_TWO, COMMON_THREE\r\n\r\n    class TestOne(unittest.TestCase):\r\n        @tier(COMMON_THREE)\r\n        @tags(\"Learning\")  #tags should come *after* tiers if they are used at all\r\n        @number(3.0)\r\n        def test_random(self):\r\n            result = 6\r\n            for i in (6, 5, 61):\r\n                self.assertEqual(result, i, \"this is my message, that display due to TWO failing\")\r\n\r\n        @tier(COMMON_TWO)\r\n        @number(2.0)\r\n        def test_approaching(self):\r\n            result = 3\r\n            self.assertEqual(result, 5, \"this should fail\")\r\n\r\n        @tier(COMMON_TWO)\r\n        @number(2.0)\r\n        def test_some_other_approaching(self):\r\n            result = 5\r\n            self.assertEqual(result, 5, \"this should pass\")\r\n\r\n        @tier(COMMON_ONE)\r\n        @number(1.0)\r\n        def test_valid(self):\r\n            self.assertEqual(5, 5, \"really!\")\r\n\r\n        @tier(COMMON_ONE)\r\n        @number(1.1)\r\n        def test_valid2(self):\r\n            self.assertEqual(6, 6, \"really!\")\r\n```\r\n\r\nGiven the example above, and assuming default points of 1 point per tier, the above student would earn\r\n1 point, and will be encouraged to submit again to completed Tier Two and Tier 3\r\n\r\n\r\nIn run_test.py make sure to change JSONTestRunner to TierMasteryJSONTestRunner\r\n```python        \r\n    \r\nimport unittest\r\nfrom neugs_utils import TierMasteryJSONTestRunner\r\n\r\nif __name__ == '__main__':\r\n    suite = unittest.defaultTestLoader.discover('tests')\r\n    with open('/autograder/results/results.json', 'w') as f:\r\n        TierMasteryJSONTestRunner(visibility='visible', stream=f).run(suite)\r\n```\r\n\r\n### Utilities:\r\n\r\nThere are also a number of additional utility functions added in common_tests.py and context_managers.py. These are meant to be for utility to help with common grading tasks. \r\n\r\n\r\nThis module is still in early stages of development! \r\n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT)  Copyright (c) 2022 Albert Lionelle  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Alternative Grading Options for Gradescope autograder",
    "version": "0.0.20",
    "project_urls": {
        "Source": "https://github.com/lionelle/neugs-utils"
    },
    "split_keywords": [
        "gradescope",
        "grading"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5473ea491f3100b3db644132ebf8b985f34b66301ebea40d85e9b49c3634a375",
                "md5": "5adff2503ce8caf3d5289acbc837419e",
                "sha256": "36be0755709a864f1769aa407a85f1cd224eb2e913633014b7531c3e1aabbe20"
            },
            "downloads": -1,
            "filename": "neugs_utils-0.0.20-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5adff2503ce8caf3d5289acbc837419e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 18197,
            "upload_time": "2023-06-14T19:21:11",
            "upload_time_iso_8601": "2023-06-14T19:21:11.390915Z",
            "url": "https://files.pythonhosted.org/packages/54/73/ea491f3100b3db644132ebf8b985f34b66301ebea40d85e9b49c3634a375/neugs_utils-0.0.20-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6545cfb6f1039679d086b5b31313a91981571a4077d657524f1d4aed0d04e641",
                "md5": "3d9d126ff2982fc45277d3e201132f06",
                "sha256": "64021a2e27754754b13f2e620e67854d047f30c541262c0773329a89dac1f838"
            },
            "downloads": -1,
            "filename": "neugs_utils-0.0.20.tar.gz",
            "has_sig": false,
            "md5_digest": "3d9d126ff2982fc45277d3e201132f06",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 17614,
            "upload_time": "2023-06-14T19:21:13",
            "upload_time_iso_8601": "2023-06-14T19:21:13.884043Z",
            "url": "https://files.pythonhosted.org/packages/65/45/cfb6f1039679d086b5b31313a91981571a4077d657524f1d4aed0d04e641/neugs_utils-0.0.20.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-14 19:21:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lionelle",
    "github_project": "neugs-utils",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "neugs-utils"
}
        
Elapsed time: 0.07811s