subscription-2vless
A utility for downloading VPN subscriptions and extracting supported VPN configurations as links
CLI Usage
uvx subscription-2vless
The program will ask for the subscription URL:
Subscription URL: https://example.com/subscription
Fetching subscription...
Found 3 VPN URL(s):
1. vless://...
2. vmess://...
3. trojan://...
Save all URLs to a file? [y/N]:
To save the discovered links, enter y or yes
Next, specify the output filename:
Output file [links.txt]:
Leave it empty to save the results to links.txt
Passing a subscription URL
You can pass the subscription URL directly as an argument:
uvx subscription-2vless "https://example.com/subscription"
Saving results to a file
Use -o or --output:
uvx subscription-2vless "https://example.com/subscription" -o links.txt
You can also specify an absolute path:
uvx subscription-2vless "https://example.com/subscription" --output /tmp/vpn-links.txt
Disabling file output
To display the discovered links in the console without saving them:
uvx subscription-2vless "https://example.com/subscription" --no-save
Overwriting an existing file
By default, the program asks for confirmation before overwriting an existing file
To allow overwriting automatically, use --force:
uvx subscription-2vless "https://example.com/subscription" -o links.txt --force
Help
Display all available arguments:
uvx subscription-2vless --help
Available arguments
| Argument | Description |
|---|---|
url |
Subscription URL (optional) |
-h, --help |
Display help information |
-o, --output FILE |
Save results to the specified file |
--no-save |
Do not offer to save the results |
--force |
Overwrite an existing file without confirmation |
Using as a Python Library
Retrieve links from a subscription:
from subscription_2vless import get_vpn_links_from_subscription
links = get_vpn_links_from_subscription(
"https://example.com/subscription"
)
for link in links:
print(link)
Determine the type of a link:
from subscription_2vless import parse_type_link
link = parse_type_link("vless://uuid@example.com:443")
print(type(link).__name__) # Vless
from subscription_2vless import (
SubscriptionHeaders,
get_vpn_links_from_subscription,
)
headers = SubscriptionHeaders(
X_DEVICE_OS="Android",
X_VER_OS="14",
HWID=None, # Generate a random UUID
X_DEVICE_MODEL="Windows Desktop",
user_agent="MyApplication/1.0",
)
links = get_vpn_links_from_subscription(
"https://example.com/subscription",
headers=headers,
)
Supported Protocols
| Protocol | URL schemes |
|---|---|
| VLESS | vless:// |
| VMess | vmess:// |
| Shadowsocks | ss:// |
| ShadowsocksR | ssr:// |
| Trojan | trojan:// |
| Hysteria | hysteria:// |
| Hysteria 2 | hysteria2://, hy2:// |
| TUIC | tuic:// |
| WireGuard | wireguard://, wg:// |
| SOCKS | socks://, socks4://, socks5:// |
| HTTP Proxy | http:// |
| HTTPS Proxy | https:// |
License
Metadata
Release files for subscription-2vless 1.1.2
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 |
|---|---|---|---|---|
| subscription_2vless-1.1.2.tar.gz | 9.2 kB | With provenance | Details for subscription_2vless-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| subscription_2vless-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for subscription_2vless-1.1.2-py3-none-any.whl |
Total release size: 18.5 kB
Release files / subscription_2vless-1.1.2.tar.gz
| Download URL | subscription_2vless-1.1.2.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a40182eaa57024e098c852260aa9620bc8575c799c0a1a7a92a708636d41320
|
|
BLAKE2b-256 checksum How to use checksums |
ae3da267b09fdffc84353d852fe7d45db9aee6f061e5aabe8a99fd1aadcc5d08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / subscription_2vless-1.1.2-py3-none-any.whl
| Download URL | subscription_2vless-1.1.2-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba349599b7b0213d491e79cd266932f991756d4c2ac1f655959b86debc189ad5
|
|
BLAKE2b-256 checksum How to use checksums |
a7be369ed3669e184f69d3a3037f52cd9b58a3493866100eb770e8418d52b67d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for subscription-2vless 1.1.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for subscription_2vless-1.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA 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.