WSN-Simulator (WSN-Sim)
WSN-Sim is a Python-based Wireless Sensor Network (WSN) simulator supporting AODV and DSR protocols.
Installation
To install the package, run the following command:
pip install wsn-sim
Usage
You can use the simulator by specifying options directly via the command line:
wsn-sim --protocol AODV --steps 10 --nodes 20 --links 30
Alternatively, you can define these parameters in a .cfg file and provide the file path:
# config.cfg
[simulation]
protocol = AODV
steps = 10
nodes = 20
links = 30
Then run:
wsn-sim --config config.cfg
Options
--config: Path to the configuration file--protocol: Choose the routing protocol (AODV/DSR)--steps: Number of simulation steps--nodes: Number of nodes in the network--links: Number of random links between nodes
Running Tests
To run the tests, use the following command:
python -m unittest discover tests
Example
Here is an example of how to use the simulator:
-
Define your simulation parameters in a
.cfgfile:# simulation_config.cfg [simulation] protocol = DSR steps = 15 nodes = 25 links = 50
-
Run the simulation using the configuration file:
wsn-sim --config simulation_config.cfg
-
Alternatively, run the simulation with parameters directly from the command line:
wsn-sim --protocol DSR --steps 15 --nodes 25 --links 50
License
This project is licensed under the MIT License.
Contributing
If you would like to contribute to this project, please fork the repository and submit a pull request. We welcome all improvements, including bug fixes, new features, and documentation enhancements.
Metadata
Release files for wsn-sim 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wsn_sim-0.4.0.tar.gz | 6.8 kB | Without provenance | Details for wsn_sim-0.4.0.tar.gz |
Release files / wsn_sim-0.4.0.tar.gz
| Download URL | wsn_sim-0.4.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de3e437edff9e9a72d8eee2db8cb36338eaac324d40d192edf0518af9afd3154
|
|
BLAKE2b-256 checksum How to use checksums |
fd97b38f0201d5b64328b4e1a2a8f793d4abbc776e321f266e4ea5f8fb134250
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Security for wsn-sim 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.