LLM-powered subtitle translation CLI with batch memory and review passes.
Project description
subbake
subbake 是一个字幕翻译 CLI,支持 .srt、.vtt 和按行处理的 .txt。
它默认把字幕翻译为中文,也支持 en、ja、ko、fr、es、de 等常用目标语言,并提供智能批次切分、上下文记忆、缓存、断点续跑和高风险批次复审。
安装
pip install subbake
快速开始
sbake translate input.srt --provider openai --model your-model
OpenAI 兼容接口:
export OPENAI_API_KEY="your_api_key"
export OPENAI_BASE_URL="https://your-provider.example.com/v1"
Gemini:
export GEMINI_API_KEY="your_api_key"
sbake translate input.srt --provider gemini --model gemini-2.5-flash
Anthropic:
export ANTHROPIC_API_KEY="your_api_key"
sbake translate input.srt --provider anthropic --model your-model
本地联调:
sbake translate input.srt --provider mock
文档
常用命令
sbake translate --help
sbake check-key --help
sbake clean --help
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file subbake-0.3.0.tar.gz.
File metadata
- Download URL: subbake-0.3.0.tar.gz
- Upload date:
- Size: 53.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdcf536ee6d5c13ffecb67cf63e00b27c4a063d87f0f50327d2cd0c313632b1e
|
|
| MD5 |
5e8f931df5b2f65cf7ed643b1323be44
|
|
| BLAKE2b-256 |
4518344ea3417326070a3f6c5f08618e6d5a947c801ae54d13ce4aaae7ca0a8d
|
Provenance
The following attestation bundles were made for subbake-0.3.0.tar.gz:
Publisher:
release.yml on heyifan142857/SubBake
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
subbake-0.3.0.tar.gz -
Subject digest:
bdcf536ee6d5c13ffecb67cf63e00b27c4a063d87f0f50327d2cd0c313632b1e - Sigstore transparency entry: 1349279562
- Sigstore integration time:
-
Permalink:
heyifan142857/SubBake@fe7ee4774e49b58ba5f9acc2973cffce0481eae0 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/heyifan142857
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fe7ee4774e49b58ba5f9acc2973cffce0481eae0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file subbake-0.3.0-py3-none-any.whl.
File metadata
- Download URL: subbake-0.3.0-py3-none-any.whl
- Upload date:
- Size: 45.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4e3c02e5707f43a56185536e94e6c9e4da589b598955bebe023e4d177092e77
|
|
| MD5 |
f906bdecfd9615b1debf4a11d70afac4
|
|
| BLAKE2b-256 |
6025987c44d1302418763d35bed062dc5304f62f8a4ec1dc81b965085f3666c2
|
Provenance
The following attestation bundles were made for subbake-0.3.0-py3-none-any.whl:
Publisher:
release.yml on heyifan142857/SubBake
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
subbake-0.3.0-py3-none-any.whl -
Subject digest:
b4e3c02e5707f43a56185536e94e6c9e4da589b598955bebe023e4d177092e77 - Sigstore transparency entry: 1349279631
- Sigstore integration time:
-
Permalink:
heyifan142857/SubBake@fe7ee4774e49b58ba5f9acc2973cffce0481eae0 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/heyifan142857
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fe7ee4774e49b58ba5f9acc2973cffce0481eae0 -
Trigger Event:
push
-
Statement type: