Project to scan and gather connectivity information on small networks
Project description
network_scanner_kbk
Project to impliment a network scanner for comparing subnets
Example Usage
Example of using the network_scanner utility to scan 2 given subnets and look for devices that can only be accessed through exactly one of the subnets.
# Import the NetworkScanner class
from network_scanner_kbk import NetworkScanner
# Create an instance of the NetworkScanner class
ns = NetworkScanner()
# Provide 2 subnet addresses in CIDR /24 notation
subnet1 = "192.168.0.0/24"
subnet2 = "192.168.1.0/24"
# Call find_singularly_reachable_devices() to obtain the list of devices (ips)
devices = ns.find_singularly_reachable_devices(subnet1, subnet2)
print("List of devices accessible on exactly one subnet:")
for d in devices:
print(d)
This package comes with unit tests. They can be run as follows:
cd network_scanner_kbk/tests
python test_network_scanner.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file network_scanner_kbk-0.0.23.tar.gz.
File metadata
- Download URL: network_scanner_kbk-0.0.23.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddf96abaf4eaf93be0e548fb1cf7a93ff661a19bd304670ba2d1789faabb06d9
|
|
| MD5 |
09909a29c6e6b7ebc94647aee89e3c8b
|
|
| BLAKE2b-256 |
3c25c8863e76edc8cc924899c7b668ca894778a95daf635e6156bd7b880ff126
|
File details
Details for the file network_scanner_kbk-0.0.23-py3-none-any.whl.
File metadata
- Download URL: network_scanner_kbk-0.0.23-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf447752cad25bb880361ee64170c5f74d59ee9ee2439a06715d88008453e2df
|
|
| MD5 |
f05d7fb60facf506e93154c3e8ce7429
|
|
| BLAKE2b-256 |
73281320ec7a6e057f4ac76649daea18b9a83f74af5eebe47262ddc694e325b0
|