corelp 1.0.20__py3-none-any.whl → 1.0.22__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.
@@ -21,7 +21,7 @@ import os
21
21
 
22
22
 
23
23
  # %% Function
24
- def debug(file, new=True) :
24
+ def debug(file, new=True, *, project_index=2) :
25
25
  '''
26
26
  This function will give and create the debug folder for a given python file.
27
27
 
@@ -31,6 +31,8 @@ def debug(file, new=True) :
31
31
  __file__ string in the current python file to be debugged.
32
32
  new : bool
33
33
  True to create new folder at each call.
34
+ project_index : int
35
+ Index of parent of file containing project name, by default 2 : projectlp / modules / module_LP / file.py.
34
36
 
35
37
  Returns
36
38
  -------
@@ -47,7 +49,7 @@ def debug(file, new=True) :
47
49
  # Get paths
48
50
  file = Path(file)
49
51
  module_name = file.stem.replace("test_", "")
50
- lib_name = file.parents[2].name
52
+ lib_name = file.parents[project_index].name # lib_name / modules / module_LP / file.py
51
53
  debug_parent = Path.home() / 'pythonLP/.debug'
52
54
  debug_folder = debug_parent / f'{lib_name}_{module_name}'
53
55
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: corelp
3
- Version: 1.0.20
3
+ Version: 1.0.22
4
4
  Summary: A library that gathers core functions for python programming.
5
5
  Requires-Dist: corelp
6
6
  Requires-Dist: ipykernel
@@ -8,7 +8,7 @@ corelp/modules/Section_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
8
8
  corelp/modules/Section_LP/test_Section.py,sha256=zcrIbJueMDT90t0_M-RD40IWpkx4OT7Q52tE6HzbfIo,812
9
9
  corelp/modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  corelp/modules/debug_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- corelp/modules/debug_LP/debug.py,sha256=bT9sH28DcywGNlI1OsNiUyMO-fTP0Y4OBvIMi-iO7W8,1409
11
+ corelp/modules/debug_LP/debug.py,sha256=Mkn3WPTkaKSXdfmY8ioEwu4OXQqiDoM2Akhbz62Nnis,1623
12
12
  corelp/modules/debug_LP/test_debug.py,sha256=FIDfwO-OAwflEQ5y2djQNUh_-BcxgQDm9jPLvaUdzDo,716
13
13
  corelp/modules/folder_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  corelp/modules/folder_LP/folder.py,sha256=Wd5gaT0oX1rWpXPUcHTVIPQjNPD-IPWPEcGSgetPl1U,2497
@@ -43,6 +43,6 @@ corelp/modules.json,sha256=ZQ8BMU8X2u71wfVj_AufwOoJUPdaxU_AHn7Ohbkp-Pc,3122
43
43
  corelp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
44
  corelp/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
45
  corelp/scripts.json,sha256=RBNvo1WzZ4oRRq0W9-hknpT7T8If536DEMBg9hyq_4o,2
46
- corelp-1.0.20.dist-info/WHEEL,sha256=Pi5uDq5Fdo_Rr-HD5h9BiPn9Et29Y9Sh8NhcJNnFU1c,79
47
- corelp-1.0.20.dist-info/METADATA,sha256=a0DJ_L17-3hiGQe1oZT5ymG2kO4EcIb3LlvLssoUTYM,1949
48
- corelp-1.0.20.dist-info/RECORD,,
46
+ corelp-1.0.22.dist-info/WHEEL,sha256=NHRAbdxxzyL9K3IO2LjmlNqKSyPZnKv2BD16YYVKo18,79
47
+ corelp-1.0.22.dist-info/METADATA,sha256=jGuMR63D14gyyTnEdhxDgLwGbPisKcJ2Qdw12z4q0U4,1949
48
+ corelp-1.0.22.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.8.17
2
+ Generator: uv 0.8.14
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any