sub2cfg
从远程订阅和本地目录聚合代理节点,去重、校验、测速,生成带国家分组的 客户端配置,并可按需投递到本地目录或通过命令上传。
安装
uv tool install sub2cfg
# 或
pip install sub2cfg
运行时需要本机存在代理核心可执行文件,用于配置校验与连通性测试。
使用
# 默认:远程源 + ./inventory/,测速后写 outputs/config.json
sub2cfg
# 跳过可用性测试
sub2cfg --no-check
# 只读本地目录(离线)
sub2cfg --no-urls --source-dir ./inventory
# 投递产物(默认不投递)
sub2cfg --publish local:/srv/subscribe/
sub2cfg --publish 'exec:rclone copyto {file} r2:cdn/eu.json && rclone link r2:cdn/eu.json'
相对路径 outputs/、logs/、inventory/ 以当前工作目录为基准。
exec: 占位符:{file} {name} {timestamp} {sha256} {nodes},
stdout 最后一行作为公开 URL。
说明
- 默认模板随包安装,可用
--template指定自己的模板 --publish可重复,失败默认退出码非 0,--publish-best-effort可忽略- 发布产物与日志包含节点凭据,注意存放位置
Metadata
Release files for sub2cfg 0.1.2
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 |
|---|---|---|---|---|
| sub2cfg-0.1.2.tar.gz | 14.5 kB | Without provenance | Details for sub2cfg-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sub2cfg-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for sub2cfg-0.1.2-py3-none-any.whl |
Total release size: 30.1 kB
Release files / sub2cfg-0.1.2.tar.gz
| Download URL | sub2cfg-0.1.2.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa3e9eb5475ca454c256439ef493c9426c0ab5a933cd651038def92e84101366
|
|
BLAKE2b-256 checksum How to use checksums |
b5a4a9694ec3a0e4ca1275296e1e6f65c563c43dfb06a007f41e406485e303ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / sub2cfg-0.1.2-py3-none-any.whl
| Download URL | sub2cfg-0.1.2-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be638dcc53610e86940e896a5e720217fcf99138329d51925a955e125f697071
|
|
BLAKE2b-256 checksum How to use checksums |
00b12316310a96a7695ad2d9a2c177b5206f02de046e0ec7b8c815098f3e44e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for sub2cfg 0.1.2
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.