This release is a pre-release and may not be stable for production use.
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,
)
print(converter.singbox_config)
converter.export_config(
path="/path/to/output/config",
# nodes_only=True
)
Thanks
Credit goes to:
Metadata
Release files for PySingBoxConverter 0.5.2.dev0
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 |
|---|---|---|---|---|
| pysingboxconverter-0.5.2.dev0.tar.gz | 30.1 kB | Without provenance | Details for pysingboxconverter-0.5.2.dev0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysingboxconverter-0.5.2.dev0-py3-none-any.whl | Python 3 | none | any | Details for pysingboxconverter-0.5.2.dev0-py3-none-any.whl |
Total release size: 76.8 kB
Release files / pysingboxconverter-0.5.2.dev0.tar.gz
| Download URL | pysingboxconverter-0.5.2.dev0.tar.gz |
|---|---|
| Size | 30.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae94598f74e3f612636375d3642a1eb7935e2d406bc57ebddaff071fdfc5e0c7
|
|
BLAKE2b-256 checksum How to use checksums |
403b4ffe3f9cae67722f673dc730378025e3d6d602483af70a81133000c089e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / pysingboxconverter-0.5.2.dev0-py3-none-any.whl
| Download URL | pysingboxconverter-0.5.2.dev0-py3-none-any.whl |
|---|---|
| Size | 46.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1927cc7b80d215e29b5836e1b0946f87f7b332e77123915cd476f0e2f61ed8a6
|
|
BLAKE2b-256 checksum How to use checksums |
ce09ccffb855c5f107be651fe99a2e7db6c91aa83f44b30ae3370b2b58420bf6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for PySingBoxConverter 0.5.2.dev0
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.