PYTHON / LINUX NETWORK DIAGNOSTICS
NetScope
Bring the local network picture together.
NetScope is a Python network information and diagnostics CLI for Linux. It collects local network details and presents them together with public IP information and connectivity status. Its read-only design helps you inspect the current network configuration without changing interfaces, routes, DNS settings or system files.
- Runs on
- Python 3 · Linux · iproute2
- Repository created
$ python3 main.py
# Excerpt from the README example
Interface : wlan0
Gateway : 192.168.1.1
DNS : 8.8.8.8, 8.8.4.4
Connectivity : ONLINE
Network : 192.168.1.0/24What it does
- Show hostname, local IPv4 address and public IP information.
- Discover the default gateway, interface and DNS servers.
- Test internet connectivity and enumerate IPv4 interfaces.
- Calculate the network address, netmask and broadcast address.
Run the documented example
NetScope requires Linux, Python 3 and the ip command from the iproute2 package. Run the documented command from the repository root. It uses Python standard-library modules, so it does not require third-party Python packages. The report groups the main connection details with a separate IPv4 interface list, making it easier to compare routing, addressing and interface information.
Use the report as a starting point
Read the values as information about the environment where the command runs. Public IP lookup and internet connectivity testing depend on network access, so a local interface being present does not mean every external check will succeed. The README documents graceful error handling. When investigating a connection problem, use the reported gateway, DNS and interface details to guide further checks rather than treating one connectivity status as a complete diagnosis.
Inside the code
Each module has a focused responsibility: routing, interfaces, DNS, subnet calculations, connectivity, public IP discovery and system information. The CLI coordinates these modules and displays their results. The repository includes automated tests for DNS, interfaces, network calculations, routing and system information, alongside the full README output example.