pesping 1.1.0__tar.gz → 1.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pesping-1.2.2/PKG-INFO ADDED
@@ -0,0 +1,138 @@
1
+ Metadata-Version: 2.4
2
+ Name: pesping
3
+ Version: 1.2.2
4
+ Summary: Concurrent ICMP and TCP scanner with live terminal monitoring, JSON and Excel reporting
5
+ Author: jpesqueda
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/jpesqueda/pesping
8
+ Project-URL: Documentation, https://github.com/jpesqueda/pesping/blob/main/README.es.md
9
+ Project-URL: Issues, https://github.com/jpesqueda/pesping/issues
10
+ Keywords: ping,icmp,tcp,network,monitor,network-automation,upgrade
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Environment :: Console
13
+ Classifier: Topic :: System :: Networking :: Monitoring
14
+ Requires-Python: >=3.10
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: rich>=13.0
18
+ Requires-Dist: colorama>=0.4.6; platform_system == "Windows"
19
+ Provides-Extra: excel
20
+ Requires-Dist: openpyxl>=3.1; extra == "excel"
21
+ Dynamic: license-file
22
+
23
+ # pesping v1.2.2
24
+
25
+ **Cross-platform ICMP/TCP network scanner and live upgrade monitor.** [Documentación en español](README.es.md).
26
+
27
+ Supports Windows, Linux, and macOS, Python 3.10+. A host list produces a **terminal table showing the host name, target, DNS-resolved address, and IP that actually replied**. A failed probe shows `-` in `REPLY IP`; it never falsely claims the resolved address answered.
28
+
29
+ ## Install
30
+
31
+ ```powershell
32
+ py -m pip install -e .
33
+ # For Excel exports:
34
+ py -m pip install -e ".[excel]"
35
+ pesping --help
36
+ ```
37
+
38
+ After releasing to PyPI: `pip install 'pesping[excel]'`.
39
+
40
+ ## Host file
41
+
42
+ ```text
43
+ # Hostname or alias, IPv4 address
44
+ switch01.example.test,192.0.2.10
45
+ switch02.example.test,192.0.2.11
46
+ router01.example.test
47
+ 192.0.2.12
48
+ ```
49
+
50
+ The host file may contain resolvable DNS names alone or labeled addresses (`name,address`). **These are fictitious RFC 5737 and .test examples.** No credentials are required.
51
+
52
+ ## Usage
53
+
54
+ ```powershell
55
+ pesping -ho 192.0.2.10
56
+ pesping -hf hosts.txt
57
+ pesping -hf hosts.txt --show up
58
+ pesping -r 192.0.2.100-200
59
+ pesping -r 192.0.2.100-192.0.2.200
60
+ pesping -s 198.51.100.0/26
61
+ pesping -sf networks.txt --exclude 192.0.2.1
62
+ pesping -hf hosts.txt --monitor
63
+ pesping -hf hosts.txt --watch --interval 3 --cycles 20
64
+ pesping -hf hosts.txt --monitor --only-changes --stop-when-all-up
65
+ pesping -hf hosts.txt --tcp 443
66
+ pesping -ho 2001:db8::10 --ipv6
67
+ pesping -hf hosts.txt --reverse-dns --json scan.json --excel scan.xlsx
68
+ pesping -hf hosts.txt --monitor --json results.json --excel upgrade.xlsx --history history.csv --csv events.csv --log events.log
69
+ pesping -sf networks.txt --show down --workers 20 --max-hosts 4096
70
+ ```
71
+
72
+ `networks.txt` may mix IPv4/IPv6 CIDRs, IPv4 ranges, individual hosts, and comments; duplicates are removed. IPv4 subnet scanning excludes network/broadcast addresses for ordinary prefixes and supports `/31` and `/32` as special cases. IPv4 full and abbreviated ranges include both endpoints. Large scans need an explicit `--max-hosts` increase.
73
+
74
+ ## Table fields
75
+
76
+ | Field | Meaning |
77
+ |---|---|
78
+ | HOST | Original hostname or friendly name |
79
+ | TARGET | Supplied IP/hostname |
80
+ | RESOLVED IP | IP selected after DNS resolution, even if the probe fails |
81
+ | REPLY IP | The address probed **only when the probe succeeds**, otherwise `-` |
82
+ | STATUS | UP, DOWN, or PENDING while monitoring initializes |
83
+ | RTT ms | Last successful ICMP RTT, or TCP connection duration |
84
+ | LOSS % | Percentage of probes without a success |
85
+ | OUTAGES | Confirmed DOWN transitions |
86
+
87
+ When a hostname resolves to several IPs, this version probes the first preferred address, normally IPv4 unless `--ipv6` is specified. **It does not enumerate all A/AAAA records.** With TCP checks, an accepted TCP connection counts as UP, not an ICMP reply.
88
+
89
+ ## Monitoring and statistics
90
+
91
+ - Dashboard: `rich` refreshes an in-place table when monitoring. `--no-live` prints a table each cycle; `--only-changes` prints events only.
92
+ - Reliability: default `--fail-threshold 3`, `--recovery-threshold 2`, `--interval 2`, `--timeout 1`, `--workers 50`.
93
+ - Warnings: `--latency-warning 100` (milliseconds) and `--loss-warning 20` (percent) highlight rows in yellow. These do **not** change UP/DOWN states.
94
+ - Statistics in JSON/Excel: minimum/average/maximum RTT, loss percentage, successful probe percentage, estimated availability percentage during the current monitoring run, outages, and elapsed downtime.
95
+ - `--reverse-dns`: optional PTR lookup stored in reports (may add delay during startup).
96
+ - Reports: `--json`, `--excel`, `--history` (append-only per-device CSV snapshots), `--csv` (event log), and `--log`.
97
+ - Exit: Ctrl+C prints the last table and writes enabled reports. `--cycles N` limits monitored runs, and `--wait-for-up` / `--stop-when-all-up` retain original purposes.
98
+
99
+ **Accuracy:** RTT is parsed from the operating system's localized ping output. On systems whose ping text differs, RTT may be `-` even if status is UP. Packet-loss and success percentages represent sampled probes, not an independent SLA measurement. Estimated availability is derived from confirmed state transitions during this one execution; it is **not** a contract-grade SLA and does not reconstruct outages between runs. A non-reply can mean a firewall blocks ICMP, not that a host is offline. Scan only authorized systems.
100
+
101
+ ## Development
102
+
103
+ ```powershell
104
+ py -m pip install -e ".[excel]" pytest
105
+ py -m pytest -q
106
+ py -m pip install build twine
107
+ py -m build
108
+ py -m twine check dist/*
109
+ ```
110
+
111
+ ## Security
112
+
113
+ No real production targets, usernames, or passwords are stored in source or examples. The reports generated at runtime may contain real user-supplied host names or addresses; protect them appropriately. MIT license.
114
+
115
+ ## Multi-packet scans and expected IP (v1.2.2)
116
+
117
+ A one-time scan sends four probes per target by default. Use `-c 100` to send 100 probes **per target** and calculate sent, received, packet-loss percentage and average/min/max RTT of successful replies. All targets run concurrently across each round. `--probe-interval` controls the delay between rounds (default 0.2 seconds).
118
+
119
+ ```powershell
120
+ pesping -hf hosts.txt -c 100
121
+ pesping -ho 192.0.2.10 -c 100 --probe-interval 0.1
122
+ pesping -s 198.51.100.0/26 -c 5 --show down
123
+ ```
124
+
125
+ The terminal always prints TARGET (original input) and EXPECTED IP (DNS-resolved IP even when DOWN), plus REPLY IP (last successfully observed address, or `-` when none replied). If DNS fails, expected IP shows `-` and the original hostname remains in TARGET. For a finite scan, UP means at least one successful reply, while LOSS % reveals intermittent failure. For ongoing monitoring, use `--monitor --cycles N` rather than `-c`. An ICMP response confirms reachability only, not application health.
126
+
127
+ ## Default table and detailed output (v1.2.2)
128
+ A one-time scan now sends **4 probes per target by default**. The default table displays only **HOST | IP | STATUS**; the IP column is the intended/last DNS-resolved destination even if no reply arrives. For unresolved names it shows `-`.
129
+
130
+ ```powershell
131
+ pesping -hf hosts.txt # 4 probes, compact table
132
+ pesping -hf hosts.txt --all # RTT, packet loss, sent/received, reply IP
133
+ pesping -hf hosts.txt -c 100 --all # 100 probes per host
134
+ pesping -hf hosts.txt --show up # UP rows only
135
+ pesping -hf hosts.txt --show all --all # all statuses and full columns
136
+ ```
137
+
138
+ `--show all` means *all status rows*, while `--all` means *all columns*. In continuous monitor mode, `-c` is not used; each monitoring cycle probes once.
@@ -0,0 +1,116 @@
1
+ # pesping v1.2.2
2
+
3
+ **Cross-platform ICMP/TCP network scanner and live upgrade monitor.** [Documentación en español](README.es.md).
4
+
5
+ Supports Windows, Linux, and macOS, Python 3.10+. A host list produces a **terminal table showing the host name, target, DNS-resolved address, and IP that actually replied**. A failed probe shows `-` in `REPLY IP`; it never falsely claims the resolved address answered.
6
+
7
+ ## Install
8
+
9
+ ```powershell
10
+ py -m pip install -e .
11
+ # For Excel exports:
12
+ py -m pip install -e ".[excel]"
13
+ pesping --help
14
+ ```
15
+
16
+ After releasing to PyPI: `pip install 'pesping[excel]'`.
17
+
18
+ ## Host file
19
+
20
+ ```text
21
+ # Hostname or alias, IPv4 address
22
+ switch01.example.test,192.0.2.10
23
+ switch02.example.test,192.0.2.11
24
+ router01.example.test
25
+ 192.0.2.12
26
+ ```
27
+
28
+ The host file may contain resolvable DNS names alone or labeled addresses (`name,address`). **These are fictitious RFC 5737 and .test examples.** No credentials are required.
29
+
30
+ ## Usage
31
+
32
+ ```powershell
33
+ pesping -ho 192.0.2.10
34
+ pesping -hf hosts.txt
35
+ pesping -hf hosts.txt --show up
36
+ pesping -r 192.0.2.100-200
37
+ pesping -r 192.0.2.100-192.0.2.200
38
+ pesping -s 198.51.100.0/26
39
+ pesping -sf networks.txt --exclude 192.0.2.1
40
+ pesping -hf hosts.txt --monitor
41
+ pesping -hf hosts.txt --watch --interval 3 --cycles 20
42
+ pesping -hf hosts.txt --monitor --only-changes --stop-when-all-up
43
+ pesping -hf hosts.txt --tcp 443
44
+ pesping -ho 2001:db8::10 --ipv6
45
+ pesping -hf hosts.txt --reverse-dns --json scan.json --excel scan.xlsx
46
+ pesping -hf hosts.txt --monitor --json results.json --excel upgrade.xlsx --history history.csv --csv events.csv --log events.log
47
+ pesping -sf networks.txt --show down --workers 20 --max-hosts 4096
48
+ ```
49
+
50
+ `networks.txt` may mix IPv4/IPv6 CIDRs, IPv4 ranges, individual hosts, and comments; duplicates are removed. IPv4 subnet scanning excludes network/broadcast addresses for ordinary prefixes and supports `/31` and `/32` as special cases. IPv4 full and abbreviated ranges include both endpoints. Large scans need an explicit `--max-hosts` increase.
51
+
52
+ ## Table fields
53
+
54
+ | Field | Meaning |
55
+ |---|---|
56
+ | HOST | Original hostname or friendly name |
57
+ | TARGET | Supplied IP/hostname |
58
+ | RESOLVED IP | IP selected after DNS resolution, even if the probe fails |
59
+ | REPLY IP | The address probed **only when the probe succeeds**, otherwise `-` |
60
+ | STATUS | UP, DOWN, or PENDING while monitoring initializes |
61
+ | RTT ms | Last successful ICMP RTT, or TCP connection duration |
62
+ | LOSS % | Percentage of probes without a success |
63
+ | OUTAGES | Confirmed DOWN transitions |
64
+
65
+ When a hostname resolves to several IPs, this version probes the first preferred address, normally IPv4 unless `--ipv6` is specified. **It does not enumerate all A/AAAA records.** With TCP checks, an accepted TCP connection counts as UP, not an ICMP reply.
66
+
67
+ ## Monitoring and statistics
68
+
69
+ - Dashboard: `rich` refreshes an in-place table when monitoring. `--no-live` prints a table each cycle; `--only-changes` prints events only.
70
+ - Reliability: default `--fail-threshold 3`, `--recovery-threshold 2`, `--interval 2`, `--timeout 1`, `--workers 50`.
71
+ - Warnings: `--latency-warning 100` (milliseconds) and `--loss-warning 20` (percent) highlight rows in yellow. These do **not** change UP/DOWN states.
72
+ - Statistics in JSON/Excel: minimum/average/maximum RTT, loss percentage, successful probe percentage, estimated availability percentage during the current monitoring run, outages, and elapsed downtime.
73
+ - `--reverse-dns`: optional PTR lookup stored in reports (may add delay during startup).
74
+ - Reports: `--json`, `--excel`, `--history` (append-only per-device CSV snapshots), `--csv` (event log), and `--log`.
75
+ - Exit: Ctrl+C prints the last table and writes enabled reports. `--cycles N` limits monitored runs, and `--wait-for-up` / `--stop-when-all-up` retain original purposes.
76
+
77
+ **Accuracy:** RTT is parsed from the operating system's localized ping output. On systems whose ping text differs, RTT may be `-` even if status is UP. Packet-loss and success percentages represent sampled probes, not an independent SLA measurement. Estimated availability is derived from confirmed state transitions during this one execution; it is **not** a contract-grade SLA and does not reconstruct outages between runs. A non-reply can mean a firewall blocks ICMP, not that a host is offline. Scan only authorized systems.
78
+
79
+ ## Development
80
+
81
+ ```powershell
82
+ py -m pip install -e ".[excel]" pytest
83
+ py -m pytest -q
84
+ py -m pip install build twine
85
+ py -m build
86
+ py -m twine check dist/*
87
+ ```
88
+
89
+ ## Security
90
+
91
+ No real production targets, usernames, or passwords are stored in source or examples. The reports generated at runtime may contain real user-supplied host names or addresses; protect them appropriately. MIT license.
92
+
93
+ ## Multi-packet scans and expected IP (v1.2.2)
94
+
95
+ A one-time scan sends four probes per target by default. Use `-c 100` to send 100 probes **per target** and calculate sent, received, packet-loss percentage and average/min/max RTT of successful replies. All targets run concurrently across each round. `--probe-interval` controls the delay between rounds (default 0.2 seconds).
96
+
97
+ ```powershell
98
+ pesping -hf hosts.txt -c 100
99
+ pesping -ho 192.0.2.10 -c 100 --probe-interval 0.1
100
+ pesping -s 198.51.100.0/26 -c 5 --show down
101
+ ```
102
+
103
+ The terminal always prints TARGET (original input) and EXPECTED IP (DNS-resolved IP even when DOWN), plus REPLY IP (last successfully observed address, or `-` when none replied). If DNS fails, expected IP shows `-` and the original hostname remains in TARGET. For a finite scan, UP means at least one successful reply, while LOSS % reveals intermittent failure. For ongoing monitoring, use `--monitor --cycles N` rather than `-c`. An ICMP response confirms reachability only, not application health.
104
+
105
+ ## Default table and detailed output (v1.2.2)
106
+ A one-time scan now sends **4 probes per target by default**. The default table displays only **HOST | IP | STATUS**; the IP column is the intended/last DNS-resolved destination even if no reply arrives. For unresolved names it shows `-`.
107
+
108
+ ```powershell
109
+ pesping -hf hosts.txt # 4 probes, compact table
110
+ pesping -hf hosts.txt --all # RTT, packet loss, sent/received, reply IP
111
+ pesping -hf hosts.txt -c 100 --all # 100 probes per host
112
+ pesping -hf hosts.txt --show up # UP rows only
113
+ pesping -hf hosts.txt --show all --all # all statuses and full columns
114
+ ```
115
+
116
+ `--show all` means *all status rows*, while `--all` means *all columns*. In continuous monitor mode, `-c` is not used; each monitoring cycle probes once.
@@ -4,28 +4,24 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pesping"
7
- version = "1.1.0"
8
- description = "Concurrent IPv4 ICMP scanner and upgrade availability monitor"
7
+ version = "1.2.2"
8
+ description = "Concurrent ICMP and TCP scanner with live terminal monitoring, JSON and Excel reporting"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
11
11
  license = {text = "MIT"}
12
12
  authors = [{name = "jpesqueda"}]
13
- keywords = ["ping", "icmp", "network", "monitor", "network-automation", "upgrade"]
14
- classifiers = [
15
- "Programming Language :: Python :: 3",
16
- "Programming Language :: Python :: 3 :: Only",
17
- "Operating System :: OS Independent",
18
- "Environment :: Console",
19
- "Topic :: System :: Networking :: Monitoring",
20
- ]
21
- dependencies = ["colorama>=0.4.6; platform_system == 'Windows'"]
13
+ keywords = ["ping", "icmp", "tcp", "network", "monitor", "network-automation", "upgrade"]
14
+ classifiers = ["Programming Language :: Python :: 3", "Environment :: Console", "Topic :: System :: Networking :: Monitoring"]
15
+ dependencies = ["rich>=13.0", "colorama>=0.4.6; platform_system == 'Windows'"]
16
+
17
+ [project.optional-dependencies]
18
+ excel = ["openpyxl>=3.1"]
22
19
 
23
20
  [project.scripts]
24
21
  pesping = "pesping:main"
25
22
 
26
23
  [project.urls]
27
24
  Homepage = "https://github.com/jpesqueda/pesping"
28
- Repository = "https://github.com/jpesqueda/pesping"
29
25
  Documentation = "https://github.com/jpesqueda/pesping/blob/main/README.es.md"
30
26
  Issues = "https://github.com/jpesqueda/pesping/issues"
31
27
 
@@ -0,0 +1,138 @@
1
+ Metadata-Version: 2.4
2
+ Name: pesping
3
+ Version: 1.2.2
4
+ Summary: Concurrent ICMP and TCP scanner with live terminal monitoring, JSON and Excel reporting
5
+ Author: jpesqueda
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/jpesqueda/pesping
8
+ Project-URL: Documentation, https://github.com/jpesqueda/pesping/blob/main/README.es.md
9
+ Project-URL: Issues, https://github.com/jpesqueda/pesping/issues
10
+ Keywords: ping,icmp,tcp,network,monitor,network-automation,upgrade
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Environment :: Console
13
+ Classifier: Topic :: System :: Networking :: Monitoring
14
+ Requires-Python: >=3.10
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: rich>=13.0
18
+ Requires-Dist: colorama>=0.4.6; platform_system == "Windows"
19
+ Provides-Extra: excel
20
+ Requires-Dist: openpyxl>=3.1; extra == "excel"
21
+ Dynamic: license-file
22
+
23
+ # pesping v1.2.2
24
+
25
+ **Cross-platform ICMP/TCP network scanner and live upgrade monitor.** [Documentación en español](README.es.md).
26
+
27
+ Supports Windows, Linux, and macOS, Python 3.10+. A host list produces a **terminal table showing the host name, target, DNS-resolved address, and IP that actually replied**. A failed probe shows `-` in `REPLY IP`; it never falsely claims the resolved address answered.
28
+
29
+ ## Install
30
+
31
+ ```powershell
32
+ py -m pip install -e .
33
+ # For Excel exports:
34
+ py -m pip install -e ".[excel]"
35
+ pesping --help
36
+ ```
37
+
38
+ After releasing to PyPI: `pip install 'pesping[excel]'`.
39
+
40
+ ## Host file
41
+
42
+ ```text
43
+ # Hostname or alias, IPv4 address
44
+ switch01.example.test,192.0.2.10
45
+ switch02.example.test,192.0.2.11
46
+ router01.example.test
47
+ 192.0.2.12
48
+ ```
49
+
50
+ The host file may contain resolvable DNS names alone or labeled addresses (`name,address`). **These are fictitious RFC 5737 and .test examples.** No credentials are required.
51
+
52
+ ## Usage
53
+
54
+ ```powershell
55
+ pesping -ho 192.0.2.10
56
+ pesping -hf hosts.txt
57
+ pesping -hf hosts.txt --show up
58
+ pesping -r 192.0.2.100-200
59
+ pesping -r 192.0.2.100-192.0.2.200
60
+ pesping -s 198.51.100.0/26
61
+ pesping -sf networks.txt --exclude 192.0.2.1
62
+ pesping -hf hosts.txt --monitor
63
+ pesping -hf hosts.txt --watch --interval 3 --cycles 20
64
+ pesping -hf hosts.txt --monitor --only-changes --stop-when-all-up
65
+ pesping -hf hosts.txt --tcp 443
66
+ pesping -ho 2001:db8::10 --ipv6
67
+ pesping -hf hosts.txt --reverse-dns --json scan.json --excel scan.xlsx
68
+ pesping -hf hosts.txt --monitor --json results.json --excel upgrade.xlsx --history history.csv --csv events.csv --log events.log
69
+ pesping -sf networks.txt --show down --workers 20 --max-hosts 4096
70
+ ```
71
+
72
+ `networks.txt` may mix IPv4/IPv6 CIDRs, IPv4 ranges, individual hosts, and comments; duplicates are removed. IPv4 subnet scanning excludes network/broadcast addresses for ordinary prefixes and supports `/31` and `/32` as special cases. IPv4 full and abbreviated ranges include both endpoints. Large scans need an explicit `--max-hosts` increase.
73
+
74
+ ## Table fields
75
+
76
+ | Field | Meaning |
77
+ |---|---|
78
+ | HOST | Original hostname or friendly name |
79
+ | TARGET | Supplied IP/hostname |
80
+ | RESOLVED IP | IP selected after DNS resolution, even if the probe fails |
81
+ | REPLY IP | The address probed **only when the probe succeeds**, otherwise `-` |
82
+ | STATUS | UP, DOWN, or PENDING while monitoring initializes |
83
+ | RTT ms | Last successful ICMP RTT, or TCP connection duration |
84
+ | LOSS % | Percentage of probes without a success |
85
+ | OUTAGES | Confirmed DOWN transitions |
86
+
87
+ When a hostname resolves to several IPs, this version probes the first preferred address, normally IPv4 unless `--ipv6` is specified. **It does not enumerate all A/AAAA records.** With TCP checks, an accepted TCP connection counts as UP, not an ICMP reply.
88
+
89
+ ## Monitoring and statistics
90
+
91
+ - Dashboard: `rich` refreshes an in-place table when monitoring. `--no-live` prints a table each cycle; `--only-changes` prints events only.
92
+ - Reliability: default `--fail-threshold 3`, `--recovery-threshold 2`, `--interval 2`, `--timeout 1`, `--workers 50`.
93
+ - Warnings: `--latency-warning 100` (milliseconds) and `--loss-warning 20` (percent) highlight rows in yellow. These do **not** change UP/DOWN states.
94
+ - Statistics in JSON/Excel: minimum/average/maximum RTT, loss percentage, successful probe percentage, estimated availability percentage during the current monitoring run, outages, and elapsed downtime.
95
+ - `--reverse-dns`: optional PTR lookup stored in reports (may add delay during startup).
96
+ - Reports: `--json`, `--excel`, `--history` (append-only per-device CSV snapshots), `--csv` (event log), and `--log`.
97
+ - Exit: Ctrl+C prints the last table and writes enabled reports. `--cycles N` limits monitored runs, and `--wait-for-up` / `--stop-when-all-up` retain original purposes.
98
+
99
+ **Accuracy:** RTT is parsed from the operating system's localized ping output. On systems whose ping text differs, RTT may be `-` even if status is UP. Packet-loss and success percentages represent sampled probes, not an independent SLA measurement. Estimated availability is derived from confirmed state transitions during this one execution; it is **not** a contract-grade SLA and does not reconstruct outages between runs. A non-reply can mean a firewall blocks ICMP, not that a host is offline. Scan only authorized systems.
100
+
101
+ ## Development
102
+
103
+ ```powershell
104
+ py -m pip install -e ".[excel]" pytest
105
+ py -m pytest -q
106
+ py -m pip install build twine
107
+ py -m build
108
+ py -m twine check dist/*
109
+ ```
110
+
111
+ ## Security
112
+
113
+ No real production targets, usernames, or passwords are stored in source or examples. The reports generated at runtime may contain real user-supplied host names or addresses; protect them appropriately. MIT license.
114
+
115
+ ## Multi-packet scans and expected IP (v1.2.2)
116
+
117
+ A one-time scan sends four probes per target by default. Use `-c 100` to send 100 probes **per target** and calculate sent, received, packet-loss percentage and average/min/max RTT of successful replies. All targets run concurrently across each round. `--probe-interval` controls the delay between rounds (default 0.2 seconds).
118
+
119
+ ```powershell
120
+ pesping -hf hosts.txt -c 100
121
+ pesping -ho 192.0.2.10 -c 100 --probe-interval 0.1
122
+ pesping -s 198.51.100.0/26 -c 5 --show down
123
+ ```
124
+
125
+ The terminal always prints TARGET (original input) and EXPECTED IP (DNS-resolved IP even when DOWN), plus REPLY IP (last successfully observed address, or `-` when none replied). If DNS fails, expected IP shows `-` and the original hostname remains in TARGET. For a finite scan, UP means at least one successful reply, while LOSS % reveals intermittent failure. For ongoing monitoring, use `--monitor --cycles N` rather than `-c`. An ICMP response confirms reachability only, not application health.
126
+
127
+ ## Default table and detailed output (v1.2.2)
128
+ A one-time scan now sends **4 probes per target by default**. The default table displays only **HOST | IP | STATUS**; the IP column is the intended/last DNS-resolved destination even if no reply arrives. For unresolved names it shows `-`.
129
+
130
+ ```powershell
131
+ pesping -hf hosts.txt # 4 probes, compact table
132
+ pesping -hf hosts.txt --all # RTT, packet loss, sent/received, reply IP
133
+ pesping -hf hosts.txt -c 100 --all # 100 probes per host
134
+ pesping -hf hosts.txt --show up # UP rows only
135
+ pesping -hf hosts.txt --show all --all # all statuses and full columns
136
+ ```
137
+
138
+ `--show all` means *all status rows*, while `--all` means *all columns*. In continuous monitor mode, `-c` is not used; each monitoring cycle probes once.
@@ -1,3 +1,7 @@
1
+ rich>=13.0
1
2
 
2
3
  [:platform_system == "Windows"]
3
4
  colorama>=0.4.6
5
+
6
+ [excel]
7
+ openpyxl>=3.1