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.1.tar.gz (53.1 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.1-py3-none-any.whl (45.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: subbake-0.3.1.tar.gz
  • Upload date:
  • Size: 53.1 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.1.tar.gz
Algorithm Hash digest
SHA256 2726e5a528349115ffc1759522397fb692ad2c62a54cb442f90d5c7a5c59e673
MD5 520a7b6511601aead5641917323424a2
BLAKE2b-256 19c2767fee73d544be0ad06031dfb1a9c3879863fa6b8bf3c9e58c43f9d7f422

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: subbake-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95a7bda58537d28917027249210a27a317bee3cf61c9820a65f5f8ca22cf296f
MD5 5d3c748e2af09854d3f1143b6a7b58ee
BLAKE2b-256 02bb0530c9d3647d49a3a13bb14e34d14c263b302e19d1bfb6d18ccc0f3994ef

See more details on using hashes here.

Provenance

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