pynettool
A command line tool that displays comprehensive information about the internet connection of the current system, designed with special considerations for networks in China.
Features
- 📊 Basic network information (local IP, public IP, hostname)
- 🌐 Ping tests to popular websites
- ⚡ Internet speed testing (both Speedtest.net and USTC test server)
- 🔍 DNS resolution testing with multiple DNS servers
- 🎮 Gaming service connectivity checks
- 🛣️ Network route tracing
- 🌏 Multi-language support (English and Chinese)
Installation
pip install pynettool
Required dependencies:
- speedtest-cli
- tabulate
- requests
- distro
Usage
Run the basic network test:
pynettool
Options
pynettool [-v] [-g] [-u] [language]
-v,--verbose: Enable verbose output including traceroute-g,--gaming: Test gaming service connectivity-u,--ustc: Use USTC speed test server (may be faster in China)language: Select language (enfor English orcnfor Chinese)
Examples
Run in verbose mode:
pynettool -v
Run with gaming service checks in Chinese:
pynettool -g cn
Run with USTC speed test server:
pynettool -u
Output
The tool provides detailed information including:
-
Basic network details
- Local IP address
- Public IP address
- Hostname
-
Website ping results
- Status (Success/Failed)
- Average response time
- Packet loss percentage
-
DNS resolution tests
- Multiple DNS servers (AliDNS, 114DNS, DNSPod, etc.)
- Resolution time
- Status
-
Internet speed test results (when using
-uflag)- Download speed
- Upload speed
- Ping latency
- Server information
-
Gaming service connectivity (when using
-gflag)- Status checks for Steam China, Tencent Gaming, etc.
- Response times
-
Traceroute information (when using
-vflag)- Network path to baidu.com
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Metadata
Release files for pynettool 1.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 | |
|---|---|---|---|---|
| pynettool-1.0.tar.gz | 22.4 kB | Without provenance | Details |
Release files / pynettool-1.0.tar.gz
| Download URL | pynettool-1.0.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9426303b8200b0cb8c6b85e3dde4e19ccffc94d1a9d41c1d9779a484c031e802
|
|
BLAKE2b-256 checksum How to use checksums |
401393a5a9aee958b95d809d60c4850bdae9678fca247945fb501b6d001c9048
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.9
|
Security for pynettool 1.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.