pynettool: A command line tool that displays information about the Internet connection of current system
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pynettool-1.0.tar.gz.
File metadata
- Download URL: pynettool-1.0.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9426303b8200b0cb8c6b85e3dde4e19ccffc94d1a9d41c1d9779a484c031e802
|
|
| MD5 |
226d8c7b3396b3cf7ce2b83b2f8ebf3f
|
|
| BLAKE2b-256 |
401393a5a9aee958b95d809d60c4850bdae9678fca247945fb501b6d001c9048
|