Skip to main content

LLM-powered subtitle translation CLI with batch memory and review passes.

Project description

subbake

PyPI version Python versions CI License

subbake 是一个字幕翻译 CLI,支持 .srt.vtt 和按行处理的 .txt

它默认把字幕翻译为中文,也支持 enjakofresde 等常用目标语言,并提供智能批次切分、上下文记忆、缓存、断点续跑和高风险批次复审。

安装

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

subbake-0.3.0.tar.gz (53.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

subbake-0.3.0-py3-none-any.whl (45.8 kB view details)

Uploaded Python 3

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

Hashes for subbake-0.3.0.tar.gz
Algorithm Hash digest
SHA256 bdcf536ee6d5c13ffecb67cf63e00b27c4a063d87f0f50327d2cd0c313632b1e
MD5 5e8f931df5b2f65cf7ed643b1323be44
BLAKE2b-256 4518344ea3417326070a3f6c5f08618e6d5a947c801ae54d13ce4aaae7ca0a8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for subbake-0.3.0.tar.gz:

Publisher: release.yml on heyifan142857/SubBake

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for subbake-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4e3c02e5707f43a56185536e94e6c9e4da589b598955bebe023e4d177092e77
MD5 f906bdecfd9615b1debf4a11d70afac4
BLAKE2b-256 6025987c44d1302418763d35bed062dc5304f62f8a4ec1dc81b965085f3666c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for subbake-0.3.0-py3-none-any.whl:

Publisher: release.yml on heyifan142857/SubBake

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page