oe-python-template 0.12.19__py3-none-any.whl → 0.12.20__py3-none-any.whl

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.
@@ -30,11 +30,14 @@ class PageBuilder(BasePageBuilder):
30
30
  "BUTTON_CLICK_ME"
31
31
  )
32
32
 
33
- with ui.card().tight().mark("CARD_PLOT"): # noqa: SIM117
34
- with ui.matplotlib(figsize=(4, 3)).figure as fig:
35
- x = np.linspace(0.0, 5.0)
36
- y = np.cos(2 * np.pi * x) * np.exp(-x)
37
- ax = fig.gca()
38
- ax.plot(x, y, "-")
33
+ from importlib.util import find_spec # noqa: PLC0415
34
+
35
+ if find_spec("matplotlib"):
36
+ with ui.card().tight().mark("CARD_PLOT"): # noqa: SIM117
37
+ with ui.matplotlib(figsize=(4, 3)).figure as fig:
38
+ x = np.linspace(0.0, 5.0)
39
+ y = np.cos(2 * np.pi * x) * np.exp(-x)
40
+ ax = fig.gca()
41
+ ax.plot(x, y, "-")
39
42
 
40
43
  ui.link("Info", "/info").mark("LINK_INFO")
@@ -2,7 +2,6 @@
2
2
 
3
3
  import os
4
4
  import sys
5
- from pathlib import Path
6
5
 
7
6
  from ._log import logging_initialize
8
7
  from ._logfire import logfire_initialize
@@ -10,19 +9,6 @@ from ._sentry import sentry_initialize
10
9
 
11
10
  _boot_called = False
12
11
 
13
- # Import vendored dependencies
14
- current_dir = Path(__file__).parent.absolute()
15
- vendored_dir = current_dir / ".vendored"
16
- if not vendored_dir.is_dir():
17
- message = f".vendored/ directory not found at {vendored_dir!s}"
18
- raise FileNotFoundError(message)
19
- if vendored_dir not in sys.path:
20
- sys.path.insert(0, str(vendored_dir))
21
-
22
- import bottle # noqa: E402
23
-
24
- the_class = bottle.PasteServer
25
-
26
12
 
27
13
  def boot(modules_to_instrument: list[str]) -> None:
28
14
  """Boot the application.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oe-python-template
3
- Version: 0.12.19
3
+ Version: 0.12.20
4
4
  Summary: 🧠 Copier template to scaffold Python projects compliant with best practices and modern tooling.
5
5
  Project-URL: Homepage, https://oe-python-template.readthedocs.io/en/latest/
6
6
  Project-URL: Documentation, https://oe-python-template.readthedocs.io/en/latest/
@@ -50,6 +50,7 @@ Classifier: Typing :: Typed
50
50
  Requires-Python: <4.0,>=3.11
51
51
  Requires-Dist: fastapi[all,standard]>=0.115.12
52
52
  Requires-Dist: logfire[system-metrics]>=3.13.1
53
+ Requires-Dist: nicegui[native]>=2.15.0
53
54
  Requires-Dist: opentelemetry-instrumentation-fastapi>=0.53b0
54
55
  Requires-Dist: opentelemetry-instrumentation-httpx>=0.53b0
55
56
  Requires-Dist: opentelemetry-instrumentation-jinja2>=0.53b0
@@ -67,9 +68,8 @@ Provides-Extra: examples
67
68
  Requires-Dist: jinja2>=3.1.6; extra == 'examples'
68
69
  Requires-Dist: jupyter>=1.1.1; extra == 'examples'
69
70
  Requires-Dist: marimo>=0.13.0; extra == 'examples'
71
+ Requires-Dist: matplotlib>=3.10.1; extra == 'examples'
70
72
  Requires-Dist: streamlit>=1.44.1; extra == 'examples'
71
- Provides-Extra: gui
72
- Requires-Dist: nicegui[matplotlib,native]>=2.15.0; extra == 'gui'
73
73
  Description-Content-Type: text/markdown
74
74
 
75
75
 
@@ -6,7 +6,7 @@ oe_python_template/hello/__init__.py,sha256=F7aJ_uhTPPnFLT_4GjI2GzjAmKrUhfe4Kxqz
6
6
  oe_python_template/hello/_api.py,sha256=hWWlEDUfFY1se2ZzhqGMfPyD3FPwuA-YzxG9Q9z4F2o,2294
7
7
  oe_python_template/hello/_cli.py,sha256=mSNmRj_VRoRfCAR1I8tssZqZCTmT6jgzsNWrTtlFP7Y,1184
8
8
  oe_python_template/hello/_constants.py,sha256=6aRleAIcdgC13TeTzI07YwjoSwqGb2g131dw8aEoM4I,109
9
- oe_python_template/hello/_gui.py,sha256=R0QstWMtgjzPIy8yyl08MvBqiblJcQOwDzu2W8Z7IVw,1274
9
+ oe_python_template/hello/_gui.py,sha256=zbs2NY2ePKTCRxK6JhAvVX2Y3HkUw4K5hJ3hkTctSZM,1405
10
10
  oe_python_template/hello/_models.py,sha256=JtI7wGT72u23NOxFa-oeWzdyiMg7PnHL5eg22im2_yQ,574
11
11
  oe_python_template/hello/_service.py,sha256=22-IqNpra43IQcdeZNnzY4uhdPZmlXL6mCsLTCm6Zp4,3175
12
12
  oe_python_template/hello/_settings.py,sha256=_85PIdq8UuS4orCZ0qFJ22RTQTooOTB0USRxBapBK3M,1533
@@ -31,10 +31,10 @@ oe_python_template/utils/_process.py,sha256=40R0NZMqJUn0iUPERzohSUpJgU1HcJApIg1H
31
31
  oe_python_template/utils/_sentry.py,sha256=2sXrDSZSYoDEM87v7CakJ6eGBtcIhDI48PsQCLwOHgg,3319
32
32
  oe_python_template/utils/_service.py,sha256=atHAejvBucKXjzhsMSdOBBFa7rRD74zcV70Pp0pl0Tg,1038
33
33
  oe_python_template/utils/_settings.py,sha256=owFoaHEzJnVD3EVyOWF4rfIY7g6eLnU6rN0m4VHhCbA,2464
34
- oe_python_template/utils/boot.py,sha256=4B5Dniwm0FrO_M5xPS02eJIfya3ucfEI0Brt12VaXR4,3112
34
+ oe_python_template/utils/boot.py,sha256=TBgmqbtIryQz0cAozYzxhYQRIldfbJ6v9R-rH6sO9mY,2696
35
35
  oe_python_template/utils/.vendored/bottle.py,sha256=D9YkHqkgvKkknd3ZQ-tgflUF6F9Kr2_jpzhod5WqfAM,175461
36
- oe_python_template-0.12.19.dist-info/METADATA,sha256=yFnY-_GgLsCV0ta841S9hcLxa-nkaqczGReR-sFdFpw,33030
37
- oe_python_template-0.12.19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
38
- oe_python_template-0.12.19.dist-info/entry_points.txt,sha256=IroSSWhLGxus9rxcashkYQda39TTvf7LbUMYtOKXUBE,66
39
- oe_python_template-0.12.19.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
40
- oe_python_template-0.12.19.dist-info/RECORD,,
36
+ oe_python_template-0.12.20.dist-info/METADATA,sha256=-klCNgcJtDheO2EG7cEBfuHVOxXcub5PdH1Iw-5f-Uk,33038
37
+ oe_python_template-0.12.20.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
38
+ oe_python_template-0.12.20.dist-info/entry_points.txt,sha256=IroSSWhLGxus9rxcashkYQda39TTvf7LbUMYtOKXUBE,66
39
+ oe_python_template-0.12.20.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
40
+ oe_python_template-0.12.20.dist-info/RECORD,,