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.
Files changed (58) hide show
  1. {pykubegrader-0.1.16/src/PyKubeGrader.egg-info → pykubegrader-0.1.18}/PKG-INFO +1 -1
  2. {pykubegrader-0.1.16 → pykubegrader-0.1.18/src/PyKubeGrader.egg-info}/PKG-INFO +1 -1
  3. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/telemetry.py +29 -3
  4. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/.coveragerc +0 -0
  5. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/.github/workflows/main.yml +0 -0
  6. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/.gitignore +0 -0
  7. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/.readthedocs.yml +0 -0
  8. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/AUTHORS.rst +0 -0
  9. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/CHANGELOG.rst +0 -0
  10. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/CONTRIBUTING.rst +0 -0
  11. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/LICENSE.txt +0 -0
  12. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/README.rst +0 -0
  13. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/Makefile +0 -0
  14. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/_static/Drexel_blue_Logo_square_Dark.png +0 -0
  15. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/_static/Drexel_blue_Logo_square_Light.png +0 -0
  16. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/_static/custom.css +0 -0
  17. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/authors.rst +0 -0
  18. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/changelog.rst +0 -0
  19. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/conf.py +0 -0
  20. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/contributing.rst +0 -0
  21. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/index.rst +0 -0
  22. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/license.rst +0 -0
  23. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/readme.rst +0 -0
  24. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/docs/requirements.txt +0 -0
  25. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/examples/.responses.json +0 -0
  26. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/examples/true_false.ipynb +0 -0
  27. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/pyproject.toml +0 -0
  28. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/setup.cfg +0 -0
  29. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/setup.py +0 -0
  30. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/PyKubeGrader.egg-info/SOURCES.txt +0 -0
  31. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/PyKubeGrader.egg-info/dependency_links.txt +0 -0
  32. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/PyKubeGrader.egg-info/entry_points.txt +0 -0
  33. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/PyKubeGrader.egg-info/not-zip-safe +0 -0
  34. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/PyKubeGrader.egg-info/requires.txt +0 -0
  35. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/PyKubeGrader.egg-info/top_level.txt +0 -0
  36. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/__init__.py +0 -0
  37. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/build/api_notebook_builder.py +0 -0
  38. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/build/build_folder.py +0 -0
  39. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/initialize.py +0 -0
  40. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/log_parser/parse.ipynb +0 -0
  41. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/log_parser/parse.py +0 -0
  42. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/utils.py +0 -0
  43. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/validate.py +0 -0
  44. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets/__init__.py +0 -0
  45. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets/multiple_choice.py +0 -0
  46. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets/reading_question.py +0 -0
  47. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets/select_many.py +0 -0
  48. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets/student_info.py +0 -0
  49. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets/style.py +0 -0
  50. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets/true_false.py +0 -0
  51. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets/types_question.py +0 -0
  52. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets_base/__init__.py +0 -0
  53. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets_base/multi_select.py +0 -0
  54. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets_base/reading.py +0 -0
  55. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/src/pykubegrader/widgets_base/select.py +0 -0
  56. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/tests/conftest.py +0 -0
  57. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/tests/import_test.py +0 -0
  58. {pykubegrader-0.1.16 → pykubegrader-0.1.18}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyKubeGrader
3
- Version: 0.1.16
3
+ Version: 0.1.18
4
4
  Summary: Add a short description here!
5
5
  Home-page: https://github.com/pyscaffold/pyscaffold/
6
6
  Author: jagar2
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyKubeGrader
3
- Version: 0.1.16
3
+ Version: 0.1.18
4
4
  Summary: Add a short description here!
5
5
  Home-page: https://github.com/pyscaffold/pyscaffold/
6
6
  Author: jagar2
@@ -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(question_name: str, responses: dict) -> dict:
191
- return {}
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