Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: alessandromaggio/pythonping
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
Loading
...
head repository: Theory903/pythonping
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Dec 4, 2023

  1. feat: Integrate PythonPing as CLI tool

    This commit introduces PythonPing as a command-line tool (CLI) for network troubleshooting. The 'ping' functionality allows users to perform ICMP echo requests to a specified target IP address or hostname, displaying detailed response information and round-trip time (RTT) statistics.
    
    Changes Made:
    - Added 'ping.py' implementing the CLI tool with argparse for argument parsing and pythonping for ICMP ping operations.
    - Defined perform_ping() to execute pings and display responses.
    - Implemented ping_command_line() for parsing arguments and executing ping operations based on user inputs.
    
    Enhancements:
    - Displayed ping results, including successful replies and timed-out requests.
    - Calculated and exhibited RTT statistics (min/avg/max) for successful ping responses.
    
    Usage:
    - Users can execute the tool using 'python3 -m ping [target] [--count]'.
    - 'Target' represents the IP address or hostname to ping; '--count' specifies the number of pings (default: 4).
    
    Testing:
    - Thoroughly tested the tool to ensure consistent functionality across various network scenarios.
    
    Associated Issue:
    - Resolves #<issue_number>: A discussion was held in the linked issue before implementing this feature.
    
    Note: This commit adheres to the project's guidelines, including the code of conduct, and is ready for review and integration into the 'dev' branch.
    
    Contributor: Abhishek Jha
    Theory903 authored Dec 4, 2023
    Configuration menu
    Copy the full SHA
    a402abb View commit details
    Browse the repository at this point in the history
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.