python-base-toolkit 1.0.5__py3-none-any.whl → 1.1.1__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.
@@ -0,0 +1 @@
1
+ LOGGER_NAME = "python_base_toolkit"
@@ -7,7 +7,9 @@ from typing import Any
7
7
 
8
8
  from custom_python_logger import get_logger
9
9
 
10
- logger = get_logger(__name__)
10
+ from python_base_toolkit.consts import LOGGER_NAME
11
+
12
+ logger = get_logger(LOGGER_NAME)
11
13
 
12
14
 
13
15
  def report_telemetry(
@@ -5,7 +5,9 @@ from typing import Any
5
5
 
6
6
  from custom_python_logger import get_logger
7
7
 
8
- logger = get_logger(__name__)
8
+ from python_base_toolkit.consts import LOGGER_NAME
9
+
10
+ logger = get_logger(LOGGER_NAME)
9
11
 
10
12
 
11
13
  class Timer:
@@ -1,9 +1,11 @@
1
1
  from custom_python_logger.logger import get_logger
2
2
 
3
+ from python_base_toolkit.consts import LOGGER_NAME
4
+
3
5
 
4
6
  class InstanceManager:
5
7
  def __init__(self) -> None:
6
- self.logger = get_logger(__class__.__name__)
8
+ self.logger = get_logger(LOGGER_NAME)
7
9
  self._instances = []
8
10
 
9
11
  def add(self, instance: object) -> None:
@@ -31,7 +33,7 @@ class InstanceManager:
31
33
  def main() -> None:
32
34
  class SomeInstance:
33
35
  def __init__(self, add_to_instance_manager: bool = False) -> None:
34
- self.logger = get_logger(__class__.__name__)
36
+ self.logger = get_logger(LOGGER_NAME)
35
37
 
36
38
  if add_to_instance_manager:
37
39
  instance_manager.add(self) # pylint: disable=E0601
@@ -10,7 +10,9 @@ import pandas as pd
10
10
  from custom_python_logger import get_logger
11
11
  from pydantic import BaseModel
12
12
 
13
- logger = get_logger(__name__)
13
+ from python_base_toolkit.consts import LOGGER_NAME
14
+
15
+ logger = get_logger(LOGGER_NAME)
14
16
 
15
17
 
16
18
  def default_serialize(obj: object) -> object:
@@ -12,7 +12,9 @@ from typing import Any, BinaryIO, TextIO, cast
12
12
  import yaml
13
13
  from custom_python_logger import get_logger
14
14
 
15
- logger = get_logger(__name__)
15
+ from python_base_toolkit.consts import LOGGER_NAME
16
+
17
+ logger = get_logger(LOGGER_NAME)
16
18
 
17
19
 
18
20
  class _FileCompression:
@@ -4,7 +4,9 @@ from datetime import datetime
4
4
 
5
5
  from custom_python_logger import get_logger
6
6
 
7
- logger = get_logger(__name__)
7
+ from python_base_toolkit.consts import LOGGER_NAME
8
+
9
+ logger = get_logger(LOGGER_NAME)
8
10
 
9
11
 
10
12
  def generate_id(length: int = 8) -> str:
@@ -4,9 +4,10 @@ import re
4
4
 
5
5
  from custom_python_logger import get_logger
6
6
 
7
+ from python_base_toolkit.consts import LOGGER_NAME
7
8
  from python_base_toolkit.consts.operating_system import Platform
8
9
 
9
- logger = get_logger(__name__)
10
+ logger = get_logger(LOGGER_NAME)
10
11
 
11
12
 
12
13
  def is_ip_address(ip: str) -> bool:
@@ -5,7 +5,9 @@ from typing import Any
5
5
 
6
6
  from custom_python_logger import get_logger
7
7
 
8
- logger = get_logger(__name__)
8
+ from python_base_toolkit.consts import LOGGER_NAME
9
+
10
+ logger = get_logger(LOGGER_NAME)
9
11
 
10
12
 
11
13
  def log_in_format(
@@ -3,9 +3,10 @@ from pathlib import Path
3
3
 
4
4
  from custom_python_logger.logger import get_logger
5
5
 
6
+ from python_base_toolkit.consts import LOGGER_NAME
6
7
  from python_base_toolkit.utils.path_utils import get_project_path_by_file
7
8
 
8
- logger = get_logger(__name__)
9
+ logger = get_logger(LOGGER_NAME)
9
10
 
10
11
 
11
12
  def delete_pycache_folder(root_dir: Path = None, ignored_dirs: set = None) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-base-toolkit
3
- Version: 1.0.5
3
+ Version: 1.1.1
4
4
  Summary: A Python package for managing pytest plugins.
5
5
  Author: Avi Zaguri
6
6
  License: MIT
@@ -18,7 +18,7 @@ Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
19
  Requires-Dist: build>=1.3.0
20
20
  Requires-Dist: colorlog>=6.10.1
21
- Requires-Dist: custom-python-logger>=2.0.11
21
+ Requires-Dist: custom-python-logger>=4.0.0
22
22
  Requires-Dist: pandas>=2.3.3
23
23
  Requires-Dist: pathlib>=1.0.1
24
24
  Requires-Dist: pre-commit>=4.5.0
@@ -1,4 +1,5 @@
1
1
  python_base_toolkit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ python_base_toolkit/consts.py,sha256=kbrqVucBNdTiyLucm4oQ13aI7nPsDRfLhCUZB6bCA9s,36
2
3
  python_base_toolkit/base_structures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
4
  python_base_toolkit/base_structures/base_enum.py,sha256=pnKIBvGGudkwAbbE7C2dITVdZGclXWOvvVuat3erLMo,1324
4
5
  python_base_toolkit/base_structures/base_pydantic_model.py,sha256=kS_cXzlXFxJUbMnxANqSvxiRo0hfp0575KHTw1RP2t0,1239
@@ -16,28 +17,28 @@ python_base_toolkit/consts/units/__init__.py,sha256=1sTK8_l5mO1Osk5dD9aWkyPVXrvY
16
17
  python_base_toolkit/consts/units/binary_units.py,sha256=fgRAP6HXIis6OX4uK8woD-OVD7HtBOBDuhDxJ6AGZVE,412
17
18
  python_base_toolkit/consts/units/time_units.py,sha256=aDwRnRR_mbOn2B7NUB9b2-qO98CLFzNE8-ZKfwUZ09Q,216
18
19
  python_base_toolkit/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
- python_base_toolkit/decorators/telemetry.py,sha256=XKQTYbTqt_3mLVyin5HY7ucgAyAs_hRX_qRd-d7zRJ4,1416
20
- python_base_toolkit/decorators/timer.py,sha256=GBGiQOblRIw2rZWgWCuw1KtopMSjwCsmZPKmk00Ikgk,1104
20
+ python_base_toolkit/decorators/telemetry.py,sha256=pMB9TFCamWqXz-U6uAKe9P-yI7Y-SnfFn37FtzpOjDI,1471
21
+ python_base_toolkit/decorators/timer.py,sha256=5YT3Oq3Wk3EFaNzhFzGsBORsFP7LQaEXx1qqvXgDZc4,1159
21
22
  python_base_toolkit/instances/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
- python_base_toolkit/instances/instance_manager.py,sha256=iq72kcPlbc7-AQTuKcBOeqKZbC8vYcsU5GiFXvt5UMs,2278
23
+ python_base_toolkit/instances/instance_manager.py,sha256=eJuEwC6pRbrRhCUw1-EL67ofxkPgY-16abmPWPf4bHQ,2316
23
24
  python_base_toolkit/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
25
  python_base_toolkit/scripts/remove_build_files.py,sha256=461h7BkuwhaCBK17fbxDc3n_nQhL5aCXm3VP52s8sW8,694
25
26
  python_base_toolkit/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
- python_base_toolkit/utils/data_serialization.py,sha256=Wwi9DQfymNgPj3_fJDUpKoA6U-BE8cJyf1-3qLD7ngE,1295
27
+ python_base_toolkit/utils/data_serialization.py,sha256=oNXnYGPNV0l4KMV5ijVBkmcuFQYdRsU_AZmm4ZMuKPo,1350
27
28
  python_base_toolkit/utils/date_time.py,sha256=MAJ1QQ5HGfwKSk5kPtViGkwC3jhZOdPUvdecvjWREnY,636
28
29
  python_base_toolkit/utils/execute.py,sha256=6QYQWd1Z15Ofb4gcAtXCx90l1D-REwTWDZNybU6OibM,1560
29
- python_base_toolkit/utils/file_utils.py,sha256=XGiFocSNpb77GeX_hEuR_7juNsSwA-RikpH1CvEG4TM,8793
30
- python_base_toolkit/utils/generate_id.py,sha256=cXyt7AbHRvKvPsKzVE-zFZ3fPIcJ-VVhCaUh63yYUOA,817
30
+ python_base_toolkit/utils/file_utils.py,sha256=fjwhPtbhM4yRl9m8u_HEh5X61JWdyqsgygvYR9swm3U,8848
31
+ python_base_toolkit/utils/generate_id.py,sha256=S_IzAoArXeX_kdkFBdvoW4Ldkr3ggw-7FM9F01eSRZo,872
31
32
  python_base_toolkit/utils/logo.py,sha256=GXCSyPR7RXNshTuMUq1pqZGVZUSJfaktCOv8dWLSz5Q,140
32
- python_base_toolkit/utils/network.py,sha256=9Y3appWnaIvliA8Jit6vM0uZOmwf6sDVRwzp6BIouHw,4922
33
+ python_base_toolkit/utils/network.py,sha256=knyCFkzA0Uzhe4AVz3aVBimzVbD6iKcFyYbXUC01GAM,4976
33
34
  python_base_toolkit/utils/path_utils.py,sha256=acuNOdWFtkW_XGyCj1bVgLCFt77lEuvpxyql7PVQk2w,1049
34
- python_base_toolkit/utils/pretty_print.py,sha256=tj1b6zYSsTLBRFfRMXVx3sYv09T5PvslXV8dpBAeq7g,555
35
- python_base_toolkit/utils/pycache.py,sha256=X-pWRjAd2xcBtMkcyCuKz34SbHWc2leBHBIjqOVoXmw,911
35
+ python_base_toolkit/utils/pretty_print.py,sha256=uLjK09fKzdpBoroFIcWmJs53rx1v3SU2T_RGFF0cZF4,610
36
+ python_base_toolkit/utils/pycache.py,sha256=DPqazuRDNHm9qGIIl8ia90YQINOxaKJOS8EmxAC2h_0,965
36
37
  python_base_toolkit/utils/random_utils.py,sha256=gTH6k1MKKGNZvBTLc5H-eSmtEGvXEdLqtzXN9aHuu-A,2730
37
38
  python_base_toolkit/utils/shorten_url.py,sha256=zsyW3wloFJdVb9s3fhR-olL6ekT03FDlFm2xbFY4viw,359
38
39
  python_base_toolkit/utils/venv_details.py,sha256=d1WlZr1LuWz2SXdFP0Hqh6VHXXXSIuXB0oTmWXJrGqM,210
39
- python_base_toolkit-1.0.5.dist-info/licenses/LICENSE,sha256=cSikHY6SZFsPZSBizCDAJ0-Bjjzxt-JtX6TVbKxwimo,1067
40
- python_base_toolkit-1.0.5.dist-info/METADATA,sha256=MGXS17ubMpX6tpOKYnwLDxZOG0ylJFK_Ufq8Mn86LSQ,2995
41
- python_base_toolkit-1.0.5.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
42
- python_base_toolkit-1.0.5.dist-info/top_level.txt,sha256=I9kK6FGKq_6z3aGySoWamY68GRgg0xsL6sS-uyaxJ2k,20
43
- python_base_toolkit-1.0.5.dist-info/RECORD,,
40
+ python_base_toolkit-1.1.1.dist-info/licenses/LICENSE,sha256=cSikHY6SZFsPZSBizCDAJ0-Bjjzxt-JtX6TVbKxwimo,1067
41
+ python_base_toolkit-1.1.1.dist-info/METADATA,sha256=PDewphdCVxEJ0tWy1lq4vKsWjTdYBrhwVEjZmh7Q3Uw,2994
42
+ python_base_toolkit-1.1.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
43
+ python_base_toolkit-1.1.1.dist-info/top_level.txt,sha256=I9kK6FGKq_6z3aGySoWamY68GRgg0xsL6sS-uyaxJ2k,20
44
+ python_base_toolkit-1.1.1.dist-info/RECORD,,