SingBox converter, Python
Project description
SingBox Converter
The code are refactored from Toperlock/sing-box-subscribe See Documentation.
How to install
pip install PySingBoxConverter
Use in commandline
Create a providers.json
from providers-example.json
:
cp providers-example.json providers.json
vi providers.json
Then run
singbox_convert -t 1 -o config1.json
Use in python code systematically
from singbox_converter import SingBoxConverter
converter = SingBoxConverter(
providers_config="/path/to/providers.json",
template="/path/to/template",
fetch_sub_ua="clash.meta",
# fetch_sub_fallback_ua="clash",
# export_config_folder="",
# export_config_name="my_config.json",
# auto_fix_empty_outbound=True,
)
converter.export_config(
# path="/path/to/output/config"
)
Thanks
Credit goes to:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for PySingBoxConverter-0.4.0.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9b2025dee158b3fcd40e055e3246c2e41bfc3ae741c7530f77e651656742ba2 |
|
MD5 | 6c6b57a01b00458a1ff9454fa4b7ccd3 |
|
BLAKE2b-256 | 05a2c87c4c2c438b911c77f8d64516bd8ad6534471a18354324f9f7935d9df3b |
Close
Hashes for PySingBoxConverter-0.4.0.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 681d89aeb6459d7632586a09d1361b68f4961ea92e42187742f12bbdfae1beae |
|
MD5 | 550e152ccfc2b348b7ae7b165e45d1d6 |
|
BLAKE2b-256 | f08af58ae6edd6368a1b96f431d5789b6f1ec6d97f530f9e8504ec07c6167ae4 |