PyKubeGrader 0.0.6__tar.gz → 0.0.8__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. {pykubegrader-0.0.6/src/PyKubeGrader.egg-info → pykubegrader-0.0.8}/PKG-INFO +1 -1
  2. {pykubegrader-0.0.6 → pykubegrader-0.0.8/src/PyKubeGrader.egg-info}/PKG-INFO +1 -1
  3. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/src/PyKubeGrader.egg-info/SOURCES.txt +13 -11
  4. {pykubegrader-0.0.6/src/pykubegrader/widgets → pykubegrader-0.0.8/src/pykubegrader}/mc_widget.py +1 -1
  5. pykubegrader-0.0.8/src/pykubegrader/seed/__init__.py +5 -0
  6. pykubegrader-0.0.8/src/pykubegrader/seed/hash_seed.py +25 -0
  7. {pykubegrader-0.0.6/src/pykubegrader/widgets → pykubegrader-0.0.8/src/pykubegrader}/select_base.py +1 -1
  8. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/.coveragerc +0 -0
  9. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/.github/workflows/main.yml +0 -0
  10. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/.gitignore +0 -0
  11. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/.readthedocs.yml +0 -0
  12. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/AUTHORS.rst +0 -0
  13. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/CHANGELOG.rst +0 -0
  14. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/CONTRIBUTING.rst +0 -0
  15. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/LICENSE.txt +0 -0
  16. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/README.md +0 -0
  17. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/README.rst +0 -0
  18. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/docs/Makefile +0 -0
  19. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/docs/_static/.gitignore +0 -0
  20. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/docs/_static/Drexel_blue_Logo_square_Dark.png +0 -0
  21. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/docs/_static/Drexel_blue_Logo_square_Light.png +0 -0
  22. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/docs/_static/custom.css +0 -0
  23. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/docs/authors.rst +0 -0
  24. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/docs/changelog.rst +0 -0
  25. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/docs/conf.py +0 -0
  26. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/docs/contributing.rst +0 -0
  27. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/docs/index.rst +0 -0
  28. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/docs/license.rst +0 -0
  29. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/docs/readme.rst +0 -0
  30. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/docs/requirements.txt +0 -0
  31. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/pyproject.toml +0 -0
  32. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/setup.cfg +0 -0
  33. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/setup.py +0 -0
  34. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/src/PyKubeGrader.egg-info/dependency_links.txt +0 -0
  35. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/src/PyKubeGrader.egg-info/not-zip-safe +0 -0
  36. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/src/PyKubeGrader.egg-info/requires.txt +0 -0
  37. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/src/PyKubeGrader.egg-info/top_level.txt +0 -0
  38. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/src/pykubegrader/__init__.py +0 -0
  39. {pykubegrader-0.0.6/src/pykubegrader/widgets → pykubegrader-0.0.8/src/pykubegrader}/info_widget.py +0 -0
  40. {pykubegrader-0.0.6/src/pykubegrader/widgets → pykubegrader-0.0.8/src/pykubegrader}/misc.py +0 -0
  41. {pykubegrader-0.0.6/src/pykubegrader/widgets → pykubegrader-0.0.8/src/pykubegrader}/multi_select_base.py +0 -0
  42. {pykubegrader-0.0.6/src/pykubegrader/widgets → pykubegrader-0.0.8/src/pykubegrader}/reading_base.py +0 -0
  43. {pykubegrader-0.0.6/src/pykubegrader/widgets → pykubegrader-0.0.8/src/pykubegrader}/reading_widget.py +0 -0
  44. {pykubegrader-0.0.6/src/pykubegrader/widgets → pykubegrader-0.0.8/src/pykubegrader}/select_many_widget.py +0 -0
  45. {pykubegrader-0.0.6/src/pykubegrader/widgets → pykubegrader-0.0.8/src/pykubegrader}/telemetry.py +0 -0
  46. {pykubegrader-0.0.6/src/pykubegrader/widgets → pykubegrader-0.0.8/src/pykubegrader}/types_widget.py +0 -0
  47. {pykubegrader-0.0.6/src/pykubegrader/widgets → pykubegrader-0.0.8/src/pykubegrader}/validate.py +0 -0
  48. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/tests/conftest.py +0 -0
  49. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/tests/import_test.py +0 -0
  50. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/tox.ini +0 -0
  51. {pykubegrader-0.0.6 → pykubegrader-0.0.8}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyKubeGrader
3
- Version: 0.0.6
3
+ Version: 0.0.8
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.0.6
3
+ Version: 0.0.8
4
4
  Summary: Add a short description here!
5
5
  Home-page: https://github.com/pyscaffold/pyscaffold/
6
6
  Author: jagar2
@@ -33,16 +33,18 @@ src/PyKubeGrader.egg-info/not-zip-safe
33
33
  src/PyKubeGrader.egg-info/requires.txt
34
34
  src/PyKubeGrader.egg-info/top_level.txt
35
35
  src/pykubegrader/__init__.py
36
- src/pykubegrader/widgets/info_widget.py
37
- src/pykubegrader/widgets/mc_widget.py
38
- src/pykubegrader/widgets/misc.py
39
- src/pykubegrader/widgets/multi_select_base.py
40
- src/pykubegrader/widgets/reading_base.py
41
- src/pykubegrader/widgets/reading_widget.py
42
- src/pykubegrader/widgets/select_base.py
43
- src/pykubegrader/widgets/select_many_widget.py
44
- src/pykubegrader/widgets/telemetry.py
45
- src/pykubegrader/widgets/types_widget.py
46
- src/pykubegrader/widgets/validate.py
36
+ src/pykubegrader/info_widget.py
37
+ src/pykubegrader/mc_widget.py
38
+ src/pykubegrader/misc.py
39
+ src/pykubegrader/multi_select_base.py
40
+ src/pykubegrader/reading_base.py
41
+ src/pykubegrader/reading_widget.py
42
+ src/pykubegrader/select_base.py
43
+ src/pykubegrader/select_many_widget.py
44
+ src/pykubegrader/telemetry.py
45
+ src/pykubegrader/types_widget.py
46
+ src/pykubegrader/validate.py
47
+ src/pykubegrader/seed/__init__.py
48
+ src/pykubegrader/seed/hash_seed.py
47
49
  tests/conftest.py
48
50
  tests/import_test.py
@@ -21,7 +21,7 @@ def MCQ(
21
21
  ]
22
22
 
23
23
  radio_buttons = [
24
- pn.widgets.RadioButtonGroup(
24
+ pn.widgets.RadioBoxGroup(
25
25
  options=option,
26
26
  value=value,
27
27
  width=300,
@@ -0,0 +1,5 @@
1
+ # Auto-generated __init__.py
2
+
3
+ from . import hash_seed
4
+
5
+ __all__ = ['hash_seed']
@@ -0,0 +1,25 @@
1
+ import hashlib
2
+
3
+ def hash_to_seed(input_string):
4
+ """
5
+ Hash a string into a small integer seed less than 500.
6
+
7
+ Parameters:
8
+ input_string (str): The string to hash.
9
+
10
+ Returns:
11
+ int: A seed value (0 <= seed < 500).
12
+ """
13
+ # Ensure the input is a string
14
+ input_string = str(input_string)
15
+
16
+ # Create a SHA-256 hash of the string
17
+ hash_object = hashlib.sha256(input_string.encode())
18
+
19
+ # Convert the hash to an integer
20
+ large_number = int.from_bytes(hash_object.digest(), 'big')
21
+
22
+ # Reduce the number to a value less than 500
23
+ small_seed = large_number % 500
24
+
25
+ return small_seed
@@ -49,7 +49,7 @@ class SelectQuestion:
49
49
 
50
50
  self.layout = pn.Column(
51
51
  f"# Question {self.question_number}: {title}",
52
- *(pn.Row(desc_widget, dropdown) for desc_widget, dropdown in widget_pairs),
52
+ *(pn.Column(desc_widget, pn.Row(dropdown)) for desc_widget, dropdown in widget_pairs),
53
53
  self.submit_button,
54
54
  )
55
55
 
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