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

@@ -4,7 +4,8 @@ from datetime import datetime
4
4
  from typing import *
5
5
  from .hash_utils import *
6
6
  from .dynimport import get_abstract_import,import_symbols_to_parent,call_for_all_tabs
7
-
7
+ from .robust_reader import *
8
+ from .robust_readers import *
8
9
  from .json_utils import (unified_json_loader,
9
10
  find_keys,
10
11
  get_key_values_from_path,
@@ -159,6 +160,5 @@ from .parse_utils import (num_tokens_from_string,
159
160
  from .log_utils import get_caller_info,get_logFile,print_or_log,get_json_call_response,initialize_call_log
160
161
  from .error_utils import try_func
161
162
  from .class_utils import alias,get_class_inputs,get_set_attr
162
- from .robust_reader import *
163
- from .robust_readers import *
163
+
164
164
  from .ssh_utils import *
@@ -113,13 +113,16 @@ class SSHFS:
113
113
 
114
114
  def normalize_items(paths: Iterable[str],user_at_host=None,**kwargs) -> List[tuple[PathBackend, str]]:
115
115
  pairs: List[tuple[PathBackend, str]] = []
116
- host = user_at_host or kwargs.get('host')
117
-
116
+ host = user_at_host or kwargs.get('host') or kwargs.get('user')
118
117
  for item in paths:
119
118
  if not item: continue
120
119
  m = REMOTE_RE.match(item)
121
120
  if m:
122
- pairs.append((SSHFS(m.group("host") or user_at_host), m.group("path")))
121
+ fs_host = SSHFS(m.group("host"))
122
+ item = m.group("path") or item
123
+ elif host:
124
+ fs_host = SSHFS(host)
123
125
  else:
124
- pairs.append((LocalFS(), item))
126
+ fs_host = LocalFS()
127
+ pairs.append((fs_host, item))
125
128
  return pairs
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: abstract_utilities
3
- Version: 0.2.2.415
3
+ Version: 0.2.2.417
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
@@ -1,4 +1,4 @@
1
- abstract_utilities/__init__.py,sha256=sdSohSe4mvqnprCt3-EX46MiT63jD6Bi_jamt2WuJPY,6558
1
+ abstract_utilities/__init__.py,sha256=wUoiROzA3SE-Me2YtHEYV2WZ_bex_VCSqdhT-aiogK4,6558
2
2
  abstract_utilities/abstract_classes.py,sha256=A6-FNDQb2P_jcyt01Kc5SuY2QawLVKNjQ-rDGfsn4rA,2461
3
3
  abstract_utilities/class_utils.py,sha256=-YHkdbaChRIz9YLXJlFF4m7VkdwUCts_HOUbKXxkrYA,12735
4
4
  abstract_utilities/collator_utils.py,sha256=9exNoZAr9rABGYTwZOn7hdLbpnMtRd2AgfU7yjZrXGw,2348
@@ -46,7 +46,7 @@ abstract_utilities/file_utils/file_utils/filter_params.py,sha256=NF692W0cBhEsbtm
46
46
  abstract_utilities/file_utils/file_utils/imports.py,sha256=SXCMBuHUwqXbfRBk4LjKehsBKZa8-Po5UfEcNTwn4Es,24
47
47
  abstract_utilities/file_utils/file_utils/map_utils.py,sha256=B_MlkLP8s-o0yU0R3Y2LcTpBntBzysJO18qq181xz9c,1043
48
48
  abstract_utilities/file_utils/imports/__init__.py,sha256=0nezbIo1RqmfZ7pZ0V3kxZDNchNWH8wVATnnvNeILMo,101
49
- abstract_utilities/file_utils/imports/classes.py,sha256=nE860spCea0rV2JjR1xQ7aewNQUd-q9AQTeRkjfup94,4675
49
+ abstract_utilities/file_utils/imports/classes.py,sha256=kxZvt_Saaw62TUZSYG4Bpecp7ql9mFduGDwwvnk_2qc,4774
50
50
  abstract_utilities/file_utils/imports/constants.py,sha256=VxTiOpJg7k9FpPgJRnFOJ2rQU8KPPd-pcphsBQDnO1o,1445
51
51
  abstract_utilities/file_utils/imports/imports.py,sha256=jEdn5Crc_LkpgJH7XH4PQSKyG-2tcifQMZi4aZVytyI,455
52
52
  abstract_utilities/file_utils/imports/module_imports.py,sha256=FlukD7cOA9O6mGbPubMvuGq0elh6ltC5BLFvPrYzqLo,326
@@ -72,7 +72,7 @@ abstract_utilities/ssh_utils/classes.py,sha256=3Q9BfLpyagNFYyiF4bt-5UCezeUJv9NK9
72
72
  abstract_utilities/ssh_utils/imports.py,sha256=7-pVJK1RfR0KiZsv0mNYGPuNXA4iYqmDvqbAR9h1llU,371
73
73
  abstract_utilities/ssh_utils/pexpect_utils.py,sha256=HTwGFiZ0xrBe1iFDYWvLkAvXHzr4KYDexWG5GboVe-8,10527
74
74
  abstract_utilities/ssh_utils/utils.py,sha256=Sy-plzJ9SgnYCL_wGoPZz_aE1hbbDNEMINwNMePY_v4,3069
75
- abstract_utilities-0.2.2.415.dist-info/METADATA,sha256=WI6pQ0lNASDjQf3XKjWxyvK75B_PpjjRac4kahtmv8g,28108
76
- abstract_utilities-0.2.2.415.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
77
- abstract_utilities-0.2.2.415.dist-info/top_level.txt,sha256=BF0GZ0xVFfN1K-hFIWPO3viNsOs1sSF86n1vHBg39FM,19
78
- abstract_utilities-0.2.2.415.dist-info/RECORD,,
75
+ abstract_utilities-0.2.2.417.dist-info/METADATA,sha256=_TOx-vwKUo3c5U5Rtjmn0LxjelpBoUxWoWN_ESN4X-s,28108
76
+ abstract_utilities-0.2.2.417.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
77
+ abstract_utilities-0.2.2.417.dist-info/top_level.txt,sha256=BF0GZ0xVFfN1K-hFIWPO3viNsOs1sSF86n1vHBg39FM,19
78
+ abstract_utilities-0.2.2.417.dist-info/RECORD,,