lanscape 1.3.0a1__py3-none-any.whl → 1.3.0a2__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 lanscape might be problematic. Click here for more details.

@@ -32,9 +32,10 @@ def open_webapp(url: str) -> bool:
32
32
  exe = get_default_browser_executable()
33
33
  if not exe:
34
34
  raise RuntimeError('Unable to find browser binary')
35
-
36
- #this is blocking until closed
35
+ log.debug(f'Opening {url} with {exe}')
36
+
37
37
  subprocess.run(f'{exe} --app="{url}"')
38
+
38
39
  if time.time() - start < 2:
39
40
  log.debug(f'Unable to hook into closure of UI, listening for flask shutdown')
40
41
  return False
@@ -42,8 +43,13 @@ def open_webapp(url: str) -> bool:
42
43
 
43
44
  except Exception as e:
44
45
  log.warning('Failed to open webpage as app, falling back to browser tab')
45
- log.debug(e)
46
- webbrowser.open(url, new=2)
46
+ log.debug(f'As app error: {e}')
47
+ try:
48
+ webbrowser.open(url, new=2)
49
+ except Exception as e:
50
+ log.warning(f'Exhausted all options to open browser, you need to open manually')
51
+ log.debug(f'As tab error: {e}')
52
+ log.info(f'LANScape UI is running on {url}')
47
53
  return False
48
54
 
49
55
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lanscape
3
- Version: 1.3.0a1
3
+ Version: 1.3.0a2
4
4
  Summary: A python based local network scanner
5
5
  Author-email: Michael Dennis <michael@dipduo.com>
6
6
  Project-URL: Homepage, https://github.com/mdennis281/py-lanscape
@@ -12,7 +12,7 @@ lanscape/libraries/runtime_args.py,sha256=zL8QB_Y69OBGjScytuuyHqdy2XimwpypMSPM3_
12
12
  lanscape/libraries/service_scan.py,sha256=jLU84ZoJnqSQbE30Zly2lm2zHrCGutNXjla1sEvp1hE,1949
13
13
  lanscape/libraries/subnet_scan.py,sha256=0LW_xdoL-PRp59rJr6r6pSL3LiXEO_SJnjdrgEF_pO8,13120
14
14
  lanscape/libraries/version_manager.py,sha256=Mh8VptGmv03d0tCpS-DFVgsxD5qWMA8iIG1KVcWOp4A,1690
15
- lanscape/libraries/web_browser.py,sha256=xL2nGnqDTYJ1joMg2mT4uKX0Yq-4mI9svMjjrWyzkRg,3879
15
+ lanscape/libraries/web_browser.py,sha256=4GE3VvPEc2TDXjr7mvLZq784v9QZl_Zsj9NKJugOCeA,4147
16
16
  lanscape/resources/mac_addresses/convert_csv.py,sha256=w3Heed5z2mHYDEZNBep3_hNg4dbrp_N6J54MGxnrq4s,721
17
17
  lanscape/resources/mac_addresses/mac_db.json,sha256=ygtFSwNwJzDlg6hmAujdgCyzUjxt9Di75J8SO4xYIs8,2187804
18
18
  lanscape/resources/ports/convert_csv.py,sha256=mWe8zucWVfnlNEx_ZzH5Vc3tJJbdi-Ih4nm2yKNrRN0,720
@@ -64,8 +64,8 @@ lanscape/ui/templates/scan/ip-table-row.html,sha256=ptY24rxJRaA4PEEQRDncaq6Q0ql5
64
64
  lanscape/ui/templates/scan/ip-table.html,sha256=ds__UP9JiTKf5IxCmTMzw--eN_yg1Pvn3Nj1KvQxeZg,940
65
65
  lanscape/ui/templates/scan/overview.html,sha256=FsX-jSFhGKwCxZGKE8AMKk328UuawN6O9RNTzYvIOts,1205
66
66
  lanscape/ui/templates/scan/scan-error.html,sha256=Q4eZM5ThrxnFaWOSTUpK8hA2ksHwhxOBTaVUCLALhyA,1032
67
- lanscape-1.3.0a1.dist-info/licenses/LICENSE,sha256=cCO-NbS01Ilwc6djHjZ7LIgPFRkRmWdr0fH2ysXKioA,1090
68
- lanscape-1.3.0a1.dist-info/METADATA,sha256=Vig-rxR7BRUlyBcpIJDeA4mPsS9HIIQHPoJIVOof5IA,2120
69
- lanscape-1.3.0a1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
70
- lanscape-1.3.0a1.dist-info/top_level.txt,sha256=E9D4sjPz_6H7c85Ycy_pOS2xuv1Wm-ilKhxEprln2ps,9
71
- lanscape-1.3.0a1.dist-info/RECORD,,
67
+ lanscape-1.3.0a2.dist-info/licenses/LICENSE,sha256=cCO-NbS01Ilwc6djHjZ7LIgPFRkRmWdr0fH2ysXKioA,1090
68
+ lanscape-1.3.0a2.dist-info/METADATA,sha256=rbcY_fkdjFyKkgCY1BchfmYLVAfWVp2f-PUxhtrtz7Q,2120
69
+ lanscape-1.3.0a2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
70
+ lanscape-1.3.0a2.dist-info/top_level.txt,sha256=E9D4sjPz_6H7c85Ycy_pOS2xuv1Wm-ilKhxEprln2ps,9
71
+ lanscape-1.3.0a2.dist-info/RECORD,,