srttranslate - Subtitle file translator
Automatic translation of .srt subtitle files using the DeepL API.
Installation
Install straight from Pypi:
$ pip3 install --user srttranslate
Usage
Once installed, translations can be made using the srttranslate command:
$ srttranslate --help
usage: srttranslate [-h] [--version] [--keyfile KEYFILE] [--output FILE] SUBFILE
positional arguments:
SUBFILE Subtitle file to translate
options:
-h, --help show this help message and exit
--version, -v Print version and exit
--keyfile KEYFILE, -k KEYFILE
Name of file containing DeepL's API key
--output FILE, -o FILE
Name of output subtitle file
To translate a subtitle file you must have a DeepL API key, which is available at the DeepL site.
You can specify a file containing the key (and nothing else) on the command line:
$ srttranslate --keyfile=mykey.txt --output=Rififi.en.srt Rififi.fr.srt
The API Key can also be provided via the environment variable DEEPL_API_KEY:
$ DEEPL_API_KEY=5e3x..... srttranslate -o Rififi.en.srt Rififi.fr.srt
License
This software is licensed under the terms of the MIT license. See the file LICENSE.
Metadata
Release files for srttranslate 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| srttranslate-1.0.0.tar.gz | 6.2 kB | Without provenance | Details for srttranslate-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| srttranslate-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for srttranslate-1.0.0-py3-none-any.whl |
Total release size: 13.5 kB
Release files / srttranslate-1.0.0.tar.gz
| Download URL | srttranslate-1.0.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fd3c17b71ed572868b2a24849129947ce60616a9e78665f82ec56fff527b9aa
|
|
BLAKE2b-256 checksum How to use checksums |
141ab48ebb4c3a45a7d03f67b1dc11b460aa019fdd4cdafc331a547767c7f50b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / srttranslate-1.0.0-py3-none-any.whl
| Download URL | srttranslate-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e429612d9c2db5a914267044621f33d804a4b368b3871af351977e6ecc8f7d9
|
|
BLAKE2b-256 checksum How to use checksums |
5b81212cb8f4bcbc79101ef8019d65b5cf588e95eb4bff2627608984357d9ef1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for srttranslate 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.