Skip to main content

A tool loading gui-config.json for ss-local

Project description

ss-quick

ss-quick 是一个为 ss-local 自动加载 gui-config.json 的工具。

它通过测试多个服务器的连接延迟,自动选择延迟最低的服务器,并输出为 ss-local 的选项。

你也可以直接指定要使用的服务器配置。

screenshot

USAGE

ss-quick -h
usage: ss-quick [-h] [-c CONFIG_FILE] [-n N]

A tool to load gui-config.json for ss-local.

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG_FILE, --config-file CONFIG_FILE
                        path to gui-config.json
  -n N                  choose (1-n)th config to start ss-local.
  --uri                 print config in the form of uri to stdout.
  --debug               print debug information.

查看测试延迟:

ss-quick -c /path/to/gui-config.json

12-26 21:42:39 INFO: Loading config file from /path/to/gui-config.json
12-26 21:42:39 INFO: Start Connection Latency Test
[1] unreachable         test1.host:test1线路
[2] server not know     test3.host:test2线路
[3] 89.28 ms            test4.host:test3线路
[4] timeout             test5.host:test4线路

-s test3.host -p 1234 -k passwwwwwd -m aes-256-cfb

直接输出 flags 作为 ss-local 的启动参数:

ss-local -v -l 1080 `ss-quick -c /path/to/gui-config.json`

选择第2个服务器:

ss-local -v -l 1080 `ss-quick -c /path/to/gui-config.json -n2`

输出指定配置为 ss:// 形式的 uri :

ss-quick -c /path/to/gui-config.json -n2 --uri

配合 qrcode 输出为二维码:

qr `ss-quick -c /path/to/gui-config.json --uri`

BUG

  1. 如果线路列表过长,滚出终端显示范围的部分,测试延迟的结果将不会得到刷新。

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ss-quick-0.0.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

ss_quick-0.0.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file ss-quick-0.0.2.tar.gz.

File metadata

  • Download URL: ss-quick-0.0.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.4

File hashes

Hashes for ss-quick-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5a98a8237ce1fdcf0bbe986f5062ac236caf668d4ddc5871cb797dcc4de75127
MD5 c664960d18fc04b1bfd4c9c7606f2191
BLAKE2b-256 85f20746749b63c3bed6f0f9f33552a0d1957e6b795e2ea7437355080ac4d63d

See more details on using hashes here.

File details

Details for the file ss_quick-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: ss_quick-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.4

File hashes

Hashes for ss_quick-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a0c6fd6022b43d0bb5fb4ae4004c0a7f6d745a647a9e907f6ada6b02ef00cca7
MD5 52f7521e92373d577ee747a400201c6f
BLAKE2b-256 530a9596e3c01cdc29b85b86b8e017e8a4113f81e4eab86204bbd93a32222310

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page