corelp 1.0.16__tar.gz → 1.0.17__tar.gz
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.
- {corelp-1.0.16 → corelp-1.0.17}/PKG-INFO +2 -1
- {corelp-1.0.16 → corelp-1.0.17}/pyproject.toml +2 -2
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/user_inputs_LP/user_inputs.py +24 -6
- {corelp-1.0.16 → corelp-1.0.17}/README.md +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/__init__.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/icon_pythonLP.ico +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/Path_LP/Path.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/Path_LP/__init__.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/Path_LP/test_Path.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/Section_LP/Section.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/Section_LP/__init__.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/Section_LP/test_Section.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/__init__.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/debug_LP/__init__.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/debug_LP/debug.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/debug_LP/test_debug.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/folder_LP/__init__.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/folder_LP/folder.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/folder_LP/test_folder.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/getmodule_LP/__init__.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/getmodule_LP/getmodule.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/kwargsself_LP/__init__.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/kwargsself_LP/kwargsself.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/kwargsself_LP/test_kwargsself.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/main_LP/__init__.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/main_LP/main.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/main_LP/test_main.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/print_LP/__init__.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/print_LP/print.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/print_LP/test_print.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/prop_LP/__init__.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/prop_LP/prop.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/prop_LP/test_prop.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/rfrom_LP/__init__.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/rfrom_LP/rfrom.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/rfrom_LP/test_rfrom.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/selfkwargs_LP/__init__.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/selfkwargs_LP/selfkwargs.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/selfkwargs_LP/test_selfkwargs.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/test_LP/__init__.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/test_LP/test.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/test_LP/test_test.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/user_inputs_LP/__init__.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules/user_inputs_LP/test_user_inputs.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/modules.json +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/py.typed +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/scripts/__init__.py +0 -0
- {corelp-1.0.16 → corelp-1.0.17}/src/corelp/scripts.json +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: corelp
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.17
|
|
4
4
|
Summary: A library that gathers core functions for python programming.
|
|
5
5
|
Requires-Dist: corelp
|
|
6
6
|
Requires-Dist: ipykernel
|
|
7
|
+
Requires-Dist: ipython
|
|
7
8
|
Requires-Dist: joblib
|
|
8
9
|
Requires-Dist: pytest
|
|
9
10
|
Requires-Dist: rich
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "corelp"
|
|
3
|
-
version = "1.0.
|
|
3
|
+
version = "1.0.17"
|
|
4
4
|
description = "A library that gathers core functions for python programming."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
7
|
-
dependencies = [ "corelp", "ipykernel", "joblib", "pytest", "rich", "sphinx", "sphinx-design", "sphinx-rtd-theme", "spyder-kernels", "toml",]
|
|
7
|
+
dependencies = [ "corelp", "ipykernel", "ipython", "joblib", "pytest", "rich", "sphinx", "sphinx-design", "sphinx-rtd-theme", "spyder-kernels", "toml",]
|
|
8
8
|
|
|
9
9
|
[build-system]
|
|
10
10
|
requires = [ "uv_build>=0.8.8,<0.9.0",]
|
|
@@ -14,6 +14,7 @@ Gets last user inputs dictionnary from global variables.
|
|
|
14
14
|
|
|
15
15
|
# %% Libraries
|
|
16
16
|
import inspect
|
|
17
|
+
from IPython import get_ipython
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
@@ -48,12 +49,29 @@ def user_inputs() :
|
|
|
48
49
|
{'a': 1}
|
|
49
50
|
"""
|
|
50
51
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
# ---- Detect execution environment ----
|
|
53
|
+
ipy = get_ipython()
|
|
54
|
+
|
|
55
|
+
if ipy is not None:
|
|
56
|
+
# Running in IPython or Jupyter
|
|
57
|
+
ns = ipy.user_ns
|
|
58
|
+
else:
|
|
59
|
+
# Running in normal Python script
|
|
60
|
+
frame = inspect.currentframe().f_back
|
|
61
|
+
ns = {**frame.f_globals, **frame.f_locals}
|
|
62
|
+
|
|
63
|
+
# ---- Filter user variables (ignore internals starting with "_") ----
|
|
64
|
+
ns = {k: v for k, v in ns.items() if not k.startswith("_")}
|
|
65
|
+
|
|
66
|
+
# ---- Return only new or updated variables ----
|
|
67
|
+
updated = {
|
|
68
|
+
k: v
|
|
69
|
+
for k, v in ns.items()
|
|
70
|
+
if k not in _user_inputs or _user_inputs[k] is not v
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
_user_inputs.update(updated)
|
|
74
|
+
return updated
|
|
57
75
|
|
|
58
76
|
|
|
59
77
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|