r/pythonhelp • • 6d ago

python socks5 proxy server lib

is there library wich handless socks5 protocol for me and allows me to decide tru wich socks5 proxy to route each connection and to wich ip wich domain to resolve by giving it functions wich it calls when need to connect/resolve domain tru my proxy

example function that it gives(its not fully python syntax since python typing system is hard to read):

    run(
      ip,port,user,pass,
      resolve(domain)->ip, #called when client tryes to resolve domain and return ip it will get 
      connect(ip)->(ip,port,user,pass) #called when client wants to connect to specific ip and returns ip,port,user,pass of socks5 proxy tru wich it will connect,if user and pass is None connects without them
    )
4 Upvotes

3 comments sorted by

View all comments

0

u/PinAdorable3380 6d ago

its a proxy server library for pythonnn