From b94a867c1a60696059facaeebdc05da3dbf4c812 Mon Sep 17 00:00:00 2001 From: dopdev-del Date: Sat, 4 Jul 2020 17:16:15 -0400 Subject: [PATCH] primer commit --- spdtest.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 spdtest.py diff --git a/spdtest.py b/spdtest.py new file mode 100644 index 0000000..76bfca9 --- /dev/null +++ b/spdtest.py @@ -0,0 +1,22 @@ +import speedtest +st = speedtest.Speedtest() + +def opciones(option,optione,optiones): + + if option == 1 and optione == 2 and optiones == 3: + #print(st.download(), 'b/s') + mb=(st.download()*1.0E-6) + print("Velocidad de bajada:","{0:.2f}".format(mb),"mb") + #print(st.upload(), 'b/s') + mb2=(st.upload()*1.0E-6) + print("Velocidad de subida:","{0:.2f}".format(mb2),"mb") + servernames =[] + st.get_servers(servernames) + print("Ping:",st.results.ping,'ms') + else: + print("Please enter the correct choice!") + +print("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-") +print("Haciendo prueba de velocidad en Python") +opciones(1,2,3) +print("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-") \ No newline at end of file -- 2.25.1