Skip to main content

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 (en for English or cn for 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:

  1. Basic network details

    • Local IP address
    • Public IP address
    • Hostname
  2. Website ping results

    • Status (Success/Failed)
    • Average response time
    • Packet loss percentage
  3. DNS resolution tests

    • Multiple DNS servers (AliDNS, 114DNS, DNSPod, etc.)
    • Resolution time
    • Status
  4. Internet speed test results (when using -u flag)

    • Download speed
    • Upload speed
    • Ping latency
    • Server information
  5. Gaming service connectivity (when using -g flag)

    • Status checks for Steam China, Tencent Gaming, etc.
    • Response times
  6. Traceroute information (when using -v flag)

    • 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)

Source distribution for pynettool 1.0
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.

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page