pyntcli 0.1.121__py3-none-any.whl → 0.1.122__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.
pyntcli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.121"
1
+ __version__ = "0.1.122"
@@ -210,7 +210,7 @@ class CommandSubCommand(sub_command.PyntSubCommand):
210
210
 
211
211
  if scan_details_url:
212
212
  webbrowser.open(scan_details_url)
213
- else:
213
+ elif html_report_path and os.path.exists(html_report_path):
214
214
  webbrowser.open("file://{}".format(html_report_path))
215
215
 
216
216
  self.handle_json_report(args)
pyntcli/commands/har.py CHANGED
@@ -129,8 +129,11 @@ class HarSubCommand(sub_command.PyntSubCommand):
129
129
  if scan_details_url:
130
130
  webbrowser.open(scan_details_url)
131
131
  else:
132
- ui_thread.print(ui_thread.PrinterText(
133
- "Could not get report url",
134
- ui_thread.PrinterText.WARNING,
135
- ))
132
+ app_provided = args.application_name or args.application_id
133
+
134
+ if app_provided:
135
+ ui_thread.print_verbose(ui_thread.PrinterText(
136
+ "Could not get report url, trying to open report file",
137
+ ui_thread.PrinterText.INFO
138
+ ))
136
139
  util.open_report_from_file()
@@ -158,7 +158,7 @@ class ListenSubCommand(sub_command.PyntSubCommand):
158
158
 
159
159
  if scan_details_url:
160
160
  webbrowser.open(scan_details_url)
161
- else:
161
+ elif html_report_path and os.path.exists(html_report_path):
162
162
  webbrowser.open("file://{}".format(html_report_path))
163
163
 
164
164
  self.handle_json_report(args)
@@ -137,8 +137,11 @@ class NewmanSubCommand(sub_command.PyntSubCommand):
137
137
  if scan_details_url:
138
138
  webbrowser.open(scan_details_url)
139
139
  else:
140
- ui_thread.print(ui_thread.PrinterText(
141
- "Could not get report url",
142
- ui_thread.PrinterText.WARNING,
140
+ app_provided = args.application_name or args.application_id
141
+
142
+ if app_provided:
143
+ ui_thread.print_verbose(ui_thread.PrinterText(
144
+ "Could not get report url, trying to open report file",
145
+ ui_thread.PrinterText.INFO,
143
146
  ))
144
147
  util.open_report_from_file()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyntcli
3
- Version: 0.1.121
3
+ Version: 0.1.122
4
4
  Summary: Command line utility to handle all of Pynt's different integrations
5
5
  Author-email: Pynt-io <support@pynt.io>
6
6
  Project-URL: Homepage, https://pynt.io
@@ -1,7 +1,7 @@
1
1
  ignoreTests/conftest.py,sha256=gToq5K74GtgeGQXjFvXSzMaE6axBYxAzcFG5XJPOXjI,427
2
2
  ignoreTests/auth/login.py,sha256=7GeBirHTD9t6EassLYsegCw1FZHkfjvVW1Z5uybHzgM,3801
3
3
  ignoreTests/store/cred_store.py,sha256=_7-917EtNC9eKEumO2_lt-7KuDmCwOZFaowCm7DbA_A,254
4
- pyntcli/__init__.py,sha256=_BDMPIZQDLgfVHSB-cPePQBjYMHOp7Qdk3VLqip5jS8,24
4
+ pyntcli/__init__.py,sha256=QWC1mHeiJQwotLRamG-Gp42VXOqQ357vH8ci0o24Ing,24
5
5
  pyntcli/main.py,sha256=RD0W2_0ogYBCXubo-YewxHYkiIXxNv6NkZOh3n1VujE,5964
6
6
  pyntcli/analytics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  pyntcli/analytics/send.py,sha256=0hJ0WJNFHLqyohtRr_xOg5WEXzxHrUOlcePPg-k65Hk,3846
@@ -9,11 +9,11 @@ pyntcli/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  pyntcli/auth/login.py,sha256=qtdoCgWIPi3_YXehI7SVk_E8aDVhH39wGc87tlkazSE,5558
10
10
  pyntcli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  pyntcli/commands/burp.py,sha256=9kcqjC9Rgj5oZimGZuA_oO71Hn2Z3py8k5vr-eMKnUM,14317
12
- pyntcli/commands/command.py,sha256=ZeK2MFhSZnWPb4vtwsBBTAef2dk65-ERP6qvA-Gv7iE,9186
13
- pyntcli/commands/har.py,sha256=rs858ruqpIby-ecEzcTrwma0GFBumdjnmm1o307NP-U,5112
12
+ pyntcli/commands/command.py,sha256=IlVYe4MSAvH5c6ytcBhgh8TufxcbC_ddiuHkvMoPEkQ,9240
13
+ pyntcli/commands/har.py,sha256=xjiZcx9Vp-hXHYLZB-N_chA0d-nDoZZsxJbc6g2lXrU,5270
14
14
  pyntcli/commands/id_command.py,sha256=UBEgMIpm4vauTCsKyixltiGUolNg_OfHEJvJ_i5BpJY,943
15
- pyntcli/commands/listen.py,sha256=HKq2oXIkj_qKTV_o5dDQBu7YuVGWtRODtNG2AjodAKk,6933
16
- pyntcli/commands/newman.py,sha256=TNcs_G5DAT_ToSS5LIM0KFTgxoyjOzVEo8wfDhA0C24,5734
15
+ pyntcli/commands/listen.py,sha256=YkX6ntHWf4KGiYjIzUn-HNJ8w4z8jhN7bvPnvmV0Lo0,6987
16
+ pyntcli/commands/newman.py,sha256=5fbDYzUTwrdeKDlhB8DN9UvnRvjwKGy69AV1_iJ0APc,5889
17
17
  pyntcli/commands/postman.py,sha256=h3ZZoIYmP2N5WyL8LrRqvBjPJ2pvNlIoBU-bvXCO9lE,5207
18
18
  pyntcli/commands/pynt_cmd.py,sha256=oRKgiG9i84sxkS-C5Nw4vv9mIO6zL8YfqhOUJ-XVpas,7934
19
19
  pyntcli/commands/root.py,sha256=H3-nS41YGrFjx4_fyKo8FVH3HB5z57oiE3jSaXqAkd8,4369
@@ -42,8 +42,8 @@ pyntcli/ui/report.py,sha256=W-icPSZrGLOubXgam0LpOvHLl_aZg9Zx9qIkL8Ym5PE,1930
42
42
  pyntcli/ui/ui_thread.py,sha256=XUBgLpYQjVhrilU-ofw7VSXgTiwneSdTxm61EvC3x4Q,5091
43
43
  tests/test_utils.py,sha256=t5fTQUk1U_Js6iMxcGYGqt4C-crzOJ0CqCKtLkRtUi0,2050
44
44
  tests/commands/test_pynt_cmd.py,sha256=J4JrEuD_qSVN76Fu6bKRjrxWSwCTXVEAzVPYdXMa0tI,8826
45
- pyntcli-0.1.121.dist-info/METADATA,sha256=vILE1pC6jeLVAuy7qWcaiIER0axz8U9eIvIObpfPWdE,427
46
- pyntcli-0.1.121.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
47
- pyntcli-0.1.121.dist-info/entry_points.txt,sha256=kcGmqAxXDttNk2EPRcqunc_LTVp61gzakz0v-GEE2SY,43
48
- pyntcli-0.1.121.dist-info/top_level.txt,sha256=8-NQ8a-eg-nTcY6rsgl8JcCu5s9mlOuZI-0vXZH4hYc,31
49
- pyntcli-0.1.121.dist-info/RECORD,,
45
+ pyntcli-0.1.122.dist-info/METADATA,sha256=yQdV7FWfFEorSivCBaUFl3goJarSqD5Dwm6M3apvU6U,427
46
+ pyntcli-0.1.122.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
47
+ pyntcli-0.1.122.dist-info/entry_points.txt,sha256=kcGmqAxXDttNk2EPRcqunc_LTVp61gzakz0v-GEE2SY,43
48
+ pyntcli-0.1.122.dist-info/top_level.txt,sha256=8-NQ8a-eg-nTcY6rsgl8JcCu5s9mlOuZI-0vXZH4hYc,31
49
+ pyntcli-0.1.122.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5