A simple network simulator for testing ping and routing
Project description
Easy Network Simulator
A simple network simulator for testing ping and routing between nodes.
Installation
To install this package, run:
pip install easynetsim
Usage
from easynetsim import load_network, ping
# Define the network configuration
network_data = {
"nodes": [
{"hostname": "node1", "ip": "192.168.1.1"},
{"hostname": "node2", "ip": "192.168.1.2"},
{"hostname": "node3", "ip": "192.168.1.3"},
],
"links": [
{"source": "node1", "destination": "node2", "latency": 20},
{"source": "node2", "destination": "node3", "latency": 20},
],
}
# Load the network
load_network(network_data)
# Ping a node
result = ping("node1", "192.168.1.3")
print(result)
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
easynetsim-0.1.2.tar.gz
(2.3 kB
view details)
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 easynetsim-0.1.2.tar.gz.
File metadata
- Download URL: easynetsim-0.1.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.0 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40b5e606147636f48dcd3a0ab00fccd360fa6e823e9acc8062daa4f97807252a
|
|
| MD5 |
386a7d06f68a0231a58435abeb68ad03
|
|
| BLAKE2b-256 |
efacba7916bc64d9495f431e01b8c06ec71bd6b930cf3b308eeffe1c766b4dbd
|
File details
Details for the file easynetsim-0.1.2-py3-none-any.whl.
File metadata
- Download URL: easynetsim-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.0 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
feae733976c074b47ec2ff2381dc0f8240b2f7fe2723c9ff2ee1265c5722db50
|
|
| MD5 |
950caa8adf293541f304a5307f230ada
|
|
| BLAKE2b-256 |
4835dd0cf9ed0b67955483825fc3ee5e79bbf9006431167f953802e0b66fa521
|