Skip to main content

A Python LAN scanning tool that uses nmap to discover devices on the local network

Project description

Simple LAN Scanner

CI PyPI Python License Requires nmap Documentation

๐Ÿ” A powerful yet simple network scanner for discovering devices on your local network

โœจ Features

  • ๐Ÿš€ Fast Network Discovery - Leverages nmap for efficient ping sweeps
  • ๐Ÿ’ป Dual Interface - Both CLI and GUI options available
  • ๐Ÿ“Š Device Tracking - Persistent storage with historical data
  • ๐Ÿ” Smart Filtering - Search by MAC, IP, hostname, or manufacturer
  • ๐Ÿ“ Multiple Export Formats - JSON and CSV support
  • ๐ŸŽฏ Auto Network Detection - Intelligently finds your local network
  • ๐Ÿ”” Real-time Monitoring - Continuous scanning with customizable intervals
  • ๐ŸŽจ Modern GUI - Clean, intuitive interface with online/offline status

๐Ÿš€ Quick Start

Installation

# From PyPI (recommended)
pip install simple-lan-scanner[cli]

# From source
git clone https://github.com/IBN5100-0/simple-lan-scanner.git
cd simple-lan-scanner
pip install -e .[cli]

Requirements

  • Python 3.10+
  • nmap installed and in PATH

Basic Usage

# Quick network scan
lan-scan scan

# Launch GUI
lan-scan gui

# Monitor network (updates every 30s)
lan-scan monitor

# Export results
lan-scan scan -o devices.json

๐Ÿ“ธ Screenshots

CLI Interface

MAC Address       | IP Address      | Hostname                  | Manufacturer               | First Seen       | Last Seen
------------------------------------------------------------------------------------------------------------------------------------------------
XX:XX:XX:XX:XX:XX | 192.168.1.1     | router.local              | Netgear Inc.               | 2025-01-15 10:30 | 2025-01-15 14:45
YY:YY:YY:YY:YY:YY | 192.168.1.100   | laptop.local              | Apple Inc.                 | 2025-01-15 10:30 | 2025-01-15 14:45
  • ๐ŸŸข Green = Online (seen < 2 minutes ago)
  • โšช Default = Offline

GUI Features

  • Real-time device monitoring
  • Search and filter capabilities
  • Export to JSON/CSV
  • Detailed device information
  • Context menu for quick actions

๐Ÿ› ๏ธ Advanced Usage

CLI Commands

# Scan specific network
lan-scan scan --network 192.168.1.0/24

# Monitor with filters
lan-scan monitor --online-only --search "apple"

# Custom scan interval
lan-scan monitor --interval 60 --json devices.json

Python API

from simple_scanner import NetworkMonitor

# Initialize scanner
monitor = NetworkMonitor()

# Scan network
monitor.scan()

# Get devices
devices = monitor.devices()
for device in devices:
    print(f"{device.mac_address} - {device.ip_address}")

# Export results
monitor.export_json("scan_results.json")

๐Ÿ“š Documentation

๐Ÿ—๏ธ Project Structure

simple-lan-scanner/
โ”œโ”€โ”€ src/simple_scanner/    # Core package
โ”œโ”€โ”€ tests/                 # Test suite
โ”œโ”€โ”€ docs/                  # Documentation
โ”œโ”€โ”€ examples/              # Usage examples
โ””โ”€โ”€ .github/               # GitHub configuration

๐Ÿงช Development

# Setup development environment
git clone https://github.com/IBN5100-0/simple-lan-scanner.git
cd simple-lan-scanner
pip install -e .[dev]

# Run tests
pytest

# Run with coverage
pytest --cov=simple_scanner

# Format code
black src/ tests/

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

Areas for Contribution

  • IPv6 support
  • Web interface
  • Additional export formats
  • Performance optimizations
  • Documentation improvements

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • nmap - The foundation of our network scanning
  • Click - CLI framework
  • Tkinter - GUI framework

๐Ÿ”— Links


Made with โค๏ธ by IBN5100-0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_lan_scanner-1.0.1.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_lan_scanner-1.0.1-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file simple_lan_scanner-1.0.1.tar.gz.

File metadata

  • Download URL: simple_lan_scanner-1.0.1.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for simple_lan_scanner-1.0.1.tar.gz
Algorithm Hash digest
SHA256 32148c63a6d98f185463126f3bb94a72545bdf345c1bf26e8e12e3f75eb06a16
MD5 81e1245f6bff58fe1f3af54049a2fc5b
BLAKE2b-256 f180c0ed42ae42c653b5ea3a87b0c84d04509d554a474830455d2fd12d62ea25

See more details on using hashes here.

File details

Details for the file simple_lan_scanner-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_lan_scanner-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7491ea15e23f4f02afe416bfaf5c9e0401ce4ef7780cd583b8fb60f86c2f3e9
MD5 fcaf97bc51b0e0cdf83ef8956c62bd9a
BLAKE2b-256 86528ec3bb53a9006f89be0a2c4cf47791c33ba79ff5662651db5fb38a7bf04b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page