v2sub
A v2ray subscriber written by python3
Features:
-
multiple subscribes support
-
run system
v2raywhich can be controlled bysystemctlcommand -
node delay test is support
Installation
pip install v2sub
or
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(root or sudo is needed):
-
add a subscribe source
v2sub add [url]
-
update subscribe
v2sub update -
run and enjoin it
v2sub run [index]
All nodes will be list after update, the
indexis the order of node.
More Details
-
help message
# v2sub --help Usage: v2sub [OPTIONS] COMMAND [ARGS]... A v2ray subscriber written by 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] INDEX start v2ray with an specify node. INDEX: the index node id list before. 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. If you have any problems with other linux distributions, issue or
pull request is welcome.
Metadata
Release files for v2sub 0.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 | Provenance | Actions |
|---|---|---|---|---|
| v2sub-0.3.tar.gz | 6.7 kB | Without provenance | Details for v2sub-0.3.tar.gz |
Release files / v2sub-0.3.tar.gz
| Download URL | v2sub-0.3.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec3f2b774ce7c3cfcc01006ea4ef88eaa0f69c3a12c9816ae6f7be58597fa6f1
|
|
BLAKE2b-256 checksum How to use checksums |
73b3ef7819bec040267d8f91d54ac67fa9561fcc3eca8bee5e9ef5caacaac921
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Security for v2sub 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.