bt-cli 0.4.9__py3-none-any.whl → 0.4.11__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.
bt_cli/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """BeyondTrust Unified Admin CLI."""
2
2
 
3
- __version__ = "0.4.9"
3
+ __version__ = "0.4.11"
bt_cli/cli.py CHANGED
@@ -552,9 +552,9 @@ def _get_skills_path() -> Optional[str]:
552
552
  if bundle_path.exists():
553
553
  return str(bundle_path)
554
554
 
555
- # Try importlib.resources
555
+ # Try importlib.resources (files() works with directories in 3.9+)
556
556
  try:
557
- if sys.version_info >= (3, 11):
557
+ if sys.version_info >= (3, 9):
558
558
  from importlib.resources import files
559
559
  data_path = files("bt_cli.data").joinpath("skills")
560
560
  if data_path.is_dir():
@@ -564,7 +564,7 @@ def _get_skills_path() -> Optional[str]:
564
564
  with path("bt_cli.data", "skills") as p:
565
565
  if p.exists():
566
566
  return str(p)
567
- except (ImportError, ModuleNotFoundError, TypeError, FileNotFoundError):
567
+ except (ImportError, ModuleNotFoundError, TypeError, FileNotFoundError, IsADirectoryError):
568
568
  pass
569
569
 
570
570
  # Fall back to source directory
@@ -587,9 +587,9 @@ def _get_claude_md_path() -> Optional[str]:
587
587
  if bundle_path.exists():
588
588
  return str(bundle_path)
589
589
 
590
- # Try importlib.resources
590
+ # Try importlib.resources (files() available in 3.9+)
591
591
  try:
592
- if sys.version_info >= (3, 11):
592
+ if sys.version_info >= (3, 9):
593
593
  from importlib.resources import files
594
594
  data_path = files("bt_cli.data").joinpath("CLAUDE.md")
595
595
  if data_path.is_file():
bt_cli/core/csv_utils.py CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  import csv
4
4
  from pathlib import Path
5
- from typing import Any
5
+ from typing import Any, Optional
6
6
 
7
7
 
8
8
  def read_csv(file_path: str) -> list[dict[str, Any]]:
@@ -73,7 +73,7 @@ def parse_bool(value: str) -> bool:
73
73
  return value.lower().strip() in ('true', 'yes', '1', 'y')
74
74
 
75
75
 
76
- def parse_int(value: str, default: int | None = None) -> int | None:
76
+ def parse_int(value: str, default: Optional[int] = None) -> Optional[int]:
77
77
  """Parse integer from CSV string.
78
78
 
79
79
  Args:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bt-cli
3
- Version: 0.4.9
3
+ Version: 0.4.11
4
4
  Summary: BeyondTrust Platform CLI (unofficial) - Password Safe, Entitle, PRA, EPM
5
5
  Author-email: Dave Grendysz <dgrendysz@beyondtrust.com>
6
6
  License: MIT
@@ -1,5 +1,5 @@
1
- bt_cli/__init__.py,sha256=J5N-KHzhIH4xHZNVUW8NVKkg35xAvsZKv7KxS48wXx8,60
2
- bt_cli/cli.py,sha256=u2B59fO-8uH0200TbcaBiy387wuc7j_-1pUgZFXphQA,29554
1
+ bt_cli/__init__.py,sha256=zQlgKORvtouUScY7yP3-_KKprvvDA19Mp6QbZTJ18QU,61
2
+ bt_cli/cli.py,sha256=-V7Q_DcP7Ryw-mRBLMyj-iwlFpof8_eLgFAx-fN5seM,29640
3
3
  bt_cli/commands/__init__.py,sha256=Wrf3ZV1sf7JCilbv93VqoWWTyj0d-y4saAaVFD5apU8,38
4
4
  bt_cli/commands/configure.py,sha256=f3tn09eRDqlGQIq1gpuxj984S4CARYbmKI4XrqxPAAM,14270
5
5
  bt_cli/commands/learn.py,sha256=BHt4bTH3orQfR-eB9FMGPQZVfTrwakHNYi0QkHQLOy0,7228
@@ -9,7 +9,7 @@ bt_cli/core/auth.py,sha256=-vzGCgk2ZOsHExZBcxMHer68K3Bi0RMWF-17wtIZvsg,6723
9
9
  bt_cli/core/client.py,sha256=pGxk5vI-U5_csiwBvMr_YwloOTmmWuFhX9TAA9ynoZw,8808
10
10
  bt_cli/core/config.py,sha256=lQZgNH858HCIuizyDDFU0Bs1VbHjy3vaA2OthVgc7-w,13485
11
11
  bt_cli/core/config_file.py,sha256=I0RdHJEW4ytc2onNcsTGjCnetSuVCNzKA7-tTTIvU8M,13163
12
- bt_cli/core/csv_utils.py,sha256=auUwXWYPoAcp1GKJjL8J9jJRsOcymASivWv8f_BpQKQ,2396
12
+ bt_cli/core/csv_utils.py,sha256=L7i-YGSeQV9RnzanKSQM1yvXgkmaQCpBoxUk9fV6RLg,2412
13
13
  bt_cli/core/errors.py,sha256=-LWipqdn8w-FMAC1W1jFbTMAlooiJqmyuR5j1VWMPyM,8783
14
14
  bt_cli/core/output.py,sha256=ACazDf3XAfJhAlns5fh6bQXkRIIGlBFuq1z2M-IBrwQ,5156
15
15
  bt_cli/core/prompts.py,sha256=VeB8on5VN_D_4r85rJBO6AP_yHJUxBVwWqwZHCoOiqs,2387
@@ -115,7 +115,7 @@ bt_cli/pws/models/account.py,sha256=OSCMyULPOH1Yu2WOzK0ZQhSRrggGpb2JPHScwGLqUgI,
115
115
  bt_cli/pws/models/asset.py,sha256=Fl0AlR4_9Yyyu36FL1eKF29DNsxsB-r7FaOBRlfOg2Q,4081
116
116
  bt_cli/pws/models/common.py,sha256=D9Ah4ob5CIiFhTt_IR9nF2cBWRHS2z9OyBR2Sss5yzw,3487
117
117
  bt_cli/pws/models/system.py,sha256=D_J0x1A92H2n6BsaBEK9PSAAcs3BTifA5-M9SQqQFGA,5856
118
- bt_cli-0.4.9.dist-info/METADATA,sha256=QcUQ3SQhV3vZXumno8UpY8zIRz33eQW9Q4ZIwUiZvKo,11802
119
- bt_cli-0.4.9.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
120
- bt_cli-0.4.9.dist-info/entry_points.txt,sha256=NCOEqTI-XKpJOux0JKKhbRElz0B7upayh_d99X5hoLs,38
121
- bt_cli-0.4.9.dist-info/RECORD,,
118
+ bt_cli-0.4.11.dist-info/METADATA,sha256=Cv5L_rhnVLD9WKcgLnGejaSY_TWbE-LSCHvUXHbBv0o,11803
119
+ bt_cli-0.4.11.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
120
+ bt_cli-0.4.11.dist-info/entry_points.txt,sha256=NCOEqTI-XKpJOux0JKKhbRElz0B7upayh_d99X5hoLs,38
121
+ bt_cli-0.4.11.dist-info/RECORD,,