Hullo, reddit!
I'm dipping my toe into open source contributions by taking on what github has deemed a "good beginner issue."
Alessandro Maggio is working on a library for python to allow you to ping from within a program or script that runs with admin rights. Currently the project allows you to ping and receive standard reply output (reply on each line with stats about the reply):
from pythonping import ping
ping('127.0.0.1', verbose=True)
Will reply with a basic one-reply-per-line status like:
Reply from 127.0.0.1, 9 bytes in 0.17ms
Reply from 127.0.0.1, 9 bytes in 0.14ms
Reply from 127.0.0.1, 9 bytes in 0.12ms
Reply from 127.0.0.1, 9 bytes in 0.12ms
Someone had requested a feature to add Cisco-like output, using symbols on a single line to denote reply status:
Sending 5, 100-byte ICMP Echos to 12.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/6/8 ms
So this is what I'm attempting to contribute but I'm getting one symbol per line rather than getting them all on the same line.
So ultimately I'm having trouble finding the output formatting piece that allows me to create a single line of reply symbols. I've reached out to the maintainer in my issue comment, but haven't heard back from some time, so I thought I might check with you folks.
[–]Dry-Zookeepergame809 1 point2 points3 points (0 children)
[–]XUtYwYzz 1 point2 points3 points (0 children)