https://github.com/violhex/netinf
Network info utility.
https://github.com/violhex/netinf
Last synced: 4 months ago
JSON representation
Network info utility.
- Host: GitHub
- URL: https://github.com/violhex/netinf
- Owner: violhex
- Created: 2025-04-18T05:16:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-18T05:22:28.000Z (about 1 year ago)
- Last Synced: 2025-04-18T18:34:03.827Z (about 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Network Info Tool
This project provides a simple yet powerful CLI and static‑HTML reporting tool for viewing your system’s network interfaces and I/O statistics.
## Usage
### Interactive Mode
Launch the Rich‑powered terminal UI:
```bash
python run.py dev
```
### Generate Structured Report
Produce a JSON/YAML/TOML/HTML report:
```bash
python run.py report -rf html -o report.html
```
Available formats: `json`, `yaml`, `toml`, `html` (default: `html`).
## Packaging as Executable
You can bundle the tool into a single Windows `.exe` using [PyInstaller](https://www.pyinstaller.org/):
1. Install PyInstaller in your virtual environment:
```bash
pip install pyinstaller
```
2. Build the executable:
```bash
pyinstaller --onefile --name network-info run.py
```
3. The launcher exe will be generated in the `dist/` directory (e.g. `dist/network-info.exe`).
You can then invoke:
```bash
dist/network-info.exe dev
dist/network-info.exe report -rf html -o report.html
```