subt
Translate a subtitle file
Install
pip install subt
# or
pipx install subt
Run
(Optional) Generate an example .srt file from Me at the zoo
$ yt-dlp 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
$ whisper-ctranslate2 'Me at the zoo [jNQXAC9IVRw].mp4'
$ cat 'Me at the zoo [jNQXAC9IVRw].srt'
1
00:00:00,000 --> 00:00:05,000
Alright, so here we are, one of the elephants.
2
00:00:05,000 --> 00:00:13,000
The cool thing about these guys is that they have really, really, really long trunks.
3
00:00:13,000 --> 00:00:16,000
And that's cool.
4
00:00:16,000 --> 00:00:19,000
And that's pretty much all there is to say.
Then:
$ subt 'Me at the zoo [jNQXAC9IVRw].srt' -d ja
Saved: './Me at the zoo [jNQXAC9IVRw].translated.srt'
$ cat 'Me at the zoo [jNQXAC9IVRw].translated.srt'
1
00:00:00,000 --> 00:00:05,000
さて、ここに私たちは象の一人です。
2
00:00:05,000 --> 00:00:13,000
これらの人のクールなことは、彼らが本当に、本当に、本当に長い幹を持っているということです。
3
00:00:13,000 --> 00:00:16,000
そして、それはクールです。
4
00:00:16,000 --> 00:00:19,000
そして、それはほとんどすべてです。
Help
$ subt -h
usage: subt [-h] [-S SERVICE] [-s LANG] [-d LANG] [-V] sub_file
Translate a subtitle file
positional arguments:
sub_file
options:
-h, --help show this help message and exit
-S SERVICE service to translate (default: google)
-s LANG source language (default: auto)
-d LANG destination language (default: en)
-V, --version show program's version number and exit
License
MIT
Metadata
Release files for subt 0.1.3
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 |
|---|---|---|---|---|
| subt-0.1.3.tar.gz | 5.6 kB | Without provenance | Details for subt-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| subt-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for subt-0.1.3-py3-none-any.whl |
Total release size: 10.3 kB
Release files / subt-0.1.3.tar.gz
| Download URL | subt-0.1.3.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
805bd075c72ae0554cde81057090da1cd529cce5ee32bd9eb88b100c6fe4c606
|
|
BLAKE2b-256 checksum How to use checksums |
9122ec4d79c5ab3668343cf716cd015e878070234d72dac985ed2657c346f418
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / subt-0.1.3-py3-none-any.whl
| Download URL | subt-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ed179a91516f343c5718d742196d4ab6c91f1c9ee60b1dd4cfd866c863e51c9
|
|
BLAKE2b-256 checksum How to use checksums |
3af6c7c559e6189d3592814cc3223d6f2373f2aa67d8e3bc999b13227d46764b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for subt 0.1.3
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.