corelp 1.0.32__tar.gz → 1.0.33__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.
Files changed (49) hide show
  1. {corelp-1.0.32 → corelp-1.0.33}/PKG-INFO +1 -3
  2. {corelp-1.0.32 → corelp-1.0.33}/pyproject.toml +2 -2
  3. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/Section_LP/Section.py +1 -1
  4. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/user_inputs_LP/user_inputs.py +5 -14
  5. {corelp-1.0.32 → corelp-1.0.33}/README.md +0 -0
  6. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/__init__.py +0 -0
  7. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/icon_pythonLP.png +0 -0
  8. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/Path_LP/Path.py +0 -0
  9. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/Path_LP/__init__.py +0 -0
  10. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/Path_LP/test_Path.py +0 -0
  11. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/Section_LP/__init__.py +0 -0
  12. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/Section_LP/test_Section.py +0 -0
  13. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/__init__.py +0 -0
  14. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/debug_LP/__init__.py +0 -0
  15. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/debug_LP/debug.py +0 -0
  16. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/debug_LP/test_debug.py +0 -0
  17. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/folder_LP/__init__.py +0 -0
  18. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/folder_LP/folder.py +0 -0
  19. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/folder_LP/test_folder.py +0 -0
  20. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/getmodule_LP/__init__.py +0 -0
  21. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/getmodule_LP/getmodule.py +0 -0
  22. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/kwargsself_LP/__init__.py +0 -0
  23. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/kwargsself_LP/kwargsself.py +0 -0
  24. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/kwargsself_LP/test_kwargsself.py +0 -0
  25. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/main_LP/__init__.py +0 -0
  26. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/main_LP/main.py +0 -0
  27. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/main_LP/test_main.py +0 -0
  28. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/print_LP/__init__.py +0 -0
  29. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/print_LP/print.py +0 -0
  30. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/print_LP/test_print.py +0 -0
  31. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/prop_LP/__init__.py +0 -0
  32. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/prop_LP/prop.py +0 -0
  33. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/prop_LP/test_prop.py +0 -0
  34. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/rfrom_LP/__init__.py +0 -0
  35. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/rfrom_LP/rfrom.py +0 -0
  36. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/rfrom_LP/test_rfrom.py +0 -0
  37. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/selfkwargs_LP/__init__.py +0 -0
  38. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/selfkwargs_LP/selfkwargs.py +0 -0
  39. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/selfkwargs_LP/test_selfkwargs.py +0 -0
  40. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/test_LP/__init__.py +0 -0
  41. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/test_LP/test.py +0 -0
  42. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/test_LP/test_test.py +0 -0
  43. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/user_inputs_LP/__init__.py +0 -0
  44. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules/user_inputs_LP/test_user_inputs.py +0 -0
  45. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/modules.json +0 -0
  46. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/py.typed +0 -0
  47. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/pythonLP.png:Zone.Identifier +0 -0
  48. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/scripts/__init__.py +0 -0
  49. {corelp-1.0.32 → corelp-1.0.33}/src/corelp/scripts.json +0 -0
@@ -1,9 +1,7 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: corelp
3
- Version: 1.0.32
3
+ Version: 1.0.33
4
4
  Summary: A library that gathers core functions for python programming.
5
- Requires-Dist: ipython
6
- Requires-Dist: ipywidgets
7
5
  Requires-Dist: joblib
8
6
  Requires-Dist: rich
9
7
  Requires-Python: >=3.12
@@ -1,10 +1,10 @@
1
1
  [project]
2
2
  name = "corelp"
3
- version = "1.0.32"
3
+ version = "1.0.33"
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 = [ "ipython", "ipywidgets", "joblib", "rich",]
7
+ dependencies = [ "joblib", "rich",]
8
8
 
9
9
  [build-system]
10
10
  requires = [ "uv_build>=0.8.8,<0.9.0",]
@@ -14,7 +14,7 @@ This class defines decorator instances allowing to create section functions.
14
14
 
15
15
  # %% Libraries
16
16
  from corelp import print, folder, selfkwargs, kwargsself
17
- from dataclasses import dataclass, field
17
+ from dataclasses import dataclass
18
18
  import pickle
19
19
  import joblib
20
20
  from pathlib import Path
@@ -14,12 +14,10 @@ Gets last user inputs dictionnary from global variables.
14
14
 
15
15
  # %% Libraries
16
16
  import inspect
17
- from IPython import get_ipython
18
17
 
19
18
 
20
19
 
21
20
  # %% Function
22
- _user_inputs = {} # User inputs cache
23
21
 
24
22
  def user_inputs() :
25
23
  r"""
@@ -49,16 +47,8 @@ def user_inputs() :
49
47
  {'a': 1}
50
48
  """
51
49
 
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}
50
+ frame = inspect.currentframe().f_back
51
+ ns = {**frame.f_globals, **frame.f_locals}
62
52
 
63
53
  # ---- Filter user variables (ignore internals starting with "_") ----
64
54
  ns = {k: v for k, v in ns.items() if not k.startswith("_")}
@@ -67,12 +57,13 @@ def user_inputs() :
67
57
  updated = {
68
58
  k: v
69
59
  for k, v in ns.items()
70
- if k not in _user_inputs or _user_inputs[k] is not v
60
+ if k not in user_inputs.cache or user_inputs.cache[k] is not v
71
61
  }
72
62
 
73
- _user_inputs.update(updated)
63
+ user_inputs.cache.update(updated)
74
64
  return updated
75
65
 
66
+ user_inputs.cache = {}
76
67
 
77
68
 
78
69
  # %% Test function run
File without changes
File without changes
File without changes
File without changes
File without changes