
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
NetPing
Advanced tools
NetPing is a Python package and CLI for advanced ping diagnostics, website reachability analysis, and practical network optimization suggestions.
It focuses on four things:
ping tool443netping initpip install NetPing
For local development:
python -m pip install -e .[dev]
Run a simple diagnostic:
netping diagnose 1.1.1.1
Run more samples and print JSON:
netping diagnose example.com --count 8 --tcp-port 443 --tcp-port 8443 --json
Run a batch check against common websites:
netping websites --profile general --workers 4
Run a custom list of sites:
netping websites --target github.com --target python.org --sort-by latency --json
Probe the path MTU in addition to standard diagnostics:
netping diagnose 8.8.8.8 --probe-mtu
Initialize the local config after installation:
netping init
List built-in profiles and inspect the active config:
netping profiles
netping config
Use it from Python:
from netping import diagnose_target
report = diagnose_target(
"1.1.1.1",
count=5,
timeout_ms=1000,
probe_mtu=True,
tcp_ports=[443, 853],
)
print(report.network_score, report.health_label)
print(report.summary.average_latency_ms, report.summary.percentile_95_latency_ms)
for recommendation in report.recommendations:
print("-", recommendation.title)
Batch diagnostics from Python:
from netping import diagnose_websites
batch = diagnose_websites(profile="developer", count=3, tcp_ports=[443], workers=4)
print(batch.aggregate.best_target, batch.aggregate.average_score)
for item in batch.results:
print(item.rank, item.name, item.report.network_score)
Target: 1.1.1.1
Score: 91/100 (excellent)
Quality grade: excellent
Samples: 5
Packet loss: 0.00% (success 100.00%)
Latency min/avg/max: 11.20 / 13.08 / 17.80 ms
Latency median/p95/stddev: 12.90 / 17.10 / 2.24 ms
Latency spread: 6.60 ms | Stability score: 93/100
Jitter: 2.14 ms
DNS lookup: 6.84 ms
Resolved addresses: 1.1.1.1
TCP checks:
- Port 443: reachable in 17.20 ms
Recommendations
- [info] Overall network health is excellent: Computed network score: 91/100 with ping quality graded as excellent.
- [info] TCP connectivity checks succeeded: The requested TCP services accepted connections.
Build the distribution files:
python -m pip install build
python -m build
Upload them:
python -m pip install twine
python -m twine upload dist/*
If the package name is already taken on PyPI, update the name field in pyproject.toml before publishing.
You should also add your own repository URL and author metadata before publishing a public release.
NetPing does not execute arbitrary commands during pip install. Use netping init for explicit first-run setup instead.
FAQs
Ping diagnostics and network optimization suggestions for Python and the command line.
We found that NetPing demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.