Skip to main content

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 (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.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynettool-1.0.tar.gz (22.4 kB view details)

Uploaded Source

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

Hashes for pynettool-1.0.tar.gz
Algorithm Hash digest
SHA256 9426303b8200b0cb8c6b85e3dde4e19ccffc94d1a9d41c1d9779a484c031e802
MD5 226d8c7b3396b3cf7ce2b83b2f8ebf3f
BLAKE2b-256 401393a5a9aee958b95d809d60c4850bdae9678fca247945fb501b6d001c9048

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page