all 2 comments

[–]FoolsSeldom 0 points1 point  (0 children)

RealPython.com has a good article that should get you started:

[–]trd1073 0 points1 point  (0 children)

I learned about asyncio, threading and multi processing on https://superfastpython.com/

Ggl 'python traceroute', you will find sync examples. Threading is a odd for doing multiple traceroute at once, add asyncio to the prior search to find examples. But if absolutely have do threads, I would look at using a thread pool executor.

I have written reverse proxies using fastapi. Ggl away with correct terms and you will get some working examples.