feat: Integrate PythonPing as CLI tool#111
Open
Theory903 wants to merge 1 commit intoalessandromaggio:masterfrom
Open
feat: Integrate PythonPing as CLI tool#111Theory903 wants to merge 1 commit intoalessandromaggio:masterfrom
Theory903 wants to merge 1 commit intoalessandromaggio:masterfrom
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Enhancements:
Usage:
Testing:
Associated Issue:
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