Skip to content
github-actions[bot] edited this page Feb 20, 2026 · 2 revisions

LANscape Wiki

LANscape is a Python library for scanning your local network β€” discovering devices, testing ports, and identifying services.

pip install lanscape
from lanscape import ScanManager, ScanConfig, net_tools

sm = ScanManager()
subnet = net_tools.smart_select_primary_subnet()

config = ScanConfig(subnet=subnet, port_list="medium")
scan = sm.new_scan(config)
sm.wait_until_complete(scan.uid)

for device in scan.results.to_results().devices:
    print(f"{device.ip} - {device.hostname} - Ports: {device.ports}")

πŸ“– Documentation

Topic Description
Library Overview Full guide β€” architecture, presets, and examples
ScanManager Create, track, and terminate scans
SubnetScanner The scan engine under the hood
ScannerResults Export results as structured data or summaries
ScanConfig Configure subnets, ports, threads, and strategies
Sub-Configs Fine-tune Ping, ARP, Poke, Port, and Service scanning
Enums ScanType, ServiceScanStrategy, and other enumerations
Models Pydantic models β€” DeviceResult, ScanResults, etc.
PortManager CRUD operations for port lists
net_tools Subnet detection, ARP support, and network helpers
WebSocket Server Real-time WebSocket API β€” protocol, actions, events

Auto-synced from docs/library

πŸ“– Library Documentation

Overview

Scanning

Configuration

Reference

Clone this wiki locally