gradecalculatorpy


Namegradecalculatorpy JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/UBC-MDS/gradecalculatorpy
SummaryA python package which helps calculate grades for a course.
upload_time2023-02-01 07:14:30
maintainer
docs_urlNone
authorChen Lin, Edward Zhang, Shirley Zhang
requires_python>=3.9,<4.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # gradecalculatorpy

## Summary

This python package calculates grades for a course. The package allows users to customize their own course information with self-defined course component names, to update grades for different course components, and even understand how well the final exam needs to be to pass the course or achieve a target final grade.

## Functions

This package contains the following functions:

- `construct_course`: Allow users to input the information for one course component (for example, assignment name and corresponding weight) one by one. Saves the course information as a .csv file to the specified file path. (Note: any user self-defined course component name(s) can be accepted)
    - **Note**: Since this function accepts user interaction input when calling the function, developer team had not yet found a way to pass the function unit test through *pytest*.<br>
    The unit test scenarios covered in the `test_construct_course()` is based on the assumption that the input .csv file is successfully generated through a local testing by calling `construct_course('dsci524', '/')` for example

- `update_grades`: Allow users to update course component grade(s) by loading a certain saved course .csv file. The function can then save the updated course information as a new .csv file to the specified file path.
  
- `predict_final`: Calculate how well the final exam has to be in order to pass the course or achieve a certain grade just before the final exam (for the scenario only when the final grade is missing), based on the provided other course component information.

- `calculate_grade`: When all course components are presented, calculate the course overall grade based on information provided. 

## Suitability within Python Ecosystem

This course grade calculator is unique as it provides an interactive way for users to input the course component information and update information as needed. With the `predict_final` function available, users can understand how well the final exam has to be in order to pass the course or achieve a certain level of grade in this course, then adjust their final review plans based on our calculation, to meet the course expectation.

The package `predict_final` function does not take any users' previous study or course information into account to calculation of the desired final performance, only based on the current course component information inputted/updated. 

There are other course grade calculators in the Python ecosystem. Some of the examples can be found [here](https://pypi.org/project/grade/) and [here](https://pypi.org/project/grade-tracker/). While other packages focus on auto-grading without user interaction and they do not provide similar functions like `predict_final` function in this package.

## Installation

```bash
$ pip install gradecalculatorpy
```

## Update

```bash
$ pip install --upgrade gradecalculatorpy
```

## Usage 

Please see the following [Jupyter Notebook](https://github.com/UBC-MDS/gradecalculatorpy/blob/main/docs/example.ipynb) for a full walk-through of how to use `gradecalculatorpy`.

```
# import statements 
from gradecalculatorpy.construct_course import construct_course
from gradecalculatorpy.update_grades import update_assignment_grade
from gradecalculatorpy.calculate_grade import calculate_grade
from gradecalculatorpy.predict_final import predict_final
import pandas as pd

# create the grading structure of a course (follow the prompts that show up on the screen)
construct_course('dsci524', '/')

# update the grade of one component 
update_assignment_grade('dsci524.csv', 'Milestone 1', 95.25)

# find the grade needed for the final assignment if you want a target grade of 93 for the course 
predict_final('/dsci524.csv', 93)

# calculate the final grade of the course 
calculate_grade('dsci524.csv')
```

## Documentation 

Please see our official documentation on Read the Docs [here](https://gradecalculatorpy.readthedocs.io/en/latest/).

## Acknowledging the use of OS

Since Windows and Mac systems have different file path naming style and we run all our pytest successfully on Mac. Therefore, we highly recommend the TA grading this assignment using Mac.

## Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

## Contributors

Members of Group 20 of DSCI524 at UBC: <br> Chen Lin, Edward Yukun Zhang, Shirley Zhang

## License

`gradecalculatorpy` was created by Chen Lin, Edward Yukun Zhang, Shirley Zhang. It is licensed under the terms of the MIT license.

## Credits

`gradecalculatorpy` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/UBC-MDS/gradecalculatorpy",
    "name": "gradecalculatorpy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Chen Lin, Edward Zhang, Shirley Zhang",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/75/00/45a52b706aa205a3125155ce08b4a91eb1649a8701936367a3fac310f25a/gradecalculatorpy-1.0.1.tar.gz",
    "platform": null,
    "description": "# gradecalculatorpy\n\n## Summary\n\nThis python package calculates grades for a course. The package allows users to customize their own course information with self-defined course component names, to update grades for different course components, and even understand how well the final exam needs to be to pass the course or achieve a target final grade.\n\n## Functions\n\nThis package contains the following functions:\n\n- `construct_course`: Allow users to input the information for one course component (for example, assignment name and corresponding weight) one by one. Saves the course information as a .csv file to the specified file path. (Note: any user self-defined course component name(s) can be accepted)\n    - **Note**: Since this function accepts user interaction input when calling the function, developer team had not yet found a way to pass the function unit test through *pytest*.<br>\n    The unit test scenarios covered in the `test_construct_course()` is based on the assumption that the input .csv file is successfully generated through a local testing by calling `construct_course('dsci524', '/')` for example\n\n- `update_grades`: Allow users to update course component grade(s) by loading a certain saved course .csv file. The function can then save the updated course information as a new .csv file to the specified file path.\n  \n- `predict_final`: Calculate how well the final exam has to be in order to pass the course or achieve a certain grade just before the final exam (for the scenario only when the final grade is missing), based on the provided other course component information.\n\n- `calculate_grade`: When all course components are presented, calculate the course overall grade based on information provided. \n\n## Suitability within Python Ecosystem\n\nThis course grade calculator is unique as it provides an interactive way for users to input the course component information and update information as needed. With the `predict_final` function available, users can understand how well the final exam has to be in order to pass the course or achieve a certain level of grade in this course, then adjust their final review plans based on our calculation, to meet the course expectation.\n\nThe package `predict_final` function does not take any users' previous study or course information into account to calculation of the desired final performance, only based on the current course component information inputted/updated. \n\nThere are other course grade calculators in the Python ecosystem. Some of the examples can be found [here](https://pypi.org/project/grade/) and [here](https://pypi.org/project/grade-tracker/). While other packages focus on auto-grading without user interaction and they do not provide similar functions like `predict_final` function in this package.\n\n## Installation\n\n```bash\n$ pip install gradecalculatorpy\n```\n\n## Update\n\n```bash\n$ pip install --upgrade gradecalculatorpy\n```\n\n## Usage \n\nPlease see the following [Jupyter Notebook](https://github.com/UBC-MDS/gradecalculatorpy/blob/main/docs/example.ipynb) for a full walk-through of how to use `gradecalculatorpy`.\n\n```\n# import statements \nfrom gradecalculatorpy.construct_course import construct_course\nfrom gradecalculatorpy.update_grades import update_assignment_grade\nfrom gradecalculatorpy.calculate_grade import calculate_grade\nfrom gradecalculatorpy.predict_final import predict_final\nimport pandas as pd\n\n# create the grading structure of a course (follow the prompts that show up on the screen)\nconstruct_course('dsci524', '/')\n\n# update the grade of one component \nupdate_assignment_grade('dsci524.csv', 'Milestone 1', 95.25)\n\n# find the grade needed for the final assignment if you want a target grade of 93 for the course \npredict_final('/dsci524.csv', 93)\n\n# calculate the final grade of the course \ncalculate_grade('dsci524.csv')\n```\n\n## Documentation \n\nPlease see our official documentation on Read the Docs [here](https://gradecalculatorpy.readthedocs.io/en/latest/).\n\n## Acknowledging the use of OS\n\nSince Windows and Mac systems have different file path naming style and we run all our pytest successfully on Mac. Therefore, we highly recommend the TA grading this assignment using Mac.\n\n## Contributing\n\nInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.\n\n## Contributors\n\nMembers of Group 20 of DSCI524 at UBC: <br> Chen Lin, Edward Yukun Zhang, Shirley Zhang\n\n## License\n\n`gradecalculatorpy` was created by Chen Lin, Edward Yukun Zhang, Shirley Zhang. It is licensed under the terms of the MIT license.\n\n## Credits\n\n`gradecalculatorpy` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A python package which helps calculate grades for a course.",
    "version": "1.0.1",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "649088c68dcc8269c180853a3fc3d9f9a7174335b2441f98f91633c7bb6dec42",
                "md5": "680050c1f38e465d88fe1053d92d0eda",
                "sha256": "f3a89a3f55d10815b4aadf6430909154f0b1198113eb284a1542253de40094b9"
            },
            "downloads": -1,
            "filename": "gradecalculatorpy-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "680050c1f38e465d88fe1053d92d0eda",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9,<4.0",
            "size": 8023,
            "upload_time": "2023-02-01T07:14:29",
            "upload_time_iso_8601": "2023-02-01T07:14:29.193300Z",
            "url": "https://files.pythonhosted.org/packages/64/90/88c68dcc8269c180853a3fc3d9f9a7174335b2441f98f91633c7bb6dec42/gradecalculatorpy-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "750045a52b706aa205a3125155ce08b4a91eb1649a8701936367a3fac310f25a",
                "md5": "a446d2782b0d9369ac3ccfc9f5636e4d",
                "sha256": "7e2877882c62d4e74f210993f0ff90742357199ae2dabf76d2774a4e279fd29b"
            },
            "downloads": -1,
            "filename": "gradecalculatorpy-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "a446d2782b0d9369ac3ccfc9f5636e4d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9,<4.0",
            "size": 6893,
            "upload_time": "2023-02-01T07:14:30",
            "upload_time_iso_8601": "2023-02-01T07:14:30.413810Z",
            "url": "https://files.pythonhosted.org/packages/75/00/45a52b706aa205a3125155ce08b4a91eb1649a8701936367a3fac310f25a/gradecalculatorpy-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-01 07:14:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "UBC-MDS",
    "github_project": "gradecalculatorpy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "gradecalculatorpy"
}
        
Elapsed time: 0.04141s