0

Friends, how can I test the configurations of (vmess|vless|trojan|ss) with Python?

I need a function to test the speed of given v2ray configs

vlad 0024
  • 3
  • 5

1 Answers1

2

There is a project vmessping by v2fly that support only vmess but there is a LiteSpeedTest for trojan/ss

sample:

from subprocess import Popen, PIPE

def speedtest(vmesslink):
    process = Popen(["./vmessspeed", vmesslink], stdout=PIPE)
    stdout = process.communicate()[0]

    return stdout