Metadata-Version: 2.1
Name: translate_subtitle
Version: 0.1.1
Summary: A tool to translate subtitle files using DeepSeek API.
Home-page: https://github.com/zcq100/translate_subtitle
Author: r1a
Author-email: i@r1a.co
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.25.1

# subtitle-translator

## How to Use:

```
usage: translate_subtitle [-h] [-o OUTPUT_FILE] [-l TARGET_LANG] [--apikey APIKEY] [-b BATCH_SIZE]
                          input_file
```

Translate Subtitle to Target Language
```
> translate_subtitle subtitle.srt
> translate_subtitle -l zh-CN subtitle.srt
> translate_subtitle -l zh-CN -o translated.srt subtitle.srt
> translate_subtitle --apikey=<YOUR_APIKEY> subtitle.srt
```

Or you can put APIKEY in environment variable:
```
export DEEPSEEK_API_KEY=<YOUR_APIKEY>    # for linux
# set DEEPSEEK_API_KEY=<YOUR_APIKEY>     # for windows
translate_subtitle -l zh-CN  subtitle.srt
```


## How to Install:
Use `pip install subtitle-translator` Install the package.


