corelp 1.0.24__tar.gz → 1.0.26__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 (48) hide show
  1. {corelp-1.0.24 → corelp-1.0.26}/PKG-INFO +1 -8
  2. {corelp-1.0.24 → corelp-1.0.26}/pyproject.toml +7 -2
  3. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/Section_LP/Section.py +1 -1
  4. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/main_LP/main.py +3 -3
  5. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/prop_LP/prop.py +12 -5
  6. {corelp-1.0.24 → corelp-1.0.26}/README.md +0 -0
  7. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/__init__.py +0 -0
  8. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/icon_pythonLP.ico +0 -0
  9. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/Path_LP/Path.py +0 -0
  10. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/Path_LP/__init__.py +0 -0
  11. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/Path_LP/test_Path.py +0 -0
  12. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/Section_LP/__init__.py +0 -0
  13. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/Section_LP/test_Section.py +0 -0
  14. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/__init__.py +0 -0
  15. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/debug_LP/__init__.py +0 -0
  16. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/debug_LP/debug.py +0 -0
  17. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/debug_LP/test_debug.py +0 -0
  18. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/folder_LP/__init__.py +0 -0
  19. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/folder_LP/folder.py +0 -0
  20. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/folder_LP/test_folder.py +0 -0
  21. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/getmodule_LP/__init__.py +0 -0
  22. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/getmodule_LP/getmodule.py +0 -0
  23. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/kwargsself_LP/__init__.py +0 -0
  24. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/kwargsself_LP/kwargsself.py +0 -0
  25. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/kwargsself_LP/test_kwargsself.py +0 -0
  26. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/main_LP/__init__.py +0 -0
  27. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/main_LP/test_main.py +0 -0
  28. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/print_LP/__init__.py +0 -0
  29. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/print_LP/print.py +0 -0
  30. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/print_LP/test_print.py +0 -0
  31. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/prop_LP/__init__.py +0 -0
  32. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/prop_LP/test_prop.py +0 -0
  33. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/rfrom_LP/__init__.py +0 -0
  34. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/rfrom_LP/rfrom.py +0 -0
  35. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/rfrom_LP/test_rfrom.py +0 -0
  36. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/selfkwargs_LP/__init__.py +0 -0
  37. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/selfkwargs_LP/selfkwargs.py +0 -0
  38. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/selfkwargs_LP/test_selfkwargs.py +0 -0
  39. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/test_LP/__init__.py +0 -0
  40. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/test_LP/test.py +0 -0
  41. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/test_LP/test_test.py +0 -0
  42. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/user_inputs_LP/__init__.py +0 -0
  43. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/user_inputs_LP/test_user_inputs.py +0 -0
  44. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules/user_inputs_LP/user_inputs.py +0 -0
  45. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/modules.json +0 -0
  46. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/py.typed +0 -0
  47. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/scripts/__init__.py +0 -0
  48. {corelp-1.0.24 → corelp-1.0.26}/src/corelp/scripts.json +0 -0
@@ -1,18 +1,11 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: corelp
3
- Version: 1.0.24
3
+ Version: 1.0.26
4
4
  Summary: A library that gathers core functions for python programming.
5
- Requires-Dist: ipykernel
6
5
  Requires-Dist: ipython
7
6
  Requires-Dist: ipywidgets
8
7
  Requires-Dist: joblib
9
- Requires-Dist: pytest
10
8
  Requires-Dist: rich
11
- Requires-Dist: sphinx
12
- Requires-Dist: sphinx-design
13
- Requires-Dist: sphinx-rtd-theme
14
- Requires-Dist: spyder-kernels
15
- Requires-Dist: toml
16
9
  Requires-Python: >=3.12
17
10
  Description-Content-Type: text/markdown
18
11
 
@@ -1,14 +1,19 @@
1
1
  [project]
2
2
  name = "corelp"
3
- version = "1.0.24"
3
+ version = "1.0.26"
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 = [ "ipykernel", "ipython", "ipywidgets", "joblib", "pytest", "rich", "sphinx", "sphinx-design", "sphinx-rtd-theme", "spyder-kernels", "toml",]
7
+ dependencies = [ "ipython", "ipywidgets", "joblib", "rich",]
8
8
 
9
9
  [build-system]
10
10
  requires = [ "uv_build>=0.8.8,<0.9.0",]
11
11
  build-backend = "uv_build"
12
12
 
13
+ [dependency-groups]
14
+ dev = [ "pytest",]
15
+ docs = [ "sphinx", "sphinx-design", "sphinx-rtd-theme", "toml",]
16
+ anaconda = [ "ipykernel", "spyder-kernels",]
17
+
13
18
  [tool.uv]
14
19
  required-environments = [ "sys_platform == 'linux' and platform_machine == 'x86_64'", "sys_platform == 'win32' and (platform_machine == 'AMD64' or platform_machine == 'x86_64')",]
@@ -156,7 +156,7 @@ class Section() :
156
156
  print("Windows does not allow to create symlink, aborting. Consider using Windows in Developper mode.")
157
157
  break
158
158
  else:
159
- link_to.symlink_to(link_from)
159
+ link_to.symlink_to(link_from, link_from.is_dir())
160
160
  print('...created\n')
161
161
 
162
162
 
@@ -192,7 +192,7 @@ def main() :
192
192
 
193
193
  #Applying function
194
194
  print("\n---\n")
195
- subfolder_string = f"{export_subfolder }" if export_subfolder != "" else ""
195
+ subfolder_string = f"{export_subfolder}" if export_subfolder != "" else ""
196
196
  print(f'## Launched script {subfolder_string}\n')
197
197
  tic = time.perf_counter()
198
198
  try :
@@ -202,7 +202,7 @@ def main() :
202
202
  except Exception as e :
203
203
  toc = time.perf_counter()
204
204
  print.error()
205
- print(f'\n## **{subfolder_string}took {toc-tic:.2f}s**')
205
+ print(f'\n## **{subfolder_string} took {toc-tic:.2f}s**')
206
206
  print("\n---\n")
207
207
  if not _overnight :
208
208
  raise e
@@ -210,7 +210,7 @@ def main() :
210
210
  # No error
211
211
  else :
212
212
  toc = time.perf_counter()
213
- print(f'\n## **{subfolder_string}took {toc-tic:.2f}s**')
213
+ print(f'\n## **{subfolder_string} took {toc-tic:.2f}s**')
214
214
  print("\n---\n")
215
215
 
216
216
  # END
@@ -25,7 +25,7 @@ def prop(*, cache=False, variable=False, link=None) :
25
25
  cache : bool
26
26
  True to set readonly attribute at first call.
27
27
  variable : bool
28
- True to create a getter that will always use the _attr as a variable.
28
+ True to create a getter that will always use the _attr as a variable. [defines only setter, getter is normal]
29
29
  link : bool
30
30
  True to link property to another object attribute.
31
31
 
@@ -103,16 +103,23 @@ def defaultproperty(cache, variable):
103
103
 
104
104
  def linkproperty(link):
105
105
  def decorator(func) :
106
+ attribut = func.__name__
106
107
 
107
108
  def getter(self):
108
109
  obj = getattr(self, link) if isinstance(link, str) else link
109
- attribut = func(self)
110
- return getattr(obj, f'{attribut}')
110
+ if obj is None : # If link failed, uses default _attribut
111
+ return getattr(self, attribut, None)
112
+ else :
113
+ obj_attribut = func(self)
114
+ return getattr(obj, f'{obj_attribut}')
111
115
 
112
116
  def setter(self, value):
113
117
  obj = getattr(self, link) if isinstance(link, str) else link
114
- attribut = func(self)
115
- setattr(obj, f'{attribut}', value)
118
+ if obj is None : # If link failed, uses default _attribut
119
+ setattr(self, f'_{attribut}', value)
120
+ else :
121
+ obj_attribut = func(self)
122
+ setattr(obj, f'{obj_attribut}', value)
116
123
 
117
124
  prop = property(getter, setter)
118
125
 
File without changes
File without changes
File without changes
File without changes
File without changes