oe-python-template 0.12.22__py3-none-any.whl → 0.12.24__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.
- oe_python_template/hello/_gui.py +3 -2
- {oe_python_template-0.12.22.dist-info → oe_python_template-0.12.24.dist-info}/METADATA +3 -1
- {oe_python_template-0.12.22.dist-info → oe_python_template-0.12.24.dist-info}/RECORD +6 -6
- {oe_python_template-0.12.22.dist-info → oe_python_template-0.12.24.dist-info}/WHEEL +0 -0
- {oe_python_template-0.12.22.dist-info → oe_python_template-0.12.24.dist-info}/entry_points.txt +0 -0
- {oe_python_template-0.12.22.dist-info → oe_python_template-0.12.24.dist-info}/licenses/LICENSE +0 -0
oe_python_template/hello/_gui.py
CHANGED
@@ -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)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: oe-python-template
|
3
|
-
Version: 0.12.
|
3
|
+
Version: 0.12.24
|
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/
|
@@ -248,6 +248,7 @@ Executing the command line interface (CLI) in an isolated Python environment is
|
|
248
248
|
uvx oe-python-template hello world # prints "Hello, world! [..]"
|
249
249
|
uvx oe-python-template hello echo "Lorem Ipsum" # echos "Lorem Ipsum"
|
250
250
|
uvx oe-python-template gui # opens the graphical user interface (GUI)
|
251
|
+
uvx --with "oe-python-template[examples]" oe-python-template gui # opens the graphical user interface (GUI) with support for scientific computing
|
251
252
|
uvx oe-python-template system serve # serves web API
|
252
253
|
uvx oe-python-template system serve --port=4711 # serves web API on port 4711
|
253
254
|
uvx oe-python-template system openapi # serves web API on port 4711
|
@@ -392,6 +393,7 @@ uvx oe-python-template hello echo --help
|
|
392
393
|
uvx oe-python-template hello echo "Lorem"
|
393
394
|
uvx oe-python-template hello echo "Lorem" --json
|
394
395
|
uvx oe-python-template gui
|
396
|
+
uvx --with "oe-python-template[examples]" oe-python-template gui # opens the graphical user interface (GUI) with support for scientific computing
|
395
397
|
uvx oe-python-template system info
|
396
398
|
uvx oe-python-template system health
|
397
399
|
uvx oe-python-template system openapi
|
@@ -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=
|
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
|
@@ -33,8 +33,8 @@ oe_python_template/utils/_service.py,sha256=atHAejvBucKXjzhsMSdOBBFa7rRD74zcV70P
|
|
33
33
|
oe_python_template/utils/_settings.py,sha256=owFoaHEzJnVD3EVyOWF4rfIY7g6eLnU6rN0m4VHhCbA,2464
|
34
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.
|
37
|
-
oe_python_template-0.12.
|
38
|
-
oe_python_template-0.12.
|
39
|
-
oe_python_template-0.12.
|
40
|
-
oe_python_template-0.12.
|
36
|
+
oe_python_template-0.12.24.dist-info/METADATA,sha256=LhDIiu281zXEuEZgQsFiNx8c3gd_at7ta4NP0SQQ9wY,33332
|
37
|
+
oe_python_template-0.12.24.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
38
|
+
oe_python_template-0.12.24.dist-info/entry_points.txt,sha256=IroSSWhLGxus9rxcashkYQda39TTvf7LbUMYtOKXUBE,66
|
39
|
+
oe_python_template-0.12.24.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
|
40
|
+
oe_python_template-0.12.24.dist-info/RECORD,,
|
File without changes
|
{oe_python_template-0.12.22.dist-info → oe_python_template-0.12.24.dist-info}/entry_points.txt
RENAMED
File without changes
|
{oe_python_template-0.12.22.dist-info → oe_python_template-0.12.24.dist-info}/licenses/LICENSE
RENAMED
File without changes
|