lanscape 1.2.7a2__py3-none-any.whl → 1.2.7a3__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.
@@ -131,6 +131,14 @@ class Device(IPAlive):
131
131
 
132
132
 
133
133
  class MacSelector:
134
+ """
135
+ Essentially filters out bad mac addresses
136
+ you send in a list of macs,
137
+ it will return the one that has been seen the least
138
+ (ideally meaning it is the most likely to be the correct one)
139
+ this was added because some lookups return multiple macs,
140
+ usually the hwid of a vpn tunnel etc
141
+ """
134
142
  def __init__(self):
135
143
  self.macs = {}
136
144
 
lanscape/ui/app.py CHANGED
@@ -1,4 +1,5 @@
1
1
  from flask import Flask, render_template
2
+ from time import sleep
2
3
  import multiprocessing
3
4
  import traceback
4
5
  import threading
@@ -92,6 +93,8 @@ def start_webserver_dameon(args: RuntimeArgs) -> multiprocessing.Process:
92
93
  proc = threading.Thread(target=start_webserver, args=(args,))
93
94
  proc.daemon = True # Kill thread when main thread exits
94
95
  proc.start()
96
+ log.info('Flask server initializing as dameon')
97
+ sleep(2)
95
98
 
96
99
  def start_webserver(args: RuntimeArgs) -> int:
97
100
  app.run(
lanscape/ui/main.py CHANGED
@@ -39,6 +39,7 @@ def main():
39
39
  start_webview(
40
40
  args
41
41
  )
42
+ log.info('Exiting...')
42
43
  except Exception:
43
44
  # showing error in debug only because this is handled gracefully
44
45
  log.debug('Failed to start webview client. Traceback below')
lanscape/ui/webviewer.py CHANGED
@@ -1,7 +1,6 @@
1
1
  import webview
2
2
  from .app import start_webserver_dameon
3
3
  from ..libraries.runtime_args import RuntimeArgs
4
- from time import sleep
5
4
 
6
5
 
7
6
 
@@ -11,7 +10,6 @@ def start_webview(args: RuntimeArgs) -> None:
11
10
 
12
11
  # Start the Pywebview window
13
12
  webview.create_window('LANscape', f'http://127.0.0.1:{args.port}')
14
- sleep(1)
15
13
  webview.start()
16
14
 
17
15
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lanscape
3
- Version: 1.2.7a2
3
+ Version: 1.2.7a3
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
@@ -23,7 +23,7 @@ Requires-Dist: pytest
23
23
  # LANscape
24
24
  A python based local network scanner.
25
25
 
26
- ![screenshot](https://github.com/mdennis281/py-lanscape/raw/main/src/lanscape/ui/static/img/readme1.png)
26
+ ![screenshot](https://github.com/user-attachments/assets/ba09c656-9fd9-4d74-8426-506d9a5c316c)
27
27
 
28
28
  ## Local Run
29
29
  ```sh
@@ -6,7 +6,7 @@ lanscape/libraries/errors.py,sha256=zvfqvJbIUsUWsEmw6XmUWXZsktbVachGIkYOdo1nR8s,
6
6
  lanscape/libraries/ip_parser.py,sha256=LIjpNkF-ovlTsBxnuTJEWYYy06VdGuuS_lEIc6_PZnQ,2239
7
7
  lanscape/libraries/logger.py,sha256=hGbnj1cTGZT5elwdXUBVyLg_E2Pnocs2IfWumUkHj7M,1385
8
8
  lanscape/libraries/mac_lookup.py,sha256=jejM0NHLbxB9G2hfge2qt0qcNgnSlZERbiTP-RLUUPA,2141
9
- lanscape/libraries/net_tools.py,sha256=vCoKr0YMsFW8HbpLxheX7lXkv9EbrbciSi6tqP9xbAM,9784
9
+ lanscape/libraries/net_tools.py,sha256=zWWvKon46i3ImhaGg2IpCV-Cx01-jFBBZCIHHHyFmqg,10112
10
10
  lanscape/libraries/port_manager.py,sha256=fNext3FNfGnGYRZK9RhTEwQ2K0e0YmmMlhK4zVAvoCw,1977
11
11
  lanscape/libraries/runtime_args.py,sha256=Ksu9xb4zyVl2RRBSus_-c9UrbU5A3XFmDxHrUeTUwdw,1670
12
12
  lanscape/libraries/subnet_scan.py,sha256=2BW69tbntqEujiqsdlQruLHfoAwnFrv6OLMhvQWauYM,11191
@@ -24,9 +24,9 @@ lanscape/tests/test_api.py,sha256=fIVIA6O9ssPRjofTHLS6z7XPNTkvv2rl2jDaxVCjFGU,56
24
24
  lanscape/tests/test_env.py,sha256=ivFhCcemJ9vbe0_KtUkbqDY4r9nsDB8rVLUVjV-sNj8,673
25
25
  lanscape/tests/test_library.py,sha256=u-UBx76Dyh2xLhiCNxnzv7lIsWoUGKUtbPqkVUg7xwE,1552
26
26
  lanscape/tests/test_webview.py,sha256=2KQ7pr05AJ8DbaXkpA2FngRP0-UYIpjIwIYpcddBhAE,605
27
- lanscape/ui/app.py,sha256=dmqD6sh71lx0bftWBm1FqPhtA4GJO9DLdu6zq0mQR98,3060
28
- lanscape/ui/main.py,sha256=3MHtnJ-nsTGVQ6qYfzLc2yULZTcMLgNxZwuTf1LWoxg,2671
29
- lanscape/ui/webviewer.py,sha256=ydTJ36mlt4gtfgk10l7m-O3-vpg69AndQ_0FNS-ZCJw,520
27
+ lanscape/ui/app.py,sha256=pY-wZIGsqARWgFigpdLe16TdfOwGdN1EfWmvA7Ew9M8,3151
28
+ lanscape/ui/main.py,sha256=DZZiFCZUZUxK6_tXIrRTe5-pG_DLBGHqazvcM20Q4rY,2703
29
+ lanscape/ui/webviewer.py,sha256=BuD17wwUzRdpL4LsEb4cUVSBFr0CZirqkTQ46coUVj4,482
30
30
  lanscape/ui/blueprints/__init__.py,sha256=agvgPOSVbrxddaw6EY64ZZr1CQi1Qzwcs1t0lZMv5oY,206
31
31
  lanscape/ui/blueprints/api/__init__.py,sha256=t0QOq3vHFWmlZm_3YFPQbQzCn1a_a5cmRchtIxwy4eY,103
32
32
  lanscape/ui/blueprints/api/port.py,sha256=2UA38umzXE8pMitx1E-_wJHyL1dYYbtM6Kg5zVtfj6A,1019
@@ -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=Q0gmkVI-xNLZ-zWA9qm4H14cv_eF_bQs1KYPyAaoHLY,1141
66
66
  lanscape/ui/templates/scan/scan-error.html,sha256=Q4eZM5ThrxnFaWOSTUpK8hA2ksHwhxOBTaVUCLALhyA,1032
67
- lanscape-1.2.7a2.dist-info/LICENSE,sha256=cCO-NbS01Ilwc6djHjZ7LIgPFRkRmWdr0fH2ysXKioA,1090
68
- lanscape-1.2.7a2.dist-info/METADATA,sha256=u9dwZnU32Oj-CjfDTAd4mvJwMCoZvHyL_wez4AJMPMA,2629
69
- lanscape-1.2.7a2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
70
- lanscape-1.2.7a2.dist-info/top_level.txt,sha256=E9D4sjPz_6H7c85Ycy_pOS2xuv1Wm-ilKhxEprln2ps,9
71
- lanscape-1.2.7a2.dist-info/RECORD,,
67
+ lanscape-1.2.7a3.dist-info/LICENSE,sha256=cCO-NbS01Ilwc6djHjZ7LIgPFRkRmWdr0fH2ysXKioA,1090
68
+ lanscape-1.2.7a3.dist-info/METADATA,sha256=BfD04zXE0DAEm0wHdiGEZ2g-6TpbSO1i5opabklOhN8,2619
69
+ lanscape-1.2.7a3.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
70
+ lanscape-1.2.7a3.dist-info/top_level.txt,sha256=E9D4sjPz_6H7c85Ycy_pOS2xuv1Wm-ilKhxEprln2ps,9
71
+ lanscape-1.2.7a3.dist-info/RECORD,,