catocli 1.0.7__py3-none-any.whl → 1.0.9__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.

catocli/__init__.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = "1.0.7"
1
+ __version__ = "1.0.9"
2
2
  __cato_host__ = "https://api.catonetworks.com/api/v1/graphql2"
@@ -7,7 +7,7 @@ def custom_parse(subparsers):
7
7
  entity_subparsers = entity_parser.add_subparsers(description='valid subcommands', help='additional help')
8
8
 
9
9
  for entity in entityTypes:
10
- item_parser = entity_subparsers.add_parser(entity, help=entity, usage='catocli entity '+entity+' <operationName> [options]')
10
+ item_parser = entity_subparsers.add_parser(entity, help="entityLookup() for type: "+entity, usage='catocli entity '+entity+' <operationName> [options]')
11
11
  item_subparsers = item_parser.add_subparsers(description='valid subcommands', help='additional help')
12
12
 
13
13
  item_list_parser = item_subparsers.add_parser('list',
@@ -63,7 +63,7 @@ def entityTypeList(args, configuration):
63
63
  else:
64
64
  print("id,name,type,description")
65
65
  for site in response[0].get("data").get("entityLookup").get(params["operation_name"]+"s"):
66
- print(f"{site.get(params["operation_name"]).get('id')},{site.get(params["operation_name"]).get('name')},{site.get(params["operation_name"]).get('type')},{site.get('description')}")
66
+ print(site.get(params["operation_name"]).get('id')+","+site.get(params["operation_name"]).get('name')+","+site.get(params["operation_name"]).get('type')+","+site.get('description'))
67
67
  except ApiException as e:
68
68
  return e
69
69
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: catocli
3
- Version: 1.0.7
3
+ Version: 1.0.9
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,10 +1,10 @@
1
- catocli/__init__.py,sha256=JEUF4QqWRarrJ4hVwXgu22jy1FVjKr9tOP8KCUrogx4,85
1
+ catocli/__init__.py,sha256=OtDmd5JmAgxt7GzwlKIVL2adQjjfffWjXzTjjQJwB-0,85
2
2
  catocli/__main__.py,sha256=6Z0ns_k_kUcz1Qtrn1u7UyUnqB-3e85jM_nppOwFsv4,217
3
3
  catocli/Utils/clidriver.py,sha256=RsKEW6DS5uj5ndfGFYIJkl2aJ8V5hnBzABramyKNHbY,5447
4
4
  catocli/parsers/parserApiClient.py,sha256=8LfEdp071zmgVd_Or5tsI7PgpR2_11tonLrzkjaGHxs,13500
5
5
  catocli/parsers/custom/README.md,sha256=UvCWAtF3Yh0UsvADb0ve1qJupgYHeyGu6V3Z0O5HEvo,8180
6
- catocli/parsers/custom/__init__.py,sha256=DafeKpnBmLPL9D77NqxqezBgmdFthhbHpznQCzByF3g,2362
7
- catocli/parsers/custom/customLib.py,sha256=TQAxjuwg3mbV-xbmIhJtyhj2VB1iuuecOyE2jrU8KkA,3089
6
+ catocli/parsers/custom/__init__.py,sha256=fIEeHogNmCWryXK-sV5N8zRPj52X6QXj6iq7SyDbkfo,2390
7
+ catocli/parsers/custom/customLib.py,sha256=hw1Wz_2ZfSO8gWxI-njzGUVz98O07E9o8eW8YZGLDQc,3090
8
8
  catocli/parsers/mutation/README.md,sha256=mdOfOY0sOVGnf9q-GVgtGc7mtxFKigD9q0ILJAw8l0I,32
9
9
  catocli/parsers/mutation_admin/README.md,sha256=YzXrmiZf8gPKDd2ii__NztKfYxReu3MBOmswR3BGQHk,201
10
10
  catocli/parsers/mutation_admin/__init__.py,sha256=FDr0Jq49_wK0sp1a0dcTinqTh0EieI7t50NEUYF8Keo,2858
@@ -253,9 +253,9 @@ vendor/urllib3/util/timeout.py,sha256=4eT1FVeZZU7h7mYD1Jq2OXNe4fxekdNvhoWUkZusRp
253
253
  vendor/urllib3/util/url.py,sha256=wHORhp80RAXyTlAIkTqLFzSrkU7J34ZDxX-tN65MBZk,15213
254
254
  vendor/urllib3/util/util.py,sha256=j3lbZK1jPyiwD34T8IgJzdWEZVT-4E-0vYIJi9UjeNA,1146
255
255
  vendor/urllib3/util/wait.py,sha256=_ph8IrUR3sqPqi0OopQgJUlH4wzkGeM5CiyA7XGGtmI,4423
256
- catocli-1.0.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
257
- catocli-1.0.7.dist-info/METADATA,sha256=NsMEPEW7-lzhW5ErGqD3BA0-toaG1daWnLaiFWhv33k,1084
258
- catocli-1.0.7.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
259
- catocli-1.0.7.dist-info/entry_points.txt,sha256=p4k9Orre6aWcqVrNmBbckmCs39h-1naMxRo2AjWmWZ4,50
260
- catocli-1.0.7.dist-info/top_level.txt,sha256=lH9Ok1WoqyeZsgsSyKS0ra5p53MHogpgFl6hJfT-32M,58
261
- catocli-1.0.7.dist-info/RECORD,,
256
+ catocli-1.0.9.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
257
+ catocli-1.0.9.dist-info/METADATA,sha256=qQcfnl271TAn_3_SvDyrIAj2jUbPC2tuggggeyZhcUs,1084
258
+ catocli-1.0.9.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
259
+ catocli-1.0.9.dist-info/entry_points.txt,sha256=p4k9Orre6aWcqVrNmBbckmCs39h-1naMxRo2AjWmWZ4,50
260
+ catocli-1.0.9.dist-info/top_level.txt,sha256=lH9Ok1WoqyeZsgsSyKS0ra5p53MHogpgFl6hJfT-32M,58
261
+ catocli-1.0.9.dist-info/RECORD,,