black
This commit is contained in:
parent
51a30d5147
commit
2a9ab40739
@ -62,7 +62,7 @@ def traceroute(target: str) -> list[tuple[int, int]]:
|
||||
)
|
||||
hops: list[str] = re.findall(r"\n\s*\d+\s+([\d.]+)", result.stdout)
|
||||
|
||||
coords: list[tuple[int,int]] = []
|
||||
coords: list[tuple[int, int]] = []
|
||||
for ip in hops:
|
||||
try:
|
||||
response: dict = requests.get(f"http://ip-api.com/json/{ip}").json()
|
||||
@ -110,7 +110,7 @@ def main():
|
||||
# Convert to 3D coordinates
|
||||
points_3d = [latlon_to_xyz(lat, lon) for lat, lon in locations]
|
||||
|
||||
pl : pv.Plotter = pv.Plotter(off_screen=(not args.external))
|
||||
pl: pv.Plotter = pv.Plotter(off_screen=(not args.external))
|
||||
pl.add_mesh(globe, color="tan", smooth_shading=True, texture=tex, show_edges=False)
|
||||
|
||||
for pt in points_3d:
|
||||
@ -123,6 +123,7 @@ def main():
|
||||
|
||||
kitty.hide_cursor()
|
||||
y, x = kitty.get_position()
|
||||
|
||||
print("\n" * 25, end="")
|
||||
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user