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

Files changed (161) hide show
  1. catocli/Utils/clidriver.py +2 -2
  2. catocli/Utils/formatter_app_stats.py +29 -16
  3. catocli/Utils/formatter_app_stats_timeseries.py +15 -23
  4. catocli/Utils/formatter_utils.py +1 -0
  5. catocli/__init__.py +1 -1
  6. catocli/parsers/customParserApiClient.py +6 -2
  7. catocli/parsers/query_appStatsTimeSeries/README.md +2 -0
  8. catocli/parsers/utils/export_utils.py +6 -2
  9. catocli-3.0.25.dist-info/METADATA +181 -0
  10. {catocli-3.0.22.dist-info → catocli-3.0.25.dist-info}/RECORD +160 -160
  11. models/mutation.policy.antiMalwareFileHash.addRule.json +0 -20
  12. models/mutation.policy.antiMalwareFileHash.addSection.json +0 -103
  13. models/mutation.policy.antiMalwareFileHash.createPolicyRevision.json +0 -123
  14. models/mutation.policy.antiMalwareFileHash.discardPolicyRevision.json +0 -123
  15. models/mutation.policy.antiMalwareFileHash.moveRule.json +0 -20
  16. models/mutation.policy.antiMalwareFileHash.moveSection.json +0 -103
  17. models/mutation.policy.antiMalwareFileHash.publishPolicyRevision.json +0 -123
  18. models/mutation.policy.antiMalwareFileHash.removeRule.json +0 -20
  19. models/mutation.policy.antiMalwareFileHash.removeSection.json +0 -103
  20. models/mutation.policy.antiMalwareFileHash.updatePolicy.json +0 -123
  21. models/mutation.policy.antiMalwareFileHash.updateRule.json +0 -20
  22. models/mutation.policy.antiMalwareFileHash.updateSection.json +0 -103
  23. models/mutation.policy.appTenantRestriction.addRule.json +0 -20
  24. models/mutation.policy.appTenantRestriction.addSection.json +0 -103
  25. models/mutation.policy.appTenantRestriction.createPolicyRevision.json +0 -123
  26. models/mutation.policy.appTenantRestriction.discardPolicyRevision.json +0 -123
  27. models/mutation.policy.appTenantRestriction.moveRule.json +0 -20
  28. models/mutation.policy.appTenantRestriction.moveSection.json +0 -103
  29. models/mutation.policy.appTenantRestriction.publishPolicyRevision.json +0 -123
  30. models/mutation.policy.appTenantRestriction.removeRule.json +0 -20
  31. models/mutation.policy.appTenantRestriction.removeSection.json +0 -103
  32. models/mutation.policy.appTenantRestriction.updatePolicy.json +0 -123
  33. models/mutation.policy.appTenantRestriction.updateRule.json +0 -20
  34. models/mutation.policy.appTenantRestriction.updateSection.json +0 -103
  35. models/mutation.policy.applicationControl.addRule.json +0 -20
  36. models/mutation.policy.applicationControl.addSection.json +0 -103
  37. models/mutation.policy.applicationControl.createPolicyRevision.json +0 -123
  38. models/mutation.policy.applicationControl.discardPolicyRevision.json +0 -123
  39. models/mutation.policy.applicationControl.moveRule.json +0 -20
  40. models/mutation.policy.applicationControl.moveSection.json +0 -103
  41. models/mutation.policy.applicationControl.publishPolicyRevision.json +0 -123
  42. models/mutation.policy.applicationControl.removeRule.json +0 -20
  43. models/mutation.policy.applicationControl.removeSection.json +0 -103
  44. models/mutation.policy.applicationControl.updatePolicy.json +0 -123
  45. models/mutation.policy.applicationControl.updateRule.json +0 -20
  46. models/mutation.policy.applicationControl.updateSection.json +0 -103
  47. models/mutation.policy.dynamicIpAllocation.addRule.json +0 -20
  48. models/mutation.policy.dynamicIpAllocation.addSection.json +0 -103
  49. models/mutation.policy.dynamicIpAllocation.createPolicyRevision.json +0 -123
  50. models/mutation.policy.dynamicIpAllocation.discardPolicyRevision.json +0 -123
  51. models/mutation.policy.dynamicIpAllocation.moveRule.json +0 -20
  52. models/mutation.policy.dynamicIpAllocation.moveSection.json +0 -103
  53. models/mutation.policy.dynamicIpAllocation.publishPolicyRevision.json +0 -123
  54. models/mutation.policy.dynamicIpAllocation.removeRule.json +0 -20
  55. models/mutation.policy.dynamicIpAllocation.removeSection.json +0 -103
  56. models/mutation.policy.dynamicIpAllocation.updatePolicy.json +0 -123
  57. models/mutation.policy.dynamicIpAllocation.updateRule.json +0 -20
  58. models/mutation.policy.dynamicIpAllocation.updateSection.json +0 -103
  59. models/mutation.policy.internetFirewall.addRule.json +0 -20
  60. models/mutation.policy.internetFirewall.addSection.json +0 -103
  61. models/mutation.policy.internetFirewall.createPolicyRevision.json +0 -123
  62. models/mutation.policy.internetFirewall.discardPolicyRevision.json +0 -123
  63. models/mutation.policy.internetFirewall.moveRule.json +0 -20
  64. models/mutation.policy.internetFirewall.moveSection.json +0 -103
  65. models/mutation.policy.internetFirewall.publishPolicyRevision.json +0 -123
  66. models/mutation.policy.internetFirewall.removeRule.json +0 -20
  67. models/mutation.policy.internetFirewall.removeSection.json +0 -103
  68. models/mutation.policy.internetFirewall.updatePolicy.json +0 -123
  69. models/mutation.policy.internetFirewall.updateRule.json +0 -20
  70. models/mutation.policy.internetFirewall.updateSection.json +0 -103
  71. models/mutation.policy.remotePortFwd.addRule.json +0 -20
  72. models/mutation.policy.remotePortFwd.addSection.json +0 -103
  73. models/mutation.policy.remotePortFwd.createPolicyRevision.json +0 -123
  74. models/mutation.policy.remotePortFwd.discardPolicyRevision.json +0 -123
  75. models/mutation.policy.remotePortFwd.moveRule.json +0 -20
  76. models/mutation.policy.remotePortFwd.moveSection.json +0 -103
  77. models/mutation.policy.remotePortFwd.publishPolicyRevision.json +0 -123
  78. models/mutation.policy.remotePortFwd.removeRule.json +0 -20
  79. models/mutation.policy.remotePortFwd.removeSection.json +0 -103
  80. models/mutation.policy.remotePortFwd.updatePolicy.json +0 -123
  81. models/mutation.policy.remotePortFwd.updateRule.json +0 -20
  82. models/mutation.policy.remotePortFwd.updateSection.json +0 -103
  83. models/mutation.policy.socketLan.addRule.json +0 -40
  84. models/mutation.policy.socketLan.addSection.json +0 -103
  85. models/mutation.policy.socketLan.createPolicyRevision.json +0 -143
  86. models/mutation.policy.socketLan.discardPolicyRevision.json +0 -143
  87. models/mutation.policy.socketLan.moveRule.json +0 -40
  88. models/mutation.policy.socketLan.moveSection.json +0 -103
  89. models/mutation.policy.socketLan.publishPolicyRevision.json +0 -143
  90. models/mutation.policy.socketLan.removeRule.json +0 -40
  91. models/mutation.policy.socketLan.removeSection.json +0 -103
  92. models/mutation.policy.socketLan.updatePolicy.json +0 -143
  93. models/mutation.policy.socketLan.updateRule.json +0 -40
  94. models/mutation.policy.socketLan.updateSection.json +0 -103
  95. models/mutation.policy.terminalServer.addRule.json +0 -20
  96. models/mutation.policy.terminalServer.addSection.json +0 -103
  97. models/mutation.policy.terminalServer.createPolicyRevision.json +0 -123
  98. models/mutation.policy.terminalServer.discardPolicyRevision.json +0 -123
  99. models/mutation.policy.terminalServer.moveRule.json +0 -20
  100. models/mutation.policy.terminalServer.moveSection.json +0 -103
  101. models/mutation.policy.terminalServer.publishPolicyRevision.json +0 -123
  102. models/mutation.policy.terminalServer.removeRule.json +0 -20
  103. models/mutation.policy.terminalServer.removeSection.json +0 -103
  104. models/mutation.policy.terminalServer.updatePolicy.json +0 -123
  105. models/mutation.policy.terminalServer.updateRule.json +0 -20
  106. models/mutation.policy.terminalServer.updateSection.json +0 -103
  107. models/mutation.policy.tlsInspect.addRule.json +0 -20
  108. models/mutation.policy.tlsInspect.addSection.json +0 -103
  109. models/mutation.policy.tlsInspect.createPolicyRevision.json +0 -123
  110. models/mutation.policy.tlsInspect.discardPolicyRevision.json +0 -123
  111. models/mutation.policy.tlsInspect.moveRule.json +0 -20
  112. models/mutation.policy.tlsInspect.moveSection.json +0 -103
  113. models/mutation.policy.tlsInspect.publishPolicyRevision.json +0 -123
  114. models/mutation.policy.tlsInspect.removeRule.json +0 -20
  115. models/mutation.policy.tlsInspect.removeSection.json +0 -103
  116. models/mutation.policy.tlsInspect.updatePolicy.json +0 -123
  117. models/mutation.policy.tlsInspect.updateRule.json +0 -20
  118. models/mutation.policy.tlsInspect.updateSection.json +0 -103
  119. models/mutation.policy.wanFirewall.addRule.json +0 -20
  120. models/mutation.policy.wanFirewall.addSection.json +0 -103
  121. models/mutation.policy.wanFirewall.createPolicyRevision.json +0 -123
  122. models/mutation.policy.wanFirewall.discardPolicyRevision.json +0 -123
  123. models/mutation.policy.wanFirewall.moveRule.json +0 -20
  124. models/mutation.policy.wanFirewall.moveSection.json +0 -103
  125. models/mutation.policy.wanFirewall.publishPolicyRevision.json +0 -123
  126. models/mutation.policy.wanFirewall.removeRule.json +0 -20
  127. models/mutation.policy.wanFirewall.removeSection.json +0 -103
  128. models/mutation.policy.wanFirewall.updatePolicy.json +0 -123
  129. models/mutation.policy.wanFirewall.updateRule.json +0 -20
  130. models/mutation.policy.wanFirewall.updateSection.json +0 -103
  131. models/mutation.policy.wanNetwork.addRule.json +0 -20
  132. models/mutation.policy.wanNetwork.addSection.json +0 -103
  133. models/mutation.policy.wanNetwork.createPolicyRevision.json +0 -123
  134. models/mutation.policy.wanNetwork.discardPolicyRevision.json +0 -123
  135. models/mutation.policy.wanNetwork.moveRule.json +0 -20
  136. models/mutation.policy.wanNetwork.moveSection.json +0 -103
  137. models/mutation.policy.wanNetwork.publishPolicyRevision.json +0 -123
  138. models/mutation.policy.wanNetwork.removeRule.json +0 -20
  139. models/mutation.policy.wanNetwork.removeSection.json +0 -103
  140. models/mutation.policy.wanNetwork.updatePolicy.json +0 -123
  141. models/mutation.policy.wanNetwork.updateRule.json +0 -20
  142. models/mutation.policy.wanNetwork.updateSection.json +0 -103
  143. models/query.appStats.json +216 -0
  144. models/query.appStatsTimeSeries.json +144 -0
  145. models/query.policy.antiMalwareFileHash.policy.json +0 -123
  146. models/query.policy.appTenantRestriction.policy.json +0 -123
  147. models/query.policy.applicationControl.policy.json +0 -123
  148. models/query.policy.dynamicIpAllocation.policy.json +0 -123
  149. models/query.policy.internetFirewall.policy.json +0 -123
  150. models/query.policy.remotePortFwd.policy.json +0 -123
  151. models/query.policy.socketLan.policy.json +0 -143
  152. models/query.policy.terminalServer.policy.json +0 -123
  153. models/query.policy.tlsInspect.policy.json +0 -123
  154. models/query.policy.wanFirewall.policy.json +0 -123
  155. models/query.policy.wanNetwork.policy.json +0 -123
  156. schema/catolib.py +64 -56
  157. catocli-3.0.22.dist-info/METADATA +0 -124
  158. {catocli-3.0.22.dist-info → catocli-3.0.25.dist-info}/WHEEL +0 -0
  159. {catocli-3.0.22.dist-info → catocli-3.0.25.dist-info}/entry_points.txt +0 -0
  160. {catocli-3.0.22.dist-info → catocli-3.0.25.dist-info}/licenses/LICENSE +0 -0
  161. {catocli-3.0.22.dist-info → catocli-3.0.25.dist-info}/top_level.txt +0 -0
@@ -1,124 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: catocli
3
- Version: 3.0.22
4
- Summary: Cato Networks cli wrapper for the GraphQL API.
5
- Home-page: https://github.com/Cato-Networks/cato-cli
6
- Author: Cato Networks
7
- Author-email: [email protected]
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: Apache Software License
10
- Classifier: Operating System :: OS Independent
11
- Classifier: Programming Language :: Python :: 3.6
12
- Classifier: Programming Language :: Python :: 3.7
13
- Classifier: Programming Language :: Python :: 3.8
14
- Classifier: Programming Language :: Python :: 3.9
15
- Classifier: Programming Language :: Python :: 3.10
16
- Classifier: Programming Language :: Python :: 3.11
17
- Classifier: Programming Language :: Python :: 3.12
18
- Requires-Python: >=3.6
19
- Description-Content-Type: text/markdown
20
- License-File: LICENSE
21
- Requires-Dist: urllib3
22
- Requires-Dist: certifi
23
- Requires-Dist: six
24
- Dynamic: author
25
- Dynamic: author-email
26
- Dynamic: classifier
27
- Dynamic: description
28
- Dynamic: description-content-type
29
- Dynamic: home-page
30
- Dynamic: license-file
31
- Dynamic: requires-dist
32
- Dynamic: requires-python
33
- Dynamic: summary
34
-
35
- # Cato Networks GraphQL API CLI
36
-
37
- The package provides a simple to use CLI that reflects industry standards (such as the AWS cli), and enables customers to manage Cato Networks configurations and processes via the [Cato Networks GraphQL API](https://api.catonetworks.com/api/v1/graphql2) easily integrating into configurations management, orchestration or automation frameworks to support the DevOps model.
38
-
39
- ## Installation
40
- pip3 install catocli
41
-
42
- ## Authentication
43
-
44
- The Cato CLI uses a profile-based authentication system similar to AWS CLI. You can configure multiple profiles for different environments or accounts.
45
-
46
- ### Quick Setup
47
-
48
- ```bash
49
- # Configure your first profile (interactive)
50
- catocli configure set
51
-
52
- # Or configure non-interactively
53
- catocli configure set --cato-token "your-api-token" --account-id "12345"
54
- ```
55
-
56
- ### Profile Management
57
-
58
- ```bash
59
- # List profiles
60
- catocli configure list
61
-
62
- # Switch profiles
63
- catocli configure use prod
64
-
65
- # Show current profile
66
- catocli configure show
67
- ```
68
-
69
- ### Legacy Environment Variables (deprecated)
70
-
71
- For backward compatibility, you can still use environment variables:
72
-
73
- ```bash
74
- export CATO_TOKEN="12345-abcde-12345-abcde"
75
- export CATO_ACCOUNT_ID="12345"
76
- export CATO_DEBUG=True # Optional for debug logs
77
- ```
78
-
79
- The CLI will automatically migrate these to a default profile on first run.
80
-
81
- ### Documentation
82
-
83
- For detailed information about profile management, see [PROFILES.md](PROFILES.md).
84
-
85
- [CLICK HERE](https://support.catonetworks.com/hc/en-us/articles/4413280536081-Generating-API-Keys-for-the-Cato-API) to see how create an API key to authenticate.
86
-
87
- ## Running the CLI
88
- catocli -h
89
- catocli query -h
90
- catocli query entityLookup -h
91
- catocli query entityLookup '{"type":"country"}`
92
-
93
- // Override the accountID value as a cli argument
94
- catocli query entityLookup -accountID=12345 '{"type":"country"}`
95
-
96
- ## Check out run locally not as pip package
97
- git clone git@github.com:Cato-Networks/cato-cli.git
98
- cd cato-cli
99
- python3 -m catocli -h
100
-
101
- This CLI is a Python 3 application and has been tested with Python 3.6 -> 3.8
102
- ## Requirements:
103
- python 3.6 or higher
104
-
105
- ## Confirm your version of python if installed:
106
- Open a terminal
107
- Enter: python -V or python3 -V
108
-
109
- ## Usage:
110
- usage: catocli <resource> <command> [options]
111
-
112
- CLI for query, and mutation operations via API.
113
-
114
- Positional arguments:
115
- {entityLookup}
116
- entityLookup entityLookup reference.
117
-
118
- Optional arguments:
119
- -h, --help show this help message and exit
120
- --version show program's version number and exit
121
-
122
- ## Installing the correct version for environment:
123
- https://www.python.org/downloads/
124
-