Skip to content

Commit

Permalink
Novo projeto
Browse files Browse the repository at this point in the history
  • Loading branch information
rigueti-bruno committed Sep 30, 2024
1 parent ef292c4 commit 0bc825d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions testador-velocidade-internet/REDME.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*** O presente exemplo de código visa verificar a velocidade da conexão local com a internet através da biblioteca Speedtest da Linguagem Python.
17 changes: 17 additions & 0 deletions testador-velocidade-internet/localinternetspeed.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import speedtest as st

def Speed_Test():
test = st.Speedtest()

down_speed = test.download()
down_speed = round(down_speed / 10**6, 2)
print(f"Velocidade de download: {down_speed} Mbps")

up_speed = test.upload()
up_speed = round(up_speed / 10**6, 2)
print(f"Velocidade de upload: {up_speed} Mbps")

ping = test.results.ping
print(f"Latência: {ping} ms")

Speed_Test()

0 comments on commit 0bc825d

Please sign in to comment.