oe-python-template 0.12.20__py3-none-any.whl → 0.12.23__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.
@@ -2,7 +2,6 @@
2
2
 
3
3
  from pathlib import Path
4
4
 
5
- import numpy as np
6
5
  from nicegui import ui
7
6
 
8
7
  from oe_python_template.utils import BasePageBuilder, GUILocalFilePicker
@@ -32,7 +31,9 @@ class PageBuilder(BasePageBuilder):
32
31
 
33
32
  from importlib.util import find_spec # noqa: PLC0415
34
33
 
35
- if find_spec("matplotlib"):
34
+ if find_spec("matplotlib") and find_spec("numpy"):
35
+ import numpy as np # noqa: PLC0415
36
+
36
37
  with ui.card().tight().mark("CARD_PLOT"): # noqa: SIM117
37
38
  with ui.matplotlib(figsize=(4, 3)).figure as fig:
38
39
  x = np.linspace(0.0, 5.0)
@@ -2,6 +2,7 @@
2
2
 
3
3
  import os
4
4
  import sys
5
+ from pathlib import Path
5
6
 
6
7
  from ._log import logging_initialize
7
8
  from ._logfire import logfire_initialize
@@ -9,6 +10,11 @@ from ._sentry import sentry_initialize
9
10
 
10
11
  _boot_called = False
11
12
 
13
+ # Import vendored dependencies
14
+ vendored_dir = Path(__file__).parent.absolute() / ".vendored"
15
+ if vendored_dir.is_dir() and str(vendored_dir) not in sys.path:
16
+ sys.path.insert(0, str(vendored_dir))
17
+
12
18
 
13
19
  def boot(modules_to_instrument: list[str]) -> None:
14
20
  """Boot the application.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oe-python-template
3
- Version: 0.12.20
3
+ Version: 0.12.23
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/
@@ -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=zbs2NY2ePKTCRxK6JhAvVX2Y3HkUw4K5hJ3hkTctSZM,1405
9
+ oe_python_template/hello/_gui.py,sha256=vtkUgypY7I85Af3Dybkh3FrMkn5wpxnItcxi-Ev2k10,1462
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=TBgmqbtIryQz0cAozYzxhYQRIldfbJ6v9R-rH6sO9mY,2696
34
+ oe_python_template/utils/boot.py,sha256=Qgq1sjT8d3fcfibnMyx5CVUJ_KKXgFI3ozZUIJbhh4I,2921
35
35
  oe_python_template/utils/.vendored/bottle.py,sha256=D9YkHqkgvKkknd3ZQ-tgflUF6F9Kr2_jpzhod5WqfAM,175461
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,,
36
+ oe_python_template-0.12.23.dist-info/METADATA,sha256=povGY5E94iII213PJIYqbRUzZIJUS2G3aY5OCl2JkgY,33038
37
+ oe_python_template-0.12.23.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
38
+ oe_python_template-0.12.23.dist-info/entry_points.txt,sha256=IroSSWhLGxus9rxcashkYQda39TTvf7LbUMYtOKXUBE,66
39
+ oe_python_template-0.12.23.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
40
+ oe_python_template-0.12.23.dist-info/RECORD,,