https://github.com/msclock/pysubconverter
A wrapper from subconverter
https://github.com/msclock/pysubconverter
Last synced: 4 months ago
JSON representation
A wrapper from subconverter
- Host: GitHub
- URL: https://github.com/msclock/pysubconverter
- Owner: msclock
- License: mit
- Created: 2025-03-06T07:44:18.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2026-01-03T02:47:34.000Z (4 months ago)
- Last Synced: 2026-01-05T15:10:07.495Z (4 months ago)
- Language: CMake
- Homepage: https://msclock.github.io/pysubconverter/
- Size: 806 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pysubconverter
A wrapper from subconverter
[](https://msclock.github.io/pysubconverter)
[](https://github.com/msclock/pysubconverter/blob/master/LICENSE)
[](https://github.com/serious-scaffold/ss-pybind11)
[](https://github.com/msclock/pysubconverter/actions/workflows/ci.yml)
[](https://github.com/msclock/pysubconverter/actions/workflows/cd.yml)
[](https://github.com/msclock/pysubconverter/actions/workflows/renovate.yml)
[](https://github.com/msclock/pysubconverter/actions/workflows/semantic-release.yml)
[](https://codecov.io/gh/msclock/pysubconverter)
[](https://github.com/msclock/pysubconverter/releases)
[](https://pypi.org/project/pysubconverter/)
[](https://pypi.org/project/pysubconverter/)
[](https://github.com/pre-commit/pre-commit)
[](https://github.com/pre-commit/mirrors-clang-format)
[](https://github.com/cheshirekow/cmake-format-precommit)
[](https://github.com/codespell-project/codespell)
[](https://github.com/igorshubovych/markdownlint-cli)
[](https://github.com/shellcheck-py/shellcheck-py)
## Usage
```python
from pysubconverter import config_context, subconverter
with config_context():
fake_sub = [
"ss://YWVzLTI1Ni1nY206VEV6amZBWXEySWp0dW9T@127.0.0.1:0123#fake 1",
"ss://YWVzLTI1Ni1nY206VEV6amZBWXEySWp0dW9T@127.0.0.1:0123#fake 2",
"ss://YWVzLTI1Ni1nY206VEV6amZBWXEySWp0dW9T@127.0.0.1:0123#fake 3",
]
arguments: dict[str, str] = {
"target": "clash",
"url": "|".join(fake_sub),
}
result = subconverter(arguments)
```
## License
MIT License, for more details, see the [LICENSE](https://github.com/msclock/pysubconverter/blob/master/LICENSE) file.