lanscape 2.0.0a1__py3-none-any.whl → 2.0.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.
- lanscape/__init__.py +0 -1
- lanscape/__main__.py +0 -1
- lanscape/core/app_scope.py +0 -1
- lanscape/core/decorators.py +0 -1
- lanscape/core/device_alive.py +0 -1
- lanscape/core/errors.py +0 -1
- lanscape/core/ip_parser.py +0 -1
- lanscape/core/logger.py +0 -1
- lanscape/core/mac_lookup.py +0 -1
- lanscape/core/net_tools.py +0 -1
- lanscape/core/port_manager.py +0 -1
- lanscape/core/runtime_args.py +0 -1
- lanscape/core/scan_config.py +0 -1
- lanscape/core/service_scan.py +0 -1
- lanscape/core/subnet_scan.py +0 -1
- lanscape/core/version_manager.py +0 -1
- lanscape/core/web_browser.py +0 -1
- lanscape/resources/mac_addresses/convert_csv.py +0 -1
- lanscape/resources/ports/convert_csv.py +0 -1
- lanscape/resources/ports/test_port_list_scan.json +4 -0
- lanscape/ui/app.py +13 -2
- lanscape/ui/blueprints/__init__.py +0 -1
- lanscape/ui/blueprints/api/__init__.py +0 -1
- lanscape/ui/blueprints/api/port.py +0 -1
- lanscape/ui/blueprints/api/scan.py +0 -1
- lanscape/ui/blueprints/api/tools.py +0 -1
- lanscape/ui/blueprints/web/__init__.py +0 -1
- lanscape/ui/blueprints/web/routes.py +0 -1
- lanscape/ui/main.py +0 -1
- lanscape/ui/shutdown_handler.py +0 -1
- {lanscape-2.0.0a1.dist-info → lanscape-2.0.0a2.dist-info}/METADATA +4 -1
- {lanscape-2.0.0a1.dist-info → lanscape-2.0.0a2.dist-info}/RECORD +36 -35
- {lanscape-2.0.0a1.dist-info → lanscape-2.0.0a2.dist-info}/WHEEL +0 -0
- {lanscape-2.0.0a1.dist-info → lanscape-2.0.0a2.dist-info}/entry_points.txt +0 -0
- {lanscape-2.0.0a1.dist-info → lanscape-2.0.0a2.dist-info}/licenses/LICENSE +0 -0
- {lanscape-2.0.0a1.dist-info → lanscape-2.0.0a2.dist-info}/top_level.txt +0 -0
lanscape/__init__.py
CHANGED
lanscape/__main__.py
CHANGED
lanscape/core/app_scope.py
CHANGED
lanscape/core/decorators.py
CHANGED
lanscape/core/device_alive.py
CHANGED
lanscape/core/errors.py
CHANGED
lanscape/core/ip_parser.py
CHANGED
lanscape/core/logger.py
CHANGED
lanscape/core/mac_lookup.py
CHANGED
lanscape/core/net_tools.py
CHANGED
lanscape/core/port_manager.py
CHANGED
lanscape/core/runtime_args.py
CHANGED
lanscape/core/scan_config.py
CHANGED
lanscape/core/service_scan.py
CHANGED
lanscape/core/subnet_scan.py
CHANGED
lanscape/core/version_manager.py
CHANGED
lanscape/core/web_browser.py
CHANGED
lanscape/ui/app.py
CHANGED
|
@@ -51,6 +51,18 @@ app.jinja_env.filters['is_substring_in_values'] = is_substring_in_values
|
|
|
51
51
|
################################
|
|
52
52
|
|
|
53
53
|
|
|
54
|
+
def get_runtime_args_safe():
|
|
55
|
+
"""
|
|
56
|
+
Safely get runtime args, returning empty dict if parsing fails.
|
|
57
|
+
This prevents conflicts when the module is imported during testing.
|
|
58
|
+
"""
|
|
59
|
+
try:
|
|
60
|
+
return vars(parse_args())
|
|
61
|
+
except SystemExit:
|
|
62
|
+
# This happens when pytest tries to import the module
|
|
63
|
+
return {}
|
|
64
|
+
|
|
65
|
+
|
|
54
66
|
def set_global_safe(key: str, value):
|
|
55
67
|
""" Safely set global vars without worrying about an exception """
|
|
56
68
|
app_globals = app.jinja_env.globals
|
|
@@ -73,7 +85,7 @@ def set_global_safe(key: str, value):
|
|
|
73
85
|
set_global_safe('app_version', get_installed_version)
|
|
74
86
|
set_global_safe('update_available', is_update_available)
|
|
75
87
|
set_global_safe('latest_version', lookup_latest_version)
|
|
76
|
-
set_global_safe('runtime_args',
|
|
88
|
+
set_global_safe('runtime_args', get_runtime_args_safe)
|
|
77
89
|
set_global_safe('is_local', is_local_run)
|
|
78
90
|
set_global_safe('is_arp_supported', is_arp_supported)
|
|
79
91
|
|
|
@@ -122,4 +134,3 @@ def start_webserver(args: RuntimeArgs) -> int:
|
|
|
122
134
|
'use_reloader': args.reloader
|
|
123
135
|
}
|
|
124
136
|
app.run(**run_args)
|
|
125
|
-
|
lanscape/ui/main.py
CHANGED
lanscape/ui/shutdown_handler.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lanscape
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.0a2
|
|
4
4
|
Summary: A python based local network scanner
|
|
5
5
|
Author-email: Michael Dennis <michael@dipduo.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -25,6 +25,9 @@ Requires-Dist: scapy<3.0,>=2.3.2
|
|
|
25
25
|
Requires-Dist: tabulate==0.9.0
|
|
26
26
|
Requires-Dist: pydantic
|
|
27
27
|
Requires-Dist: icmplib
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
30
|
+
Requires-Dist: pytest-cov>=5.0; extra == "dev"
|
|
28
31
|
Dynamic: license-file
|
|
29
32
|
|
|
30
33
|
# LANscape
|
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
lanscape/__init__.py,sha256=
|
|
2
|
-
lanscape/__main__.py,sha256=
|
|
1
|
+
lanscape/__init__.py,sha256=ibc4hZ6Esm7fsqocLRpc2v30BVWrKpFQ-iMJisoDtL8,423
|
|
2
|
+
lanscape/__main__.py,sha256=PuY42yuCLAwHrOREJ6u2DgVyGX5hZKRQeoE9pajkNfM,170
|
|
3
3
|
lanscape/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
lanscape/core/app_scope.py,sha256=
|
|
5
|
-
lanscape/core/decorators.py,sha256=
|
|
6
|
-
lanscape/core/device_alive.py,sha256=
|
|
7
|
-
lanscape/core/errors.py,sha256=
|
|
8
|
-
lanscape/core/ip_parser.py,sha256=
|
|
9
|
-
lanscape/core/logger.py,sha256=
|
|
10
|
-
lanscape/core/mac_lookup.py,sha256=
|
|
11
|
-
lanscape/core/net_tools.py,sha256=
|
|
12
|
-
lanscape/core/port_manager.py,sha256=
|
|
13
|
-
lanscape/core/runtime_args.py,sha256=
|
|
14
|
-
lanscape/core/scan_config.py,sha256=
|
|
15
|
-
lanscape/core/service_scan.py,sha256=
|
|
16
|
-
lanscape/core/subnet_scan.py,sha256=
|
|
17
|
-
lanscape/core/version_manager.py,sha256=
|
|
18
|
-
lanscape/core/web_browser.py,sha256=
|
|
19
|
-
lanscape/resources/mac_addresses/convert_csv.py,sha256=
|
|
4
|
+
lanscape/core/app_scope.py,sha256=qfzX8Ed4bFdxHMGjgnLlWuLZDTCBKObermz91KbGVn0,3298
|
|
5
|
+
lanscape/core/decorators.py,sha256=CZbPEfnLS1OF-uejQweetadzqf0pVo736jKko4Xs-g4,7264
|
|
6
|
+
lanscape/core/device_alive.py,sha256=YUppwI_SwCRlOz1zVs_GiyBbFD1srIIomIpclrFETAw,6836
|
|
7
|
+
lanscape/core/errors.py,sha256=QTf42UzR9Zxj1t1mdwfLvZIp0c9a5EItELOdCR7kTmE,1322
|
|
8
|
+
lanscape/core/ip_parser.py,sha256=yCHAe7d8YIEw0yC8GEHyLTXFTD9l4pYnMWllkNsDDi4,4196
|
|
9
|
+
lanscape/core/logger.py,sha256=nzo6J8UdlMdhRkOJEDOIHKztoE3Du8PQZad7ixvNgeM,2534
|
|
10
|
+
lanscape/core/mac_lookup.py,sha256=PxBSMe3wEVDtivCsh5NclSAguZz9rqdAS7QshBiuWvM,3519
|
|
11
|
+
lanscape/core/net_tools.py,sha256=W-yyQ05k6BJc8VOnOi9_hpVD2G8i5HuQ_A39O8qk30Y,19676
|
|
12
|
+
lanscape/core/port_manager.py,sha256=3_ROOb6JEiB0NByZVtADuGcldFkgZwn1RKtvwgs9AIk,4479
|
|
13
|
+
lanscape/core/runtime_args.py,sha256=2vIqRrcWr-NHRSBlZGrxh1PdkPY0ytkPguu8KZqy2L8,2543
|
|
14
|
+
lanscape/core/scan_config.py,sha256=A2ZKXqXKW9nrP6yLb7b9b3XqSY_cQB3LZ5K0LVCSebE,11114
|
|
15
|
+
lanscape/core/service_scan.py,sha256=kkJUcAc326kOCVou0TPKCHlh32awioYw6jiaGHix31E,6948
|
|
16
|
+
lanscape/core/subnet_scan.py,sha256=IegcrpzevL2zMf1fuvCqegUGCBXtO3iAI49aCweXmvw,14444
|
|
17
|
+
lanscape/core/version_manager.py,sha256=eGjyKgsv31QO0W26se9pPQ1TwmEN8qn37dHULtoocqc,2841
|
|
18
|
+
lanscape/core/web_browser.py,sha256=23MuGIrBYdGhw6ejj6OWxwReeKIlWhtWukc1dKV_3_0,6736
|
|
19
|
+
lanscape/resources/mac_addresses/convert_csv.py,sha256=hvlyLs0XmuuhBuvXBNRGP1cKJzYVRSf8VfUJ1VqROms,1189
|
|
20
20
|
lanscape/resources/mac_addresses/mac_db.json,sha256=Lng2yJerwO7vjefzxzgtE203hry1lIsCadHL1A5Rptg,2136137
|
|
21
|
-
lanscape/resources/ports/convert_csv.py,sha256=
|
|
21
|
+
lanscape/resources/ports/convert_csv.py,sha256=MMLDa-5pGMsn4A2_k45jHsRYffrRY_0Z2D1ziiikeQA,1143
|
|
22
22
|
lanscape/resources/ports/full.json,sha256=O8XBW52QvEVSGMQDbXe4-c4qq6XAecw6KJW4m2HkTLo,1441444
|
|
23
23
|
lanscape/resources/ports/large.json,sha256=CzlCcIGCBW1QAgjz4NDerCYA8HcYf6lNxehh7F928y0,138410
|
|
24
24
|
lanscape/resources/ports/medium.json,sha256=T5Rc7wa47MtroHxuZrHSftOqRWbQzhZULJdE1vpsTvU,3518
|
|
25
25
|
lanscape/resources/ports/small.json,sha256=F_lo_5xHwHBfOVfVgxP7ejblR3R62SNtC1Mm33brhYc,376
|
|
26
|
+
lanscape/resources/ports/test_port_list_scan.json,sha256=qXuWGQ_sGIRCVrhJxMeWcHKYdjaMv8O6OVWutiqCwVo,36
|
|
26
27
|
lanscape/resources/services/definitions.jsonc,sha256=M9BDeK-mh25sEVj8xDEYbU2ix7EETVWhbiYmMb14Gjg,20905
|
|
27
28
|
lanscape/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
|
-
lanscape/ui/app.py,sha256=
|
|
29
|
-
lanscape/ui/main.py,sha256=
|
|
30
|
-
lanscape/ui/shutdown_handler.py,sha256=
|
|
31
|
-
lanscape/ui/blueprints/__init__.py,sha256=
|
|
32
|
-
lanscape/ui/blueprints/api/__init__.py,sha256=
|
|
33
|
-
lanscape/ui/blueprints/api/port.py,sha256=
|
|
34
|
-
lanscape/ui/blueprints/api/scan.py,sha256=
|
|
35
|
-
lanscape/ui/blueprints/api/tools.py,sha256=
|
|
36
|
-
lanscape/ui/blueprints/web/__init__.py,sha256=
|
|
37
|
-
lanscape/ui/blueprints/web/routes.py,sha256=
|
|
29
|
+
lanscape/ui/app.py,sha256=rg4UGHgbVHpU2jdabSwBoSqGna7WGOunPkPc5Tvds9w,4076
|
|
30
|
+
lanscape/ui/main.py,sha256=UCrhHnyFBqVmHTMus33CTp3vdNn3miT1xXJatR4N7ho,4176
|
|
31
|
+
lanscape/ui/shutdown_handler.py,sha256=He2aYlcfHvQjpJuKbdbjmUd2RkJeCrcSSHX9HFMbBOg,1705
|
|
32
|
+
lanscape/ui/blueprints/__init__.py,sha256=EjPtaR5Nh17pGiOVYTJULVNaZntpFZOiYyep8rBWAiE,265
|
|
33
|
+
lanscape/ui/blueprints/api/__init__.py,sha256=5Z4Y7B36O-bNFenpomfuNhPuJ9dW_MC0TPUU3pCFVfA,103
|
|
34
|
+
lanscape/ui/blueprints/api/port.py,sha256=KlfLrAmlTqN44I1jLVDy-mWOcor4kL-b0Cl4AcTMCys,1976
|
|
35
|
+
lanscape/ui/blueprints/api/scan.py,sha256=2rsW4xkI4X2Q2ocwaE469aU1VxQ3xHuBRjD9xE36WdI,3326
|
|
36
|
+
lanscape/ui/blueprints/api/tools.py,sha256=jr9gt0VhvBFgJ61MLgNIM6hin-MUmJLGdmStPx3e3Yc,2432
|
|
37
|
+
lanscape/ui/blueprints/web/__init__.py,sha256=NvgnjP0X4LwqVhSEyh5RUzoG45N44kHK1MEFlfvBxTg,118
|
|
38
|
+
lanscape/ui/blueprints/web/routes.py,sha256=f5TzfTzelJ_erslyBXTOpFr4BlIfB1Mb1ye6ioH7IL0,4534
|
|
38
39
|
lanscape/ui/static/lanscape.webmanifest,sha256=07CqA-PQsO35KJD8R96sI3Pxix6UuBjijPDCuy9vM3s,446
|
|
39
40
|
lanscape/ui/static/css/style.css,sha256=qXDshNhj77__06AuL-RhsxlrqZ5S0JFAmy3M1sk1Sm8,21098
|
|
40
41
|
lanscape/ui/static/img/ico/android-chrome-192x192.png,sha256=JmFT6KBCCuoyxMV-mLNtF9_QJbVBvfWPUizKN700fi8,18255
|
|
@@ -68,9 +69,9 @@ lanscape/ui/templates/scan/ip-table-row.html,sha256=nO5ZMhl3Gnlc8lg5nWmE05_6_5oz
|
|
|
68
69
|
lanscape/ui/templates/scan/ip-table.html,sha256=AT2ZvCPYdKl-XJiAkEAawPOVuQw-w0MXumGQTr3zyKM,926
|
|
69
70
|
lanscape/ui/templates/scan/overview.html,sha256=xWj9jWDPg2KcPLvS8fnSins23_UXjKCdb2NJwNG2U2Q,1176
|
|
70
71
|
lanscape/ui/templates/scan/scan-error.html,sha256=wmAYQ13IJHUoO8fAGNDjMvNml7tu4rsIU3Vav71ETlA,999
|
|
71
|
-
lanscape-2.0.
|
|
72
|
-
lanscape-2.0.
|
|
73
|
-
lanscape-2.0.
|
|
74
|
-
lanscape-2.0.
|
|
75
|
-
lanscape-2.0.
|
|
76
|
-
lanscape-2.0.
|
|
72
|
+
lanscape-2.0.0a2.dist-info/licenses/LICENSE,sha256=VLoE0IrNTIc09dFm7hMN0qzk4T3q8V0NaPcFQqMemDs,1070
|
|
73
|
+
lanscape-2.0.0a2.dist-info/METADATA,sha256=ArqLYoFvGuLx6lx-ODdqxcxkmW83XfqvQJGGFBmpgDY,3489
|
|
74
|
+
lanscape-2.0.0a2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
75
|
+
lanscape-2.0.0a2.dist-info/entry_points.txt,sha256=evxSxUikFa1OEd4e0Boky9sLH87HdgM0YqB_AbB2HYc,51
|
|
76
|
+
lanscape-2.0.0a2.dist-info/top_level.txt,sha256=E9D4sjPz_6H7c85Ycy_pOS2xuv1Wm-ilKhxEprln2ps,9
|
|
77
|
+
lanscape-2.0.0a2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|