python-base-toolkit 1.0.2__py3-none-any.whl → 1.0.4__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.
@@ -12,3 +12,8 @@ def datetime_now_with_timezone(timezone: ZoneInfo = utc_timezone) -> datetime:
12
12
  if timezone.key == "UTC":
13
13
  return now_utc
14
14
  return now_utc.astimezone(timezone)
15
+
16
+
17
+ def get_current_date_time_str(timezone: ZoneInfo = utc_timezone, date_time_format: str = "%Y-%m-%d_%H%M%S") -> str:
18
+ now = datetime_now_with_timezone(timezone)
19
+ return now.strftime(date_time_format)
@@ -24,4 +24,4 @@ def get_project_path_by_file(markers: set[str] | None = None) -> Path:
24
24
  for marker in markers:
25
25
  if (parent / marker).exists():
26
26
  return parent
27
- raise RuntimeError(f'Project root with one of the markers: "{markers}" not found.')
27
+ raise FileNotFoundError(f'Project root with one of the markers: "{markers}" not found.')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-base-toolkit
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: A Python package for managing pytest plugins.
5
5
  Author: Avi Zaguri
6
6
  License: MIT
@@ -24,20 +24,20 @@ python_base_toolkit/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
24
24
  python_base_toolkit/scripts/remove_build_files.py,sha256=461h7BkuwhaCBK17fbxDc3n_nQhL5aCXm3VP52s8sW8,694
25
25
  python_base_toolkit/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
26
  python_base_toolkit/utils/data_serialization.py,sha256=Wwi9DQfymNgPj3_fJDUpKoA6U-BE8cJyf1-3qLD7ngE,1295
27
- python_base_toolkit/utils/date_time.py,sha256=U1P_8qPnEQzI4DguHVEofYLzlyuWfK7L6VsOKPbMa7c,429
27
+ python_base_toolkit/utils/date_time.py,sha256=MAJ1QQ5HGfwKSk5kPtViGkwC3jhZOdPUvdecvjWREnY,636
28
28
  python_base_toolkit/utils/execute.py,sha256=6QYQWd1Z15Ofb4gcAtXCx90l1D-REwTWDZNybU6OibM,1560
29
29
  python_base_toolkit/utils/file_utils.py,sha256=XGiFocSNpb77GeX_hEuR_7juNsSwA-RikpH1CvEG4TM,8793
30
30
  python_base_toolkit/utils/generate_id.py,sha256=cXyt7AbHRvKvPsKzVE-zFZ3fPIcJ-VVhCaUh63yYUOA,817
31
31
  python_base_toolkit/utils/logo.py,sha256=GXCSyPR7RXNshTuMUq1pqZGVZUSJfaktCOv8dWLSz5Q,140
32
32
  python_base_toolkit/utils/network.py,sha256=9Y3appWnaIvliA8Jit6vM0uZOmwf6sDVRwzp6BIouHw,4922
33
- python_base_toolkit/utils/path_utils.py,sha256=hSqIbckt1XJELMyWpWjMBXM2hylbQCxmEs2GHBhno60,1044
33
+ python_base_toolkit/utils/path_utils.py,sha256=acuNOdWFtkW_XGyCj1bVgLCFt77lEuvpxyql7PVQk2w,1049
34
34
  python_base_toolkit/utils/pretty_print.py,sha256=tj1b6zYSsTLBRFfRMXVx3sYv09T5PvslXV8dpBAeq7g,555
35
35
  python_base_toolkit/utils/pycache.py,sha256=X-pWRjAd2xcBtMkcyCuKz34SbHWc2leBHBIjqOVoXmw,911
36
36
  python_base_toolkit/utils/random_utils.py,sha256=gTH6k1MKKGNZvBTLc5H-eSmtEGvXEdLqtzXN9aHuu-A,2730
37
37
  python_base_toolkit/utils/shorten_url.py,sha256=zsyW3wloFJdVb9s3fhR-olL6ekT03FDlFm2xbFY4viw,359
38
38
  python_base_toolkit/utils/venv_details.py,sha256=d1WlZr1LuWz2SXdFP0Hqh6VHXXXSIuXB0oTmWXJrGqM,210
39
- python_base_toolkit-1.0.2.dist-info/licenses/LICENSE,sha256=cSikHY6SZFsPZSBizCDAJ0-Bjjzxt-JtX6TVbKxwimo,1067
40
- python_base_toolkit-1.0.2.dist-info/METADATA,sha256=Xbb2WDCzDa-FGH6tRZA9kDm6uXEgGmMVSB3Mss1G6CU,2995
41
- python_base_toolkit-1.0.2.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
42
- python_base_toolkit-1.0.2.dist-info/top_level.txt,sha256=I9kK6FGKq_6z3aGySoWamY68GRgg0xsL6sS-uyaxJ2k,20
43
- python_base_toolkit-1.0.2.dist-info/RECORD,,
39
+ python_base_toolkit-1.0.4.dist-info/licenses/LICENSE,sha256=cSikHY6SZFsPZSBizCDAJ0-Bjjzxt-JtX6TVbKxwimo,1067
40
+ python_base_toolkit-1.0.4.dist-info/METADATA,sha256=QeGBtXYyRqmknRQE6Fu6230qU6UWw5X-RF3jGkcgspU,2995
41
+ python_base_toolkit-1.0.4.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
42
+ python_base_toolkit-1.0.4.dist-info/top_level.txt,sha256=I9kK6FGKq_6z3aGySoWamY68GRgg0xsL6sS-uyaxJ2k,20
43
+ python_base_toolkit-1.0.4.dist-info/RECORD,,