corelp 1.0.28__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.
- corelp/__init__.py +29 -0
- corelp/icon_pythonLP.ico +0 -0
- corelp/modules/Path_LP/Path.py +92 -0
- corelp/modules/Path_LP/__init__.py +0 -0
- corelp/modules/Path_LP/test_Path.py +37 -0
- corelp/modules/Section_LP/Section.py +176 -0
- corelp/modules/Section_LP/__init__.py +0 -0
- corelp/modules/Section_LP/test_Section.py +43 -0
- corelp/modules/__init__.py +0 -0
- corelp/modules/debug_LP/__init__.py +0 -0
- corelp/modules/debug_LP/debug.py +66 -0
- corelp/modules/debug_LP/test_debug.py +34 -0
- corelp/modules/folder_LP/__init__.py +0 -0
- corelp/modules/folder_LP/folder.py +96 -0
- corelp/modules/folder_LP/test_folder.py +43 -0
- corelp/modules/getmodule_LP/__init__.py +0 -0
- corelp/modules/getmodule_LP/getmodule.py +101 -0
- corelp/modules/kwargsself_LP/__init__.py +0 -0
- corelp/modules/kwargsself_LP/kwargsself.py +80 -0
- corelp/modules/kwargsself_LP/test_kwargsself.py +59 -0
- corelp/modules/main_LP/__init__.py +0 -0
- corelp/modules/main_LP/main.py +237 -0
- corelp/modules/main_LP/test_main.py +74 -0
- corelp/modules/print_LP/__init__.py +0 -0
- corelp/modules/print_LP/print.py +317 -0
- corelp/modules/print_LP/test_print.py +108 -0
- corelp/modules/prop_LP/__init__.py +0 -0
- corelp/modules/prop_LP/prop.py +134 -0
- corelp/modules/prop_LP/test_prop.py +104 -0
- corelp/modules/rfrom_LP/__init__.py +0 -0
- corelp/modules/rfrom_LP/rfrom.py +72 -0
- corelp/modules/rfrom_LP/test_rfrom.py +37 -0
- corelp/modules/selfkwargs_LP/__init__.py +0 -0
- corelp/modules/selfkwargs_LP/selfkwargs.py +51 -0
- corelp/modules/selfkwargs_LP/test_selfkwargs.py +41 -0
- corelp/modules/test_LP/__init__.py +0 -0
- corelp/modules/test_LP/test.py +61 -0
- corelp/modules/test_LP/test_test.py +33 -0
- corelp/modules/user_inputs_LP/__init__.py +0 -0
- corelp/modules/user_inputs_LP/test_user_inputs.py +45 -0
- corelp/modules/user_inputs_LP/user_inputs.py +81 -0
- corelp/modules.json +80 -0
- corelp/py.typed +0 -0
- corelp/scripts/__init__.py +0 -0
- corelp/scripts.json +1 -0
- corelp-1.0.28.dist-info/METADATA +41 -0
- corelp-1.0.28.dist-info/RECORD +48 -0
- corelp-1.0.28.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
# Date : 2025-08-29
|
|
4
|
+
# Author : Lancelot PINCET
|
|
5
|
+
# GitHub : https://github.com/LancelotPincet
|
|
6
|
+
# Library : coreLP
|
|
7
|
+
# Module : rfrom
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
This function allows to do a relative import that works in module and script modes.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# %% Libraries
|
|
16
|
+
import importlib
|
|
17
|
+
import sys
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# %% Function
|
|
21
|
+
def rfrom(module, *functions) :
|
|
22
|
+
'''
|
|
23
|
+
This function allows to do a relative import that works in module and script modes.
|
|
24
|
+
|
|
25
|
+
Parameters
|
|
26
|
+
----------
|
|
27
|
+
module : str
|
|
28
|
+
Name of relative module (with the point).
|
|
29
|
+
functions : str
|
|
30
|
+
Names of objects to import from module.
|
|
31
|
+
|
|
32
|
+
Returns
|
|
33
|
+
-------
|
|
34
|
+
imported : object
|
|
35
|
+
objects imported.
|
|
36
|
+
|
|
37
|
+
Examples
|
|
38
|
+
--------
|
|
39
|
+
>>> from corelp import rfrom
|
|
40
|
+
...
|
|
41
|
+
>>> func = rfrom(".module", "func")
|
|
42
|
+
>>> func1, func2 = rfrom(".module", "func1", "func2")
|
|
43
|
+
'''
|
|
44
|
+
|
|
45
|
+
caller_globals = sys._getframe(1).f_globals
|
|
46
|
+
package = caller_globals.get("__package__")
|
|
47
|
+
|
|
48
|
+
mod = None
|
|
49
|
+
if module.startswith(".") and package:
|
|
50
|
+
# Only attempt relative import if inside a package
|
|
51
|
+
try:
|
|
52
|
+
mod = importlib.import_module(module, package)
|
|
53
|
+
except ImportError:
|
|
54
|
+
pass
|
|
55
|
+
|
|
56
|
+
if mod is None:
|
|
57
|
+
# fallback to absolute import (strip leading dots)
|
|
58
|
+
mod = importlib.import_module(module.lstrip("."))
|
|
59
|
+
|
|
60
|
+
# If no functions asked, returns module
|
|
61
|
+
if len(functions) == 0 :
|
|
62
|
+
return mod
|
|
63
|
+
|
|
64
|
+
imported = tuple(getattr(mod, f) for f in functions)
|
|
65
|
+
return imported[0] if len(imported) == 1 else imported
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
# %% Test function run
|
|
70
|
+
if __name__ == "__main__":
|
|
71
|
+
from corelp import test
|
|
72
|
+
test(__file__)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
# Date : 2025-08-29
|
|
4
|
+
# Author : Lancelot PINCET
|
|
5
|
+
# GitHub : https://github.com/LancelotPincet
|
|
6
|
+
# Library : coreLP
|
|
7
|
+
# Module : rfrom
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
This file allows to test rfrom
|
|
11
|
+
|
|
12
|
+
rfrom : This function allows to do a relative import that works in module and script modes.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# %% Libraries
|
|
18
|
+
from corelp import print, debug
|
|
19
|
+
import pytest
|
|
20
|
+
from corelp import rfrom
|
|
21
|
+
debug_folder = debug(__file__)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# %% Function test
|
|
26
|
+
def test_function() :
|
|
27
|
+
'''
|
|
28
|
+
Test rfrom function
|
|
29
|
+
'''
|
|
30
|
+
print('Hello world!')
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# %% Test function run
|
|
35
|
+
if __name__ == "__main__":
|
|
36
|
+
from corelp import test
|
|
37
|
+
test(__file__)
|
|
File without changes
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
# Date : 2025-08-27
|
|
4
|
+
# Author : Lancelot PINCET
|
|
5
|
+
# GitHub : https://github.com/LancelotPincet
|
|
6
|
+
# Library : coreLP
|
|
7
|
+
# Module : selfkwargs
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
This function takes a dictionnary and sets all its values to an object (self).
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# %% Function
|
|
16
|
+
def selfkwargs(self, kwargs) :
|
|
17
|
+
'''
|
|
18
|
+
This function takes a dictionnary (kwargs) and sets all its values to an object (self).
|
|
19
|
+
|
|
20
|
+
Parameters
|
|
21
|
+
----------
|
|
22
|
+
self : object
|
|
23
|
+
Object instance where to set attributes.
|
|
24
|
+
kwargs : object
|
|
25
|
+
Dictionnary defining which attributes to set and its values.
|
|
26
|
+
|
|
27
|
+
Examples
|
|
28
|
+
--------
|
|
29
|
+
>>> from corelp import selfkwargs
|
|
30
|
+
...
|
|
31
|
+
>>> # Typicall use is in __init__ function :
|
|
32
|
+
>>> class MyClass :
|
|
33
|
+
... def __init__(self, **kwargs) :
|
|
34
|
+
... selkwargs(self, kwargs) # Sets all the keyword arguments to self
|
|
35
|
+
...
|
|
36
|
+
>>> instance = MyClass(a=1, b=2)
|
|
37
|
+
>>> print(instance.a)
|
|
38
|
+
1
|
|
39
|
+
>>> print(instance.b)
|
|
40
|
+
2
|
|
41
|
+
'''
|
|
42
|
+
|
|
43
|
+
for key, value in kwargs.items() :
|
|
44
|
+
setattr(self, key, value)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# %% Test function run
|
|
49
|
+
if __name__ == "__main__":
|
|
50
|
+
from corelp import test
|
|
51
|
+
test(__file__)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
# Date : 2025-08-27
|
|
4
|
+
# Author : Lancelot PINCET
|
|
5
|
+
# GitHub : https://github.com/LancelotPincet
|
|
6
|
+
# Library : coreLP
|
|
7
|
+
# Module : selfkwargs
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
This file allows to test selfkwargs
|
|
11
|
+
|
|
12
|
+
selfkwargs : This function takes a dictionnary and sets all its values to an object (self).
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# %% Libraries
|
|
18
|
+
from corelp import debug, selfkwargs
|
|
19
|
+
import pytest
|
|
20
|
+
debug_folder = debug(__file__)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# %% Function test
|
|
25
|
+
def test_function() :
|
|
26
|
+
'''
|
|
27
|
+
Test selfkwargs
|
|
28
|
+
'''
|
|
29
|
+
class MyClass() :
|
|
30
|
+
def __init__(self, **kwargs) :
|
|
31
|
+
selfkwargs(self, kwargs)
|
|
32
|
+
instance = MyClass(a="a", b="b")
|
|
33
|
+
assert instance.a == "a"
|
|
34
|
+
assert instance.b == "b"
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# %% Test function run
|
|
39
|
+
if __name__ == "__main__":
|
|
40
|
+
from corelp import test
|
|
41
|
+
test(__file__)
|
|
File without changes
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
# Date : 2025-08-25
|
|
4
|
+
# Author : Lancelot PINCET
|
|
5
|
+
# GitHub : https://github.com/LancelotPincet
|
|
6
|
+
# Library : coreLP
|
|
7
|
+
# Module : test
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
This function will launch the testfile for the current file using pytest library.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# %% Libraries
|
|
16
|
+
from pathlib import Path
|
|
17
|
+
import subprocess
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# %% Function
|
|
22
|
+
def test(file, new=True) :
|
|
23
|
+
'''
|
|
24
|
+
This function will launch the testfile for the current file using pytest library.
|
|
25
|
+
|
|
26
|
+
Parameters
|
|
27
|
+
----------
|
|
28
|
+
file : str
|
|
29
|
+
__file__ string in the current python file to be tested.
|
|
30
|
+
new : bool
|
|
31
|
+
True to create a new folder.
|
|
32
|
+
|
|
33
|
+
Examples
|
|
34
|
+
--------
|
|
35
|
+
>>> # %% Test function run
|
|
36
|
+
... if __name__ == "__main__":
|
|
37
|
+
... from corelp import test
|
|
38
|
+
... test(__file__)
|
|
39
|
+
'''
|
|
40
|
+
|
|
41
|
+
# Get paths
|
|
42
|
+
file = Path(file)
|
|
43
|
+
module_folder = file.parent
|
|
44
|
+
file_name = file.name
|
|
45
|
+
test_name = file_name if file_name.startswith('test_') else "test_" + file_name
|
|
46
|
+
test_file = module_folder / test_name
|
|
47
|
+
|
|
48
|
+
# __init__ files
|
|
49
|
+
if file_name == '__init__.py' :
|
|
50
|
+
return None
|
|
51
|
+
|
|
52
|
+
# Testing
|
|
53
|
+
if test_file.exists() :
|
|
54
|
+
subprocess.run(["pytest", "-s", test_name], cwd=module_folder, check=True)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
# %% Test function run
|
|
59
|
+
if __name__ == "__main__":
|
|
60
|
+
from corelp import test
|
|
61
|
+
test(__file__)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
# Date : template_moduledate
|
|
4
|
+
# Author : Lancelot PINCET
|
|
5
|
+
# GitHub : https://github.com/LancelotPincet
|
|
6
|
+
# Library : coreLP
|
|
7
|
+
# Module : test
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
This file allows to test test
|
|
11
|
+
|
|
12
|
+
test : This function will launch the testfile for the current file using pytest library.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# %% Libraries
|
|
18
|
+
from corelp import debug
|
|
19
|
+
import pytest
|
|
20
|
+
debug_folder = debug(__file__)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# %% Test function
|
|
25
|
+
def test_function() :
|
|
26
|
+
print('Hello world!')
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# %% Test function run
|
|
31
|
+
if __name__ == "__main__":
|
|
32
|
+
from corelp import test
|
|
33
|
+
test(__file__)
|
|
File without changes
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
# Date : 2025-11-30
|
|
4
|
+
# Author : Lancelot PINCET
|
|
5
|
+
# GitHub : https://github.com/LancelotPincet
|
|
6
|
+
# Library : coreLP
|
|
7
|
+
# Module : user_inputs
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
This file allows to test user_inputs
|
|
11
|
+
|
|
12
|
+
user_inputs : Gets last user inputs dictionnary from global variables.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# %% Libraries
|
|
18
|
+
from corelp import print, debug
|
|
19
|
+
import pytest
|
|
20
|
+
from corelp import user_inputs
|
|
21
|
+
debug_folder = debug(__file__)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# %% Function test
|
|
26
|
+
def test_user_inputs() :
|
|
27
|
+
'''
|
|
28
|
+
Test user_inputs function
|
|
29
|
+
'''
|
|
30
|
+
user_inputs() #init
|
|
31
|
+
a = 1
|
|
32
|
+
inputs = user_inputs()
|
|
33
|
+
if inputs != {'a': 1} :
|
|
34
|
+
raise ValueError(f'{inputs} should be dict(a=1)')
|
|
35
|
+
user_inputs() #init
|
|
36
|
+
b = 2
|
|
37
|
+
if user_inputs() != {'b': 2} :
|
|
38
|
+
raise ValueError(f'{inputs} should be dict(b=2)')
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# %% Test function run
|
|
43
|
+
if __name__ == "__main__":
|
|
44
|
+
from corelp import test
|
|
45
|
+
test(__file__)
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
# Date : 2025-11-30
|
|
4
|
+
# Author : Lancelot PINCET
|
|
5
|
+
# GitHub : https://github.com/LancelotPincet
|
|
6
|
+
# Library : coreLP
|
|
7
|
+
# Module : user_inputs
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
Gets last user inputs dictionnary from global variables.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# %% Libraries
|
|
16
|
+
import inspect
|
|
17
|
+
from IPython import get_ipython
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# %% Function
|
|
22
|
+
_user_inputs = {} # User inputs cache
|
|
23
|
+
|
|
24
|
+
def user_inputs() :
|
|
25
|
+
r"""
|
|
26
|
+
Return a dictionary of variables defined by the user in the interactive
|
|
27
|
+
environment.
|
|
28
|
+
|
|
29
|
+
This function is intended for use inside other functions via
|
|
30
|
+
``function(**user_inputs())``.
|
|
31
|
+
**It should not be used to store its return value**, e.g. **do not do**::
|
|
32
|
+
|
|
33
|
+
variable = user_inputs()
|
|
34
|
+
|
|
35
|
+
Instead, call it directly when needed.
|
|
36
|
+
|
|
37
|
+
Returns
|
|
38
|
+
-------
|
|
39
|
+
dict
|
|
40
|
+
A dictionary containing the user's currently defined variables.
|
|
41
|
+
|
|
42
|
+
Examples
|
|
43
|
+
--------
|
|
44
|
+
>>> from corelp import user_inputs
|
|
45
|
+
>>> user_inputs() # First call (initializes and clears import-related variables)
|
|
46
|
+
{}
|
|
47
|
+
>>> a = 1 # User defines a variable
|
|
48
|
+
>>> user_inputs() # Now returns: {'a': 1}
|
|
49
|
+
{'a': 1}
|
|
50
|
+
"""
|
|
51
|
+
|
|
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
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
# %% Test function run
|
|
79
|
+
if __name__ == "__main__":
|
|
80
|
+
from corelp import test
|
|
81
|
+
test(__file__)
|
corelp/modules.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Path": {
|
|
3
|
+
"date": "2025-09-02",
|
|
4
|
+
"description": "This function is a wrapper around the pathlib.Path and returns a compatible Path with a windows path copied inside Linux (for WSL)",
|
|
5
|
+
"module": "modules/Path_LP/Path",
|
|
6
|
+
"object": "Path"
|
|
7
|
+
},
|
|
8
|
+
"Section": {
|
|
9
|
+
"date": "2025-08-28",
|
|
10
|
+
"description": "This class defines decorator instances allowing to create section functions.",
|
|
11
|
+
"module": "modules/Section_LP/Section",
|
|
12
|
+
"object": "Section"
|
|
13
|
+
},
|
|
14
|
+
"debug": {
|
|
15
|
+
"date": "2025-08-25",
|
|
16
|
+
"description": "This function will give and create the debug folder for a given python file.",
|
|
17
|
+
"module": "modules/debug_LP/debug",
|
|
18
|
+
"object": "debug"
|
|
19
|
+
},
|
|
20
|
+
"folder": {
|
|
21
|
+
"date": "2025-08-25",
|
|
22
|
+
"description": "This function creates a new folder, while crushing previous instances if already exists.",
|
|
23
|
+
"module": "modules/folder_LP/folder",
|
|
24
|
+
"object": "folder"
|
|
25
|
+
},
|
|
26
|
+
"getmodule": {
|
|
27
|
+
"date": "2025-08-25",
|
|
28
|
+
"description": "This function is to be used in a library __init__ file. It creates lazy imports of the module imported and defines __getattr__ and __all__ for this library.",
|
|
29
|
+
"module": "modules/getmodule_LP/getmodule",
|
|
30
|
+
"object": "getmodule"
|
|
31
|
+
},
|
|
32
|
+
"kwargsself": {
|
|
33
|
+
"date": "2025-08-27",
|
|
34
|
+
"description": "This function will return all the attributes of an object (self) into a dictionnary (kwargs)",
|
|
35
|
+
"module": "modules/kwargsself_LP/kwargsself",
|
|
36
|
+
"object": "kwargsself"
|
|
37
|
+
},
|
|
38
|
+
"main": {
|
|
39
|
+
"date": "2025-08-28",
|
|
40
|
+
"description": "This function can decorate the main function of a script.",
|
|
41
|
+
"module": "modules/main_LP/main",
|
|
42
|
+
"object": "main"
|
|
43
|
+
},
|
|
44
|
+
"print": {
|
|
45
|
+
"date": "2025-08-27",
|
|
46
|
+
"description": "This function overrides python built in print function to add functionnalities.",
|
|
47
|
+
"module": "modules/print_LP/print",
|
|
48
|
+
"object": "print"
|
|
49
|
+
},
|
|
50
|
+
"prop": {
|
|
51
|
+
"date": "2025-08-25",
|
|
52
|
+
"description": "This function serves as an improved property decorator.",
|
|
53
|
+
"module": "modules/prop_LP/prop",
|
|
54
|
+
"object": "prop"
|
|
55
|
+
},
|
|
56
|
+
"rfrom": {
|
|
57
|
+
"date": "2025-08-29",
|
|
58
|
+
"description": "This function allows to do a relative import that works in module and script modes.",
|
|
59
|
+
"module": "modules/rfrom_LP/rfrom",
|
|
60
|
+
"object": "rfrom"
|
|
61
|
+
},
|
|
62
|
+
"selfkwargs": {
|
|
63
|
+
"date": "2025-08-27",
|
|
64
|
+
"description": "This function takes a dictionnary and sets all its values to an object (self).",
|
|
65
|
+
"module": "modules/selfkwargs_LP/selfkwargs",
|
|
66
|
+
"object": "selfkwargs"
|
|
67
|
+
},
|
|
68
|
+
"test": {
|
|
69
|
+
"date": "2025-08-25",
|
|
70
|
+
"description": "This function will launch the testfile for the current file using pytest library.",
|
|
71
|
+
"module": "modules/test_LP/test",
|
|
72
|
+
"object": "test"
|
|
73
|
+
},
|
|
74
|
+
"user_inputs": {
|
|
75
|
+
"date": "2025-11-30",
|
|
76
|
+
"description": "Gets last user inputs dictionnary from global variables.",
|
|
77
|
+
"module": "modules/user_inputs_LP/user_inputs",
|
|
78
|
+
"object": "user_inputs"
|
|
79
|
+
}
|
|
80
|
+
}
|
corelp/py.typed
ADDED
|
File without changes
|
|
File without changes
|
corelp/scripts.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: corelp
|
|
3
|
+
Version: 1.0.28
|
|
4
|
+
Summary: A library that gathers core functions for python programming.
|
|
5
|
+
Requires-Dist: ipython
|
|
6
|
+
Requires-Dist: ipywidgets
|
|
7
|
+
Requires-Dist: joblib
|
|
8
|
+
Requires-Dist: rich
|
|
9
|
+
Requires-Python: >=3.12
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
# coreLP
|
|
13
|
+
|
|
14
|
+
```text
|
|
15
|
+
Author : Lancelot PINCET
|
|
16
|
+
GitHub : https://github.com/LancelotPincet/coreLP
|
|
17
|
+
HTTPS : https://github.com/LancelotPincet/coreLP.git
|
|
18
|
+
SSH : git@github.com:LancelotPincet/coreLP.git
|
|
19
|
+
PyPI : https://pypi.org/project/coreLP
|
|
20
|
+
Docs : https://coreLP.readthedocs.io
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**A library that gathers core functions for python programming.**
|
|
24
|
+
|
|
25
|
+
coreLP is available on [PyPI](https://pypi.org/project/coreLP) for pip installs.
|
|
26
|
+
For more information, do not hesitate to consult the [Documentation](https://coreLP.readthedocs.io).
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## MIT License
|
|
31
|
+
|
|
32
|
+
<details>
|
|
33
|
+
<summary>details</summary>
|
|
34
|
+
|
|
35
|
+
Intellectual property behind this Library is protected via an [MIT license](LICENSE). This means everyone can *freely* use it in a personnal, academic or commercial manner, if they **keep the copyright name** at the top of the codes.
|
|
36
|
+
|
|
37
|
+
The library can be redistributed, *with or without modifications*, in open or closed projects. However the **MIT license must be conserved**. For example in a commercial closed project, this means the **copyright and license must be visible somewhere**, like in the documentation or credits.
|
|
38
|
+
|
|
39
|
+
The license also explains that the **code performances are not warrantied**, and you are responsible for how you are using it. For more information on your rights and obligations please refer to [descriptive websites](https://en.wikipedia.org/wiki/MIT_License), or contact author for approvales.
|
|
40
|
+
|
|
41
|
+
</details>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
corelp/__init__.py,sha256=B3HNFgCh9DLRahtokFJYbbHSJeeA6XPrLYAnpGuY7MQ,684
|
|
2
|
+
corelp/icon_pythonLP.ico,sha256=D2ANffgbGXpJlr9wqtB7ysuq6UM-lIC2wDyDTrebjFA,67646
|
|
3
|
+
corelp/modules/Path_LP/Path.py,sha256=wfvO1DuewIUSEA9_g66O5nCEp95Pr5XM-yxaOOEimTs,2418
|
|
4
|
+
corelp/modules/Path_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
corelp/modules/Path_LP/test_Path.py,sha256=8VSn9VVbhc3EDxXpxQV18rnAq_T2a1uuoRFKdmsqX-I,715
|
|
6
|
+
corelp/modules/Section_LP/Section.py,sha256=D8zdQ6HXopfZ0JMdUD8s_dNaWq6mWAnsQvOyQpFedKw,6048
|
|
7
|
+
corelp/modules/Section_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
corelp/modules/Section_LP/test_Section.py,sha256=zcrIbJueMDT90t0_M-RD40IWpkx4OT7Q52tE6HzbfIo,812
|
|
9
|
+
corelp/modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
+
corelp/modules/debug_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
corelp/modules/debug_LP/debug.py,sha256=Mkn3WPTkaKSXdfmY8ioEwu4OXQqiDoM2Akhbz62Nnis,1623
|
|
12
|
+
corelp/modules/debug_LP/test_debug.py,sha256=FIDfwO-OAwflEQ5y2djQNUh_-BcxgQDm9jPLvaUdzDo,716
|
|
13
|
+
corelp/modules/folder_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
+
corelp/modules/folder_LP/folder.py,sha256=Wd5gaT0oX1rWpXPUcHTVIPQjNPD-IPWPEcGSgetPl1U,2497
|
|
15
|
+
corelp/modules/folder_LP/test_folder.py,sha256=zccBcsE10dTQLnCX7tK-Fa2n3F_JzmyzSkQVAXz50yw,928
|
|
16
|
+
corelp/modules/getmodule_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
+
corelp/modules/getmodule_LP/getmodule.py,sha256=7I4ehsBtgfi-wUyiQ5eT07lc8FiUVN7Fbdm0pXLA5T4,2694
|
|
18
|
+
corelp/modules/kwargsself_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
|
+
corelp/modules/kwargsself_LP/kwargsself.py,sha256=24HVn1G7ALdhQFSLT0U2dVjVzop6c2s-nr7DrMK53iw,1865
|
|
20
|
+
corelp/modules/kwargsself_LP/test_kwargsself.py,sha256=BaqGu0bqFuFemiYUEDMviFfegTb0aF6lmeFm3KJa8sw,1241
|
|
21
|
+
corelp/modules/main_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
|
+
corelp/modules/main_LP/main.py,sha256=I7D1gYv9AQq2DWU21blB8nL2RlqpexLEE5p1DLdoPdo,9288
|
|
23
|
+
corelp/modules/main_LP/test_main.py,sha256=mxL645pZdkJ8J5MFdj0K-z8xRCGKQ0zw1NvmW3iPGB4,1741
|
|
24
|
+
corelp/modules/print_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
|
+
corelp/modules/print_LP/print.py,sha256=7TYjAGypT_TI0UHmL9F8zPL7gjFfJn2DnCpx0cu4IGM,8565
|
|
26
|
+
corelp/modules/print_LP/test_print.py,sha256=uMmCrnyIVSlZg_ZEOk2mr5zDlEpTN2KMq4jFu5p6n4I,2292
|
|
27
|
+
corelp/modules/prop_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
|
+
corelp/modules/prop_LP/prop.py,sha256=lfsENmjg65mpXxt9V9n3Nn__wHgNJA61l8_UXBKn1lc,3999
|
|
29
|
+
corelp/modules/prop_LP/test_prop.py,sha256=X5GJwIyik5Gzd6Z28h1kGdZzVVhb1D5FXTHXvXBbwfA,2302
|
|
30
|
+
corelp/modules/rfrom_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
|
+
corelp/modules/rfrom_LP/rfrom.py,sha256=f5-zPUUxlxInnaBM_WMuAaSMjdaoyOjsn5WbpLIfSVk,1690
|
|
32
|
+
corelp/modules/rfrom_LP/test_rfrom.py,sha256=e6Q-PmvsNT7CrZOjrjW_-xrLDYyfqfTkLwC6y0lhz9Q,673
|
|
33
|
+
corelp/modules/selfkwargs_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
|
+
corelp/modules/selfkwargs_LP/selfkwargs.py,sha256=7yWkpVQRwb2VnDPUGxREXjyVIn0n8RpptlP3lnP57wU,1203
|
|
35
|
+
corelp/modules/selfkwargs_LP/test_selfkwargs.py,sha256=Ex-y60W9oD1OUtDlRvyxn-Wlq1l3JmIJY0Iot2uGQbY,826
|
|
36
|
+
corelp/modules/test_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
|
+
corelp/modules/test_LP/test.py,sha256=KwAeIZWQ7pZX85J50q6qfB4HuJUgREu1ieB_byPqI2g,1361
|
|
38
|
+
corelp/modules/test_LP/test_test.py,sha256=sXI6G4OBnWXSqrfMy9QdabkYIvcD80EmnNcnQiXxcRI,605
|
|
39
|
+
corelp/modules/user_inputs_LP/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
40
|
+
corelp/modules/user_inputs_LP/test_user_inputs.py,sha256=lK8pYm5q5ob9ry3T-gU3J_-KZMKWCCmeuFjjH7DkF_8,927
|
|
41
|
+
corelp/modules/user_inputs_LP/user_inputs.py,sha256=2lGkIl2dA_1mcDB8ExvJg4xlcx26viKi878M9ml0MUo,1964
|
|
42
|
+
corelp/modules.json,sha256=ZQ8BMU8X2u71wfVj_AufwOoJUPdaxU_AHn7Ohbkp-Pc,3122
|
|
43
|
+
corelp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
44
|
+
corelp/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
45
|
+
corelp/scripts.json,sha256=RBNvo1WzZ4oRRq0W9-hknpT7T8If536DEMBg9hyq_4o,2
|
|
46
|
+
corelp-1.0.28.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
|
|
47
|
+
corelp-1.0.28.dist-info/METADATA,sha256=ZuuQnpjGFKhTSOVG4DaXwHWPBJFdRq4NjrXZL4d2czU,1747
|
|
48
|
+
corelp-1.0.28.dist-info/RECORD,,
|