register ping in your system python 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)