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.1.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82cb08387074aa0a222fdc568a9e5c70b44f0cb904df8d33c848989ea9d52726 |
|
MD5 | 67b651c96287ec09616ec431d2e65ccd |
|
BLAKE2b-256 | 9e0c8a3ff6a8a9c18734c400c9f9d359580dbdbb64d0af75c28ed7ce92a3a71a |
Close
Hashes for PySingBoxConverter-0.4.1.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65fedac1407f54579b9fa7e640500874ffac1a8d621ab27c520a57dc103f86b5 |
|
MD5 | cebf59f4f0bdb7499ed58b27f909a15a |
|
BLAKE2b-256 | a53300342fc3985239be768043a98a6846b953c8009a7b77f9e3a307734a2006 |