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 等常用目标语言,并提供智能批次切分、上下文记忆、缓存、断点续跑、高风险批次复审和默认开启的运行时 agent 自修复。

安装

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.2.tar.gz (58.9 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.2-py3-none-any.whl (49.5 kB view details)

Uploaded Python 3

File details

Details for the file subbake-0.3.2.tar.gz.

File metadata

  • Download URL: subbake-0.3.2.tar.gz
  • Upload date:
  • Size: 58.9 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.2.tar.gz
Algorithm Hash digest
SHA256 001911e28e4474d0fc8ab7e52015b6602c1c6ec275e971de094e1fcaaf3353d4
MD5 c344939b16259a7a07947d900786ff10
BLAKE2b-256 d1852ff670fbd0323eb99c8d696bedccbfbc1f7af33a728d578e94b1e221a9af

See more details on using hashes here.

Provenance

The following attestation bundles were made for subbake-0.3.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: subbake-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 49.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 49de8e0cdc64e89a25de259fb04ecae8902e60be48a8e692982ac72cd862f30d
MD5 b17a9dc9530205818f282e04dea74155
BLAKE2b-256 780433f368b943310c062d9c1a5b55d5d7c1bffe62a6a7bebc1835a377eed910

See more details on using hashes here.

Provenance

The following attestation bundles were made for subbake-0.3.2-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