|
|
2 недель назад | |
|---|---|---|
| .idea | 6 месяцев назад | |
| .gitignore | 6 месяцев назад | |
| LICENSE | 6 месяцев назад | |
| README.md | 6 месяцев назад | |
| docker-compose.yml | 2 недель назад | |
| requirements.txt | 6 месяцев назад | |
| singbox.json | 6 месяцев назад | |
| sub2clash_singbox.py | 6 месяцев назад |
This Python project converts a v2rayNG-style subscription link (vmess/vless/ss/trojan/socks) directly to two config formats:
config.yaml style)signbox.json style)Both outputs retain advanced template features (DNS, rules, anti-DNS-hijack, groups) as provided in your base configs.
Setup and usage is simple:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python sub2clash_singbox.py <subs_url> config.yaml singbox.json result_clash.yaml result_singbox.json
Where:
subs_url is the HTTP/HTTPS v2ray subscription (
e.g. https://raw.githubusercontent.com/sakha1370/OpenRay/refs/heads/main/output_iran/iran_top100_checked.txt)config.yaml is your base Clash Meta templatesingbox.json is your base Singbox templateMIT