PyKubeGrader 0.1.16__tar.gz → 0.1.18__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pykubegrader-0.1.16/src/PyKubeGrader.egg-info → pykubegrader-0.1.18}/PKG-INFO +1 -1
- {pykubegrader-0.1.16 → pykubegrader-0.1.18/src/PyKubeGrader.egg-info}/PKG-INFO +1 -1
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/telemetry.py +29 -3
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/.coveragerc +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/.github/workflows/main.yml +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/.gitignore +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/.readthedocs.yml +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/AUTHORS.rst +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/CHANGELOG.rst +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/CONTRIBUTING.rst +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/LICENSE.txt +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/README.rst +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/Makefile +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/_static/Drexel_blue_Logo_square_Dark.png +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/_static/Drexel_blue_Logo_square_Light.png +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/_static/custom.css +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/authors.rst +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/changelog.rst +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/conf.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/contributing.rst +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/index.rst +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/license.rst +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/readme.rst +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/requirements.txt +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/examples/.responses.json +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/examples/true_false.ipynb +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/pyproject.toml +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/setup.cfg +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/setup.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/PyKubeGrader.egg-info/SOURCES.txt +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/PyKubeGrader.egg-info/dependency_links.txt +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/PyKubeGrader.egg-info/entry_points.txt +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/PyKubeGrader.egg-info/not-zip-safe +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/PyKubeGrader.egg-info/requires.txt +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/PyKubeGrader.egg-info/top_level.txt +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/__init__.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/build/api_notebook_builder.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/build/build_folder.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/initialize.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/log_parser/parse.ipynb +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/log_parser/parse.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/utils.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/validate.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets/__init__.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets/multiple_choice.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets/reading_question.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets/select_many.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets/student_info.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets/style.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets/true_false.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets/types_question.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets_base/__init__.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets_base/multi_select.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets_base/reading.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets_base/select.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/tests/conftest.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/tests/import_test.py +0 -0
- {pykubegrader-0.1.16 → pykubegrader-0.1.18}/tox.ini +0 -0
@@ -3,7 +3,7 @@ import datetime
|
|
3
3
|
import json
|
4
4
|
import logging
|
5
5
|
import os
|
6
|
-
from typing import Optional
|
6
|
+
from typing import Any, Optional
|
7
7
|
|
8
8
|
import nacl.public
|
9
9
|
import requests
|
@@ -187,5 +187,31 @@ def verify_server(
|
|
187
187
|
|
188
188
|
# TODO: implement function; or maybe not?
|
189
189
|
# At least improve other one
|
190
|
-
def score_question_improved(
|
191
|
-
|
190
|
+
def score_question_improved(
|
191
|
+
week: str,
|
192
|
+
assignment_category: str,
|
193
|
+
term: str = "winter_2025",
|
194
|
+
base_url: str = "https://engr-131-api.eastus.cloudapp.azure.com",
|
195
|
+
) -> None:
|
196
|
+
url = base_url + "/live-scorer"
|
197
|
+
|
198
|
+
responses = ensure_responses()
|
199
|
+
|
200
|
+
payload: dict[str, Any] = {
|
201
|
+
"student_email": f'{responses["jhub_user"]}@drexel.edu',
|
202
|
+
"term": term,
|
203
|
+
"week": week,
|
204
|
+
"assignment": assignment_category,
|
205
|
+
"question": f'_{responses["assignment"]}',
|
206
|
+
"responses": responses,
|
207
|
+
}
|
208
|
+
|
209
|
+
res = requests.post(url, json=payload, auth=HTTPBasicAuth("student", "capture"))
|
210
|
+
|
211
|
+
res_data = res.json()
|
212
|
+
max_points, points_earned = res_data["max_points"], res_data["points_earned"]
|
213
|
+
log_variable(
|
214
|
+
assignment_name=responses["assignment"],
|
215
|
+
value=f"{points_earned}, {max_points}",
|
216
|
+
info_type="score",
|
217
|
+
)
|
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
|
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
|
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
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|