cornellGrading 2.20.0__tar.gz → 2.20.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cornellgrading-2.20.0/cornellGrading.egg-info → cornellgrading-2.20.1}/PKG-INFO +1 -1
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/cornellGrading/__init__.py +1 -1
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/cornellGrading/cornellGrading.py +30 -3
- {cornellgrading-2.20.0 → cornellgrading-2.20.1/cornellGrading.egg-info}/PKG-INFO +1 -1
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/LICENSE +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/MANIFEST.in +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/README.md +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/cornellGrading/cornellInterface.py +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/cornellGrading/cornellQualtrics.py +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/cornellGrading/dueDatesFromCSV.py +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/cornellGrading/pandocHTMLParser.py +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/cornellGrading/upload_MC_questions.py +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/cornellGrading/utils.py +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/cornellGrading.egg-info/SOURCES.txt +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/cornellGrading.egg-info/dependency_links.txt +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/cornellGrading.egg-info/entry_points.txt +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/cornellGrading.egg-info/requires.txt +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/cornellGrading.egg-info/top_level.txt +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/pyproject.toml +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/scripts/canvastex.py +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/scripts/matlabgrader.py +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/scripts/setupSelfGrading.py +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/setup.cfg +0 -0
- {cornellgrading-2.20.0 → cornellgrading-2.20.1}/setup.py +0 -0
|
@@ -2022,8 +2022,8 @@ class cornellGrading:
|
|
|
2022
2022
|
r = requests.post(full_url, json={"item": item}, headers=headers)
|
|
2023
2023
|
assert r.status_code == 200
|
|
2024
2024
|
|
|
2025
|
-
def
|
|
2026
|
-
"""
|
|
2025
|
+
def genHomeworkName(self, assignmentNum, preamble=""):
|
|
2026
|
+
"""Synthesize assignment name based on number and optional preamble
|
|
2027
2027
|
|
|
2028
2028
|
Args:
|
|
2029
2029
|
assignmentNum (int):
|
|
@@ -2048,6 +2048,31 @@ class cornellGrading:
|
|
|
2048
2048
|
|
|
2049
2049
|
# generate the name and grab the assignment
|
|
2050
2050
|
hwname = f"{preamble}HW{assignmentNum}"
|
|
2051
|
+
|
|
2052
|
+
return hwname
|
|
2053
|
+
|
|
2054
|
+
def getHomework(self, assignmentNum, preamble=""):
|
|
2055
|
+
"""Retrieve assignment based on number and optional preamble
|
|
2056
|
+
|
|
2057
|
+
Args:
|
|
2058
|
+
assignmentNum (int):
|
|
2059
|
+
Assignment names will be of the form "[preamble] HW#"
|
|
2060
|
+
where # is `assignmentNum`. See also `preamble` input.
|
|
2061
|
+
|
|
2062
|
+
preamble (str):
|
|
2063
|
+
If not "", then assignment name will be "[preamble] HW#". Otherwise,
|
|
2064
|
+
name will be "HW#". Defaults to ""
|
|
2065
|
+
|
|
2066
|
+
Returns:
|
|
2067
|
+
tuple:
|
|
2068
|
+
hwname (str):
|
|
2069
|
+
Full assignment name
|
|
2070
|
+
hw (canvasapi.assignment.Assignment):
|
|
2071
|
+
Assignment object
|
|
2072
|
+
"""
|
|
2073
|
+
|
|
2074
|
+
# get the name and grab the assignment
|
|
2075
|
+
hwname = self.genHomeworkName(assignmentNum, preamble=preamble)
|
|
2051
2076
|
hw = self.getAssignment(hwname)
|
|
2052
2077
|
|
|
2053
2078
|
return hwname, hw
|
|
@@ -2263,7 +2288,7 @@ class cornellGrading:
|
|
|
2263
2288
|
|
|
2264
2289
|
return submittedScoreNoAssignment, submittedAssignmentNoScore
|
|
2265
2290
|
|
|
2266
|
-
def genNpointNewQuizItem(self, n, item_body=None, title=None):
|
|
2291
|
+
def genNpointNewQuizItem(self, n, item_body=None, title=None, position=0):
|
|
2267
2292
|
"""Generate a New Quiz multiple choice, variable point question with answers
|
|
2268
2293
|
ranging from 0 to n and each answer worth the equivalent number of points.
|
|
2269
2294
|
|
|
@@ -2277,6 +2302,8 @@ class cornellGrading:
|
|
|
2277
2302
|
title (str, optional):
|
|
2278
2303
|
Question title. If None (default) this is set to:
|
|
2279
2304
|
HW Problem Score
|
|
2305
|
+
position (int):
|
|
2306
|
+
Position of question in quiz. Defaults to 0
|
|
2280
2307
|
|
|
2281
2308
|
Returns:
|
|
2282
2309
|
dict:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cornellgrading-2.20.0 → cornellgrading-2.20.1}/cornellGrading.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|