v2sub
A v2ray subscriber written in python3
Features:
-
multiple subscribes support
-
run system
v2raywhich can be controlled bysystemctlcommand -
node delay test is support
Installation
The easiest way to get v2sub is to use pip:
pip install v2sub
To install latest development version once:
pip install git+https://github.com/airborne007/v2sub.git@master
Usage
NOTE: Before using, I will assume that you have installed v2ray and v2sub
If you have only one subscribe source, usage is really simple. Just do as following steps:
-
add a subscribe source
v2sub add [url]
-
update subscribe
v2sub update -
run and enjoin it(root or sudo is needed)
v2sub runAll nodes will be list after update, you should choose one node to run.
More Details
-
help message
# v2sub --help Usage: v2sub [OPTIONS] COMMAND [ARGS]... A v2ray subscriber written in python3 Options: --help Show this message and exit. Commands: add add a subscribe. list list subscribe nodes. ping test node delay by ping. remove remove subscribe. run start v2ray with an specify node. update update subscribe nodes. version show version
-
add or update subscribe
# v2sub add --help Usage: v2sub add [OPTIONS] URL add a subscribe. URL: url of the subscribe Options: --name TEXT name of the subscribe, if not provided, a default name will be given. --help Show this message and exit.
-
update subscribe nodes
# v2sub update --help Usage: v2sub update [OPTIONS] update subscribe nodes. Options: --name TEXT the name of the subscribe you want to update, if not provided, default subscribe will be updated. --all-subs, --all whether to update all subscribe, default is False. --help Show this message and exit.
-
list subscribe nodes
# v2sub list --help Usage: v2sub list [OPTIONS] list subscribe nodes. Options: --name TEXT the name of the subscribe you want list, if not provided, default subscribe will be listed. --all-subs, --all whether list all subscribe, default is False. --help Show this message and exit.
-
remove subscribe and it's nodes
# v2sub remove --help Usage: v2sub remove [OPTIONS] remove subscribe and it\'s nodes. Options: --name TEXT name of subscribe will be removed, if not provided, default subscribe will be removed. --all-subs, --all whether remove all subscribe, default is False. --help Show this message and exit.
-
run or switch node
# v2sub run --help Usage: v2sub run [OPTIONS] start v2ray with a selected node. Options: --name TEXT the name of the subscribe you want run with. if not provided, the default subscribe will be run. --port INTEGER the local port v2ray client listen on, default is 1080 --help Show this message and exit.
-
test node delay
Usage: v2sub ping [OPTIONS] Options: --name TEXT the name of the subscribe you want ping with. if not provided, default subscribe will be pinged. --index INTEGER the node of subscribe you want to ping with. if not provided, will test all node delay. --help Show this message and exit.
TODO
support more features.
More
This program can run on all Linux platforms in theory, but I only tested it on
Arch Linux and Ubuntu 20.04. If you have any problems with other linux distributions, issue or
pull request is welcome.
Metadata
Release files for v2sub 1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| v2sub-1.3.tar.gz | 9.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| v2sub-1.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 18.1 kB
Release files / v2sub-1.3.tar.gz
| Download URL | v2sub-1.3.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3fc6dc0203178653de08f5b7c0a1c78e2804fa7c3c01c893cef3f2ad234873a9
|
|
BLAKE2b-256 checksum How to use checksums |
1b82d967ad13d29d1f42960171a142d30b4f48855749c0be2e296c86769fb3ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / v2sub-1.3-py2.py3-none-any.whl
| Download URL | v2sub-1.3-py2.py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0d30e8863c394cb036820a7993136a443318114371870a95d869eca6a92101c1
|
|
BLAKE2b-256 checksum How to use checksums |
74042c5c763486ef28dce4171877136dac073725085a8d19be4394f36b2feecc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|