PyKubeGrader 0.0.7__py3-none-any.whl → 0.0.9__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyKubeGrader
3
- Version: 0.0.7
3
+ Version: 0.0.9
4
4
  Summary: Add a short description here!
5
5
  Home-page: https://github.com/pyscaffold/pyscaffold/
6
6
  Author: jagar2
@@ -13,11 +13,18 @@ Classifier: Programming Language :: Python
13
13
  Description-Content-Type: text/x-rst; charset=UTF-8
14
14
  License-File: LICENSE.txt
15
15
  Requires-Dist: importlib-metadata; python_version < "3.8"
16
- Requires-Dist: ipython>=8.30.0
17
- Requires-Dist: numpy>=2.1.3
18
- Requires-Dist: panel>=1.5.4
19
- Requires-Dist: pynacl>=1.5.0
20
- Requires-Dist: requests>=2.32.3
16
+ Requires-Dist: ipython
17
+ Requires-Dist: mypy
18
+ Requires-Dist: numpy
19
+ Requires-Dist: panel
20
+ Requires-Dist: pynacl
21
+ Requires-Dist: pytest
22
+ Requires-Dist: requests
23
+ Requires-Dist: ruff
24
+ Requires-Dist: setuptools
25
+ Requires-Dist: sphinx
26
+ Requires-Dist: types-requests
27
+ Requires-Dist: types-setuptools
21
28
  Provides-Extra: testing
22
29
  Requires-Dist: setuptools; extra == "testing"
23
30
  Requires-Dist: pytest; extra == "testing"
@@ -1,17 +1,18 @@
1
- pykubegrader/__init__.py,sha256=JHme-EVdE2QbS9_Q2qdHiy5bEsyeQDbZ8aP2OfoSyiw,583
1
+ pykubegrader/__init__.py,sha256=L_TI3XcAgChNAmXaeDyMEdtgIclVl5czyC2f8Vhg_oE,355
2
2
  pykubegrader/info_widget.py,sha256=x73heTqmqJQ9XkaE3eW4eLXTGJlmmTdGEkGtbIcY7uY,3532
3
- pykubegrader/mc_widget.py,sha256=eOFuZwEIc8NtgZS-Xnc9e49C1i0qYJvwFPyDVy7jq0c,2025
3
+ pykubegrader/initialize.py,sha256=-s2hR8254hPz2-vKvlhHMDuNMBOZCqxxNdUpduBhYJs,444
4
+ pykubegrader/mc_widget.py,sha256=_qmJ4ZvU-KXamS726LqnCgecRg29hDd7w5WOerkLvuA,2022
4
5
  pykubegrader/misc.py,sha256=dKw6SyRYU3DWRgD3xER7wq-C9e1daWPkqr901LpcwiQ,642
5
6
  pykubegrader/multi_select_base.py,sha256=GJQ-xFJTErar94cFwTxsSmLKPPmywJRUQELhAbv-uFs,3102
6
7
  pykubegrader/reading_base.py,sha256=vSoyThl2vFbnbgB_LDc-DDRPWCM2xGbazEptDjNn4uA,5311
7
8
  pykubegrader/reading_widget.py,sha256=e8lXSzGI9dHCxW7fIvwJUU6j8qWQgHnKR06ke2W1k7w,3022
8
- pykubegrader/select_base.py,sha256=cyTWKYRbsGYsYJh6ntW2vPub4r15c8IgcsMFSCG3St4,2121
9
+ pykubegrader/select_base.py,sha256=90EnUPoNhJphkH1HXXxEgSmJDBrTWOqLNDha3DaZpGM,2178
9
10
  pykubegrader/select_many_widget.py,sha256=Rmb9Es42qzSdPfhU6ypcKnw_30PwuARX2UKVwgwbQhg,3772
10
11
  pykubegrader/telemetry.py,sha256=3GhItJ9dw18XcFutfQEk4z-DllCVtKXCKKLesf_jxzQ,3194
11
12
  pykubegrader/types_widget.py,sha256=FOrnR2x1eNM-pcFNIC8JnQdylgSUSUzuACmiIRuFTbQ,2244
12
13
  pykubegrader/validate.py,sha256=guEj0yeu9A_-Ig6S8diOfaNEWxud3k7t4tI-i4Steak,10585
13
- PyKubeGrader-0.0.7.dist-info/LICENSE.txt,sha256=YTp-Ewc8Kems8PJEE27KnBPFnZSxoWvSg7nnknzPyYw,1546
14
- PyKubeGrader-0.0.7.dist-info/METADATA,sha256=rmUxwQyFpzf0gyMrEMp-jIbE5wkjekRYmied9BACpeQ,2505
15
- PyKubeGrader-0.0.7.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
16
- PyKubeGrader-0.0.7.dist-info/top_level.txt,sha256=e550Klfze6higFxER1V62fnGOcIgiKRbsrl9CC4UdtQ,13
17
- PyKubeGrader-0.0.7.dist-info/RECORD,,
14
+ PyKubeGrader-0.0.9.dist-info/LICENSE.txt,sha256=YTp-Ewc8Kems8PJEE27KnBPFnZSxoWvSg7nnknzPyYw,1546
15
+ PyKubeGrader-0.0.9.dist-info/METADATA,sha256=YifwDx2WiOdMXZTYNtSIIjEBi5AAsqUSdzOdM7szOaY,2640
16
+ PyKubeGrader-0.0.9.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
17
+ PyKubeGrader-0.0.9.dist-info/top_level.txt,sha256=e550Klfze6higFxER1V62fnGOcIgiKRbsrl9CC4UdtQ,13
18
+ PyKubeGrader-0.0.9.dist-info/RECORD,,
pykubegrader/__init__.py CHANGED
@@ -1,10 +1,4 @@
1
- import sys
2
-
3
- if sys.version_info[:2] >= (3, 8):
4
- # TODO: Import directly (no need for conditional) when `python_requires = >= 3.8`
5
- from importlib.metadata import PackageNotFoundError, version # pragma: no cover
6
- else:
7
- from importlib_metadata import PackageNotFoundError, version # pragma: no cover
1
+ from importlib.metadata import PackageNotFoundError, version # pragma: no cover
8
2
 
9
3
  try:
10
4
  # Change here if project is renamed and does not equal the package name
@@ -0,0 +1,18 @@
1
+ import panel as pn
2
+ from IPython import get_ipython
3
+
4
+ from .telemetry import telemetry
5
+
6
+ # Check if in a Jupyter environment
7
+ ipython = get_ipython()
8
+
9
+ if ipython is not None:
10
+ # Initialize Panel extension
11
+ pn.extension()
12
+
13
+ # Register telemetry with pre_run_cell event
14
+ ipython.events.register("pre_run_cell", telemetry)
15
+
16
+ print("Setup completed successfully")
17
+ else:
18
+ print("Setup unsuccessful. Are you in a Jupyter environment?")
pykubegrader/mc_widget.py CHANGED
@@ -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,
@@ -49,7 +49,10 @@ 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
+ *(
53
+ pn.Column(desc_widget, pn.Row(dropdown))
54
+ for desc_widget, dropdown in widget_pairs
55
+ ),
53
56
  self.submit_button,
54
57
  )
55
58