-
Notifications
You must be signed in to change notification settings - Fork 81
Description
Is your feature request related to a problem? Please describe.
I want to add support for using pythonping as a command-line tool. This would be beneficial for Windows, which doesn't have the ping command by default, as well as embedded devices that may not have ping support. Having pythonping as a command-line tool would provide a convenient alternative for network troubleshooting.
Describe the solution you'd like
I would like to create a command-line tool that utilizes pythonping. Users should be able to execute the tool from the command line by running python3 -m ping [ip], where [ip] is the target IP address. The tool should use pythonping to send ICMP echo requests to the specified IP address and display the ping results in a user-friendly format
Describe alternatives you've considered
Currently, users can install pythonping as a Python library and use it programmatically to perform ping operations. However, having pythonping as a standalone command-line tool would simplify the process and make it more accessible, especially for Windows users or those working with embedded systems.
Additional context
Adding pythonping as a command-line tool would provide a consistent ping functionality across different platforms, making it easier for users to perform network diagnostics and troubleshoot connectivity. It would be particularly useful for Windows users or those working with embedded systems that do not have native ping support.
the current response from my fork
python3 -m pythonping 'google.com'
Reply from 142.250.192.142, 29 bytes in 24.45ms
Reply from 142.250.192.142, 29 bytes in 25.78ms
Reply from 142.250.192.142, 29 bytes in 24.59ms
Reply from 142.250.192.142, 29 bytes in 23.95ms
Round Trip Times min/avg/max is 23.95/24.69/25.78 ms
if you approve of this feature I will raise the PR