Skip to main content

Python toolkit with BLE, WiFi, IP scanning and system monitoring utilities.

Project description

nikhil-tools

Python toolkit with network scanning and system monitoring utilities.

Installation

pip install nikhil-tools

Features

  • BLE Scanner - Discover Bluetooth Low Energy devices (all platforms)
  • WiFi Scanner - Scan nearby WiFi networks (macOS, Windows, Linux)
  • IP Scanner - Discover devices on local network (all platforms)
  • System Monitor - CPU, memory, disk, battery, GPU stats (all platforms)

Usage

As a Library

import nikhil_tools

# BLE Scanning
devices = nikhil_tools.scan_devices_sync(timeout=5.0)
for device in devices:
    print(f"{device.name} - {device.address}")

# WiFi Scanning
networks = nikhil_tools.scan_wifi()
for net in networks:
    print(f"{net.ssid} - {net.rssi} dBm")

# IP Scanning
devices = nikhil_tools.scan_network()
for device in devices:
    print(f"{device.ip} - {device.hostname}")

# System Stats
stats = nikhil_tools.get_system_stats()
print(f"CPU: {stats.cpu.usage_percent}%")
print(f"RAM: {stats.memory.percent_used}%")
print(f"Disk: {stats.disk.percent_used}%")

CLI Commands

# Scan BLE devices
nikhil-ble

# Scan WiFi networks
nikhil-wifi

# Scan IP addresses on network
nikhil-ip

# Show system stats
nikhil-sysmon

API Reference

BLE Scanner

  • scan_devices(timeout) - Async BLE scan
  • scan_devices_sync(timeout) - Sync BLE scan
  • BLEDeviceInfo - Device data class

WiFi Scanner

  • scan_wifi() - Scan WiFi networks
  • WiFiNetwork - Network data class

IP Scanner

  • scan_network(network_prefix, start, end) - Scan IP range
  • get_local_ip() - Get local IP address
  • NetworkDevice - Device data class

System Monitor

  • get_system_stats() - Get all system stats
  • get_cpu_info() - CPU usage
  • get_memory_info() - RAM usage
  • get_disk_info() - Disk usage
  • get_battery_info() - Battery status
  • get_gpu_info() - GPU info
  • get_network_speed() - Network throughput

Requirements

  • Python 3.9+
  • macOS, Windows, or Linux

Platform Notes

Feature macOS Windows Linux
BLE Scanner
WiFi Scanner ✅ (requires nmcli or iwlist)
IP Scanner
System Monitor

License

MIT

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

nikhil_tools-0.4.1.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

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

nikhil_tools-0.4.1-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file nikhil_tools-0.4.1.tar.gz.

File metadata

  • Download URL: nikhil_tools-0.4.1.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for nikhil_tools-0.4.1.tar.gz
Algorithm Hash digest
SHA256 682aef9d6a87642b1387585df59493d8988b38d316916ead1193119e70a3cff3
MD5 1a02eac2061d55e317e657077a80346f
BLAKE2b-256 3b075acea1011d834b42ff04ac85a98975c80854a84b9a0a4cba3f40532096e4

See more details on using hashes here.

File details

Details for the file nikhil_tools-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: nikhil_tools-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for nikhil_tools-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 459d41837666239cb7996be05a2013f0dcd6d1046196ab8fdb0124ce081ae713
MD5 80a84000dc320a74b9769e96544522cc
BLAKE2b-256 ee3b15e69203427d96e1c34481099725407c1f40766860b488d50bfc65946468

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