oe-python-template 0.12.12__py3-none-any.whl → 0.12.13__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/cli.py +0 -3
- oe_python_template/system/_service.py +1 -0
- oe_python_template/utils/boot.py +7 -0
- {oe_python_template-0.12.12.dist-info → oe_python_template-0.12.13.dist-info}/METADATA +2 -3
- {oe_python_template-0.12.12.dist-info → oe_python_template-0.12.13.dist-info}/RECORD +8 -8
- {oe_python_template-0.12.12.dist-info → oe_python_template-0.12.13.dist-info}/WHEEL +0 -0
- {oe_python_template-0.12.12.dist-info → oe_python_template-0.12.13.dist-info}/entry_points.txt +0 -0
- {oe_python_template-0.12.12.dist-info → oe_python_template-0.12.13.dist-info}/licenses/LICENSE +0 -0
oe_python_template/cli.py
CHANGED
@@ -5,8 +5,6 @@ from importlib.util import find_spec
|
|
5
5
|
|
6
6
|
import typer
|
7
7
|
|
8
|
-
import bottle
|
9
|
-
|
10
8
|
from .constants import MODULES_TO_INSTRUMENT
|
11
9
|
from .utils import __version__, boot, console, get_logger, prepare_cli
|
12
10
|
|
@@ -16,7 +14,6 @@ logger = get_logger(__name__)
|
|
16
14
|
cli = typer.Typer(help="Command Line Interface of OE Python Template")
|
17
15
|
prepare_cli(cli, f"🧠 OE Python Template v{__version__} - built with love in Berlin 🐻")
|
18
16
|
|
19
|
-
the_class = bottle.Bottle
|
20
17
|
|
21
18
|
if find_spec("nicegui") and find_spec("webview"):
|
22
19
|
|
@@ -108,6 +108,7 @@ class Service(BaseService):
|
|
108
108
|
"version": platform.python_version(),
|
109
109
|
"compiler": platform.python_compiler(),
|
110
110
|
"implementation": platform.python_implementation(),
|
111
|
+
"sys.path": sys.path,
|
111
112
|
},
|
112
113
|
"interpreter_path": sys.executable,
|
113
114
|
"command_line": " ".join(sys.argv),
|
oe_python_template/utils/boot.py
CHANGED
@@ -22,6 +22,7 @@ def boot(modules_to_instrument: list[str]) -> None:
|
|
22
22
|
if _boot_called:
|
23
23
|
return
|
24
24
|
_boot_called = True
|
25
|
+
_prioritize_src()
|
25
26
|
sentry_initialize()
|
26
27
|
log_to_logfire = logfire_initialize(modules_to_instrument)
|
27
28
|
logging_initialize(log_to_logfire)
|
@@ -71,6 +72,12 @@ def _amend_library_path() -> None:
|
|
71
72
|
os.environ["DYLD_FALLBACK_LIBRARY_PATH"] = f"{os.getenv('HOMEBREW_PREFIX', '/opt/homebrew')}/lib/"
|
72
73
|
|
73
74
|
|
75
|
+
def _prioritize_src() -> None:
|
76
|
+
if len(sys.path) > 0:
|
77
|
+
src_path = sys.path.pop(-1)
|
78
|
+
sys.path.insert(0, src_path)
|
79
|
+
|
80
|
+
|
74
81
|
def _log_boot_message() -> None:
|
75
82
|
"""Log boot message with version and process information."""
|
76
83
|
logger = get_logger(__name__)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: oe-python-template
|
3
|
-
Version: 0.12.
|
3
|
+
Version: 0.12.13
|
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/
|
@@ -69,8 +69,7 @@ Requires-Dist: jupyter>=1.1.1; extra == 'examples'
|
|
69
69
|
Requires-Dist: marimo>=0.13.0; extra == 'examples'
|
70
70
|
Requires-Dist: streamlit>=1.44.1; extra == 'examples'
|
71
71
|
Provides-Extra: gui
|
72
|
-
Requires-Dist: nicegui[matplotlib,native]
|
73
|
-
Requires-Dist: pywebview==5.4.0; extra == 'gui'
|
72
|
+
Requires-Dist: nicegui[matplotlib,native]>=2.15.0; extra == 'gui'
|
74
73
|
Description-Content-Type: text/markdown
|
75
74
|
|
76
75
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
oe_python_template/__init__.py,sha256=_Z3Xb-x95UODU66avOiwROVaouk_s0ZNB25KFnPoS40,226
|
2
2
|
oe_python_template/api.py,sha256=Hcpj4UYFrZBaE-O8Iwb7poGCCtlMIqrmNiFqJSKElqI,2190
|
3
|
-
oe_python_template/cli.py,sha256=
|
3
|
+
oe_python_template/cli.py,sha256=XI0NSVLQtOAlhlZa8Znizycc3fu6OHl8xI7rJPlheeQ,1612
|
4
4
|
oe_python_template/constants.py,sha256=tIWRWxG7Ob-MwH8ucPplOMO3mCgXPo97acRjydpHiyg,330
|
5
5
|
oe_python_template/hello/__init__.py,sha256=F7aJ_uhTPPnFLT_4GjI2GzjAmKrUhfe4KxqzrljuCVo,485
|
6
6
|
oe_python_template/hello/_api.py,sha256=hWWlEDUfFY1se2ZzhqGMfPyD3FPwuA-YzxG9Q9z4F2o,2294
|
@@ -14,7 +14,7 @@ oe_python_template/system/__init__.py,sha256=7e2z8HATzy3dAIBXy5PM9rlCC7Rbu8m8Nap
|
|
14
14
|
oe_python_template/system/_api.py,sha256=rE9Aau3IIHXdEkOBUXOwJ7SxN3cZpgtYEuojnSWfT_4,3687
|
15
15
|
oe_python_template/system/_cli.py,sha256=D19TuXtGGmxzQ-VkmCD7fmuqKQ5TQoJq9O0VzJKvWVE,6960
|
16
16
|
oe_python_template/system/_gui.py,sha256=uKI-tlBSJXMaxY79wgdYtMttEyu8BLQC1UQLEPOcoZg,653
|
17
|
-
oe_python_template/system/_service.py,sha256=
|
17
|
+
oe_python_template/system/_service.py,sha256=f-EtWEAanajo4S2KeGm26K9_RezYgPza1qVqPRBOFvY,6376
|
18
18
|
oe_python_template/system/_settings.py,sha256=MwMAJYifJ6jGImeSh4e9shmIXmiUSuQGHXz_Ts0mSdk,901
|
19
19
|
oe_python_template/utils/__init__.py,sha256=ggcc7xvH6MJ3kP45lfjmp8yZSPDTeQRaQYbZbG0M7yM,1924
|
20
20
|
oe_python_template/utils/_api.py,sha256=w3hPQK1pL2gBI4_1qNWNa2b4S_oH-8mY-ckRX0KrCWM,617
|
@@ -31,9 +31,9 @@ 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=
|
35
|
-
oe_python_template-0.12.
|
36
|
-
oe_python_template-0.12.
|
37
|
-
oe_python_template-0.12.
|
38
|
-
oe_python_template-0.12.
|
39
|
-
oe_python_template-0.12.
|
34
|
+
oe_python_template/utils/boot.py,sha256=Jty0A8Oq_PshGm-SQkyTD64rytqbUYcUewj7knMLpRk,2850
|
35
|
+
oe_python_template-0.12.13.dist-info/METADATA,sha256=L8MVk2klLcA7g8dBuKzZT7-GpEFevwtBdy24XH9kNfY,33030
|
36
|
+
oe_python_template-0.12.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
37
|
+
oe_python_template-0.12.13.dist-info/entry_points.txt,sha256=IroSSWhLGxus9rxcashkYQda39TTvf7LbUMYtOKXUBE,66
|
38
|
+
oe_python_template-0.12.13.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
|
39
|
+
oe_python_template-0.12.13.dist-info/RECORD,,
|
File without changes
|
{oe_python_template-0.12.12.dist-info → oe_python_template-0.12.13.dist-info}/entry_points.txt
RENAMED
File without changes
|
{oe_python_template-0.12.12.dist-info → oe_python_template-0.12.13.dist-info}/licenses/LICENSE
RENAMED
File without changes
|