abstract-utilities 0.2.2.437__py3-none-any.whl → 0.2.2.439__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.

Potentially problematic release.


This version of abstract-utilities might be problematic. Click here for more details.

@@ -28,7 +28,7 @@ from .string_clean import eatAll
28
28
  from .list_utils import make_list
29
29
  from .type_utils import get_media_exts, is_media_type,MIME_TYPES
30
30
  from .safe_utils import safe_join
31
- from .class_utils import get_caller_path.get_caller_dir
31
+ from .class_utils import get_caller_path,get_caller_dir
32
32
 
33
33
  def get_os_info():
34
34
  """
@@ -102,7 +102,10 @@ def safe_slice(
102
102
  except Exception:
103
103
  return obj if default is True else default if default else None
104
104
 
105
-
105
+ def safe_join(*paths):
106
+ paths = list(paths)
107
+ paths = [path for path in paths if path]
108
+ return os.path.join(*paths)
106
109
  def safe_get(
107
110
  obj: Any,
108
111
  key: Union[int, str, None] = None,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: abstract_utilities
3
- Version: 0.2.2.437
3
+ Version: 0.2.2.439
4
4
  Summary: abstract_utilities is a collection of utility modules providing a variety of functions to aid in tasks such as data comparison, list manipulation, JSON handling, string manipulation, mathematical computations, and time operations.
5
5
  Home-page: https://github.com/AbstractEndeavors/abstract_utilities
6
6
  Author: putkoff
@@ -13,9 +13,9 @@ abstract_utilities/list_utils.py,sha256=i1fZ_kZ0mf_ei6w0MOkuEieRiyF-ReeAXzIdoRI1
13
13
  abstract_utilities/log_utils.py,sha256=W74Y-CmdQP4Kj88HmAgejVxWgyWlvgCKMwLvOfyFf9c,9393
14
14
  abstract_utilities/math_utils.py,sha256=0o1ls1En03UAkYmxTBildCCJDfHygmNuvVnrNrLYtK0,6578
15
15
  abstract_utilities/parse_utils.py,sha256=Z5OGRwHuzCzY91fz0JJojk1BPAo1XF2quNNLuBF4_Vk,18602
16
- abstract_utilities/path_utils.py,sha256=EE9NGd6zkwM3UMp7TcfB-E4-nnzg_WEnkyOeZOpb0Rk,19252
16
+ abstract_utilities/path_utils.py,sha256=X_U9cPBbNu5Wi0F3hQE0gXQX1gfhzxhxALbairTEOZU,19252
17
17
  abstract_utilities/read_write_utils.py,sha256=EV4r8nlLKxtpukR9xRZBk49HGRyLHOg8QvdGjALQ1BM,4102
18
- abstract_utilities/safe_utils.py,sha256=7Mn_5Z-4qwoKPI7dd8znz3x8uhjwbQ2oOFJ-w7DNgKg,3610
18
+ abstract_utilities/safe_utils.py,sha256=_uoZny6dJjopVakOiaf0UIZcvRRXMh51FpfDUooe0xY,3733
19
19
  abstract_utilities/string_clean.py,sha256=-gY9i2yqjX5UClvSaKsSrzA4GjR7eaNI3GnFjZpt2bo,5923
20
20
  abstract_utilities/tetsts.py,sha256=PrejTUew5dAAqNb4erMJwfdSHxDyuuHGWY2fMlWk5hk,21
21
21
  abstract_utilities/thread_utils.py,sha256=LhE1ylSuOKkkMErBf6SjZprjO_vfh3IKfvNKJQiCxho,5460
@@ -76,7 +76,7 @@ abstract_utilities/ssh_utils/classes.py,sha256=3Q9BfLpyagNFYyiF4bt-5UCezeUJv9NK9
76
76
  abstract_utilities/ssh_utils/imports.py,sha256=7-pVJK1RfR0KiZsv0mNYGPuNXA4iYqmDvqbAR9h1llU,371
77
77
  abstract_utilities/ssh_utils/pexpect_utils.py,sha256=JBdOIXBTXAqE5TrsFjmPWJgwSaWyRJN8rbJ6y3_zKPY,10556
78
78
  abstract_utilities/ssh_utils/utils.py,sha256=smUWAx3nW1h0etTndJ_te9bkUX5YzQ8kYd9_gD1TXLk,4882
79
- abstract_utilities-0.2.2.437.dist-info/METADATA,sha256=eiw9SPy932pYkCj0SvstHkoNfZIZNfzeZv7Gq7eIDCM,28108
80
- abstract_utilities-0.2.2.437.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
81
- abstract_utilities-0.2.2.437.dist-info/top_level.txt,sha256=BF0GZ0xVFfN1K-hFIWPO3viNsOs1sSF86n1vHBg39FM,19
82
- abstract_utilities-0.2.2.437.dist-info/RECORD,,
79
+ abstract_utilities-0.2.2.439.dist-info/METADATA,sha256=eDDzqhIydPb5_cWxVTEABNmpqSo7_k6ojO4AvpP_OFM,28108
80
+ abstract_utilities-0.2.2.439.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
81
+ abstract_utilities-0.2.2.439.dist-info/top_level.txt,sha256=BF0GZ0xVFfN1K-hFIWPO3viNsOs1sSF86n1vHBg39FM,19
82
+ abstract_utilities-0.2.2.439.dist-info/RECORD,,