from pythonping import ping code example
Example: how to get ping from computer IN PYTHON
st = Speedtest()
print("Download:=>", st.download())
print("upload:=>", st.upload())
st.get_servers([])
print("Ping :=>", st.results.ping)
st = Speedtest()
print("Download:=>", st.download())
print("upload:=>", st.upload())
st.get_servers([])
print("Ping :=>", st.results.ping)