semvec/pypi-packages huggingface dataset:
easynetsim 0.2.0
A simple network simulator for testing ping and routing
License: MIT
Requires Python: <4.0,>=3.10

# Easy Network Simulator

A simple network simulator for testing ping and routing between nodes.

## Installation

To install this package, run:

```bash
pip install easynetsim
```

## Usage
```python
from easynetsim import NetworkSimulator

# Define network configuration
config = {
    "nodes": [
        {"hostname": "router1", "ip": "192.168.1.1", "type": "router"},
        {"hostname": "server1", "ip": "192.168.1.10", "type": "server"},
        {"hostname": "client1", "ip": "192.168.1.100", "type": "client"},
    ],
    "links": [
        {
            "source": "router1",
            "destination": "server1",
            "latency": 10,
            "packet_loss": 0.05,
        },
        {
            "source": "router1",
            "destination": "client1",
            "latency": 20,
            "packet_loss": 0.01,
        },
    ],
}

# Initialize network simulator
simulator = NetworkSimulator()
simulator.load_network(config)

# Demonstrate ping operation
result = simulator.ping("client1", "192.168.1.10")
print(result)
```

### Examples
More examples located in `examples` folder.

## Roadmap  
- [ ] Test cases
- [ ] Action for release autopublish
tofile 0.1.0
Create directory structures from tree command output
License: MIT
Requires Python: >=3.6

# Tree2File

A command-line tool to create directory structures from tree command output.

## Installation

```bash
pip install tofile
```

## Usage

1. Run the command:
```bash
tofile
```

2. Paste your tree structure. For example:
```bash
my_project/
├── src/
│   └── main.py
├── tests/
│   └── test_main.py
└── README.md
```

3. Press Enter twice to finish input.

The tool will create the directory structure in your current working directory.


## Features

- Creates directories and files from tree command output
- Validates input structure before creation
- Handles nested directories and files
- Simple command-line interface
- Two convenient commands: t2f or tree2file

## License
MIT License