catocli 3.0.12__py3-none-any.whl → 3.0.13__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 catocli might be problematic. Click here for more details.

@@ -269,7 +269,7 @@ def main(args=None):
269
269
  if custom_headers:
270
270
  configuration.custom_headers.update(custom_headers)
271
271
  # Handle account ID override (applies to all commands except raw)
272
- if args.func.__name__ not in ["createRawRequest"]:
272
+ if hasattr(args, 'func') and args.func.__name__ not in ["createRawRequest"]:
273
273
  if hasattr(args, 'accountID') and args.accountID is not None:
274
274
  # Command line override takes precedence
275
275
  configuration.accountID = args.accountID
@@ -295,7 +295,7 @@ def main(args=None):
295
295
  except Exception as e:
296
296
  if isinstance(e, AttributeError):
297
297
  print('Missing arguments. Usage: catocli <operation> -h')
298
- if args.v==True:
298
+ if hasattr(args, 'v') and args.v==True:
299
299
  print('ERROR: ',e)
300
300
  traceback.print_exc()
301
301
  else:
@@ -285,8 +285,13 @@ class UniversalHelpFormatter:
285
285
  base_dir = os.path.dirname(os.path.dirname(__file__)) # Go up from Utils to catocli
286
286
  readme_path = os.path.join(base_dir, "parsers", command_path, "README.md")
287
287
 
288
+ # If not found, try custom path (for commands like query_eventsFeed)
288
289
  if not os.path.exists(readme_path):
289
- return examples
290
+ custom_readme_path = os.path.join(base_dir, "parsers", "custom", command_path, "README.md")
291
+ if os.path.exists(custom_readme_path):
292
+ readme_path = custom_readme_path
293
+ else:
294
+ return examples
290
295
 
291
296
  try:
292
297
  with open(readme_path, "r", encoding='utf-8') as f:
@@ -423,8 +428,13 @@ class UniversalHelpFormatter:
423
428
  base_dir = os.path.dirname(os.path.dirname(__file__)) # Go up from Utils to catocli
424
429
  readme_path = os.path.join(base_dir, "parsers", command_path, "README.md")
425
430
 
431
+ # If not found, try custom path (for commands like query_eventsFeed)
426
432
  if not os.path.exists(readme_path):
427
- return sections
433
+ custom_readme_path = os.path.join(base_dir, "parsers", "custom", command_path, "README.md")
434
+ if os.path.exists(custom_readme_path):
435
+ readme_path = custom_readme_path
436
+ else:
437
+ return sections
428
438
 
429
439
  try:
430
440
  with open(readme_path, "r", encoding='utf-8') as f:
catocli/__init__.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = "3.0.12"
1
+ __version__ = "3.0.13"
2
2
  __cato_host__ = "https://api.catonetworks.com/api/v1/graphql2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: catocli
3
- Version: 3.0.12
3
+ Version: 3.0.13
4
4
  Summary: Cato Networks cli wrapper for the GraphQL API.
5
5
  Home-page: https://github.com/Cato-Networks/cato-cli
6
6
  Author: Cato Networks
@@ -1,11 +1,11 @@
1
- catocli/__init__.py,sha256=m0fmh3O-tie5BL4DF4nyQoyN2H2uJrDA6QCYQvGTdxM,85
1
+ catocli/__init__.py,sha256=lNJkDJsBkUAScjNJITnROfAyWXXCDxLX6MYYr5x_t3o,85
2
2
  catocli/__main__.py,sha256=6Z0ns_k_kUcz1Qtrn1u7UyUnqB-3e85jM_nppOwFsv4,217
3
3
  catocli/clisettings.json,sha256=mXjDGxSR0-XVRk6_5mg5QZbaN4hOR2q-63yiUBWA3vU,1023
4
- catocli/Utils/clidriver.py,sha256=zC4oDLKZm170sbznqEB6hzXC8q5KICOtenYm90cIUZg,16249
4
+ catocli/Utils/clidriver.py,sha256=0_MWDcDqbtJ_k4D396WZI6_CG-qEENQ66hAEQi2iVtk,16298
5
5
  catocli/Utils/cliutils.py,sha256=TTrAGlJjy9P07rLPGev9Qjx4w0g0KnWYBYcfNY1VIa8,6875
6
6
  catocli/Utils/csv_formatter.py,sha256=eNy3HTTPZjABaNtxK9jSzgtRlL908n-x7_DI5qqCB1k,23668
7
7
  catocli/Utils/graphql_utils.py,sha256=yUSJ1gE2_LRYTHq46w6vOa84IuU6BXlBMr1gQB2RcGE,63469
8
- catocli/Utils/help_formatter.py,sha256=a33GuS8uBJvhLLL11gycUXJIP62JcnoKYRznbBvVWX0,26979
8
+ catocli/Utils/help_formatter.py,sha256=ymHkeaYQT7Vama9QZnu-Fy2U8jfwC8llOLESm-cYhA8,27585
9
9
  catocli/Utils/profile_manager.py,sha256=a-cIhlhOiFbAEuX5Im0JraalWufkcAZS1NQQ0T4ck8I,7763
10
10
  catocli/Utils/version_checker.py,sha256=tCtsCn7xxMIxOm6cWJSA_yPt0j4mNMK4iWSJej0yM6A,6696
11
11
  catocli/parsers/customParserApiClient.py,sha256=GdcQ-Th-508ZQYDtvWBJSNV_yuVtINuDhDuzND8W9kY,81982
@@ -406,7 +406,7 @@ catocli/templates/scim_users.csv,sha256=Fb_C9W2cXf1swnKSNXanWabny87TKcbwxpor5ze3
406
406
  catocli/templates/scim_users.json,sha256=VRBc2rDRMiIcA6navhnqdnuvLmouKd9ZE7ZrzGb7kfI,582
407
407
  catocli/templates/socket_sites.csv,sha256=S5qY7whbydinMwomoAlDghoiFO_xqUKRwNG1xvzl8BI,1212
408
408
  catocli/templates/socket_sites.json,sha256=X3NShci5-q3TpVSsaj62u4jFCvQAhxQ7knC-Lui_gOg,19535
409
- catocli-3.0.12.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
409
+ catocli-3.0.13.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
410
410
  graphql_client/__init__.py,sha256=2nxD4YsWoOnALXi5cXbmtIN_i0NL_eyDTQRTxs52mkI,315
411
411
  graphql_client/api_client.py,sha256=2Rc1Zo1xH9Jnk1AO68kLSofTShkZwSVF-WkVtczfIc4,5786
412
412
  graphql_client/api_client_types.py,sha256=y1oy1qsg8TM_FPxb8m53ED7tBU29WDhtQqzgg247_kI,11754
@@ -754,8 +754,8 @@ vendor/urllib3/util/timeout.py,sha256=4eT1FVeZZU7h7mYD1Jq2OXNe4fxekdNvhoWUkZusRp
754
754
  vendor/urllib3/util/url.py,sha256=wHORhp80RAXyTlAIkTqLFzSrkU7J34ZDxX-tN65MBZk,15213
755
755
  vendor/urllib3/util/util.py,sha256=j3lbZK1jPyiwD34T8IgJzdWEZVT-4E-0vYIJi9UjeNA,1146
756
756
  vendor/urllib3/util/wait.py,sha256=_ph8IrUR3sqPqi0OopQgJUlH4wzkGeM5CiyA7XGGtmI,4423
757
- catocli-3.0.12.dist-info/METADATA,sha256=pCuODREhpx52W3-UaORTmSIFlPhoOFOa1Sf8rm2N5fo,3753
758
- catocli-3.0.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
759
- catocli-3.0.12.dist-info/entry_points.txt,sha256=p4k9Orre6aWcqVrNmBbckmCs39h-1naMxRo2AjWmWZ4,50
760
- catocli-3.0.12.dist-info/top_level.txt,sha256=F4qSgcjcW5wR9EFrO8Ud06F7ZQGFr04a9qALNQDyVxU,52
761
- catocli-3.0.12.dist-info/RECORD,,
757
+ catocli-3.0.13.dist-info/METADATA,sha256=Fd8l5aXL56AMqxMeWV3-Es973VdxotEAOhEznLGKa_w,3753
758
+ catocli-3.0.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
759
+ catocli-3.0.13.dist-info/entry_points.txt,sha256=p4k9Orre6aWcqVrNmBbckmCs39h-1naMxRo2AjWmWZ4,50
760
+ catocli-3.0.13.dist-info/top_level.txt,sha256=F4qSgcjcW5wR9EFrO8Ud06F7ZQGFr04a9qALNQDyVxU,52
761
+ catocli-3.0.13.dist-info/RECORD,,