Skip to main content

A simple translator for any SubRip(.srt) files.

Project description

srt_trans

A tool which can translate any SubRip file from any source language to any target language, and merger them into the original SubRip(.srt) file. It can also extract subtitles from any mkv files, and translate the subtitles into any language you want.

How to usage:

Usage: srt_trans test_file.srt [-src_lang en -dest_lang zh-CN -proxy http://youdomain:your_port]
Example:
    srt_trans ./test_video.mkv
    srt_trans ./test_video.mkv -src_lang en -dest_lang zh-TW
    srt_trans ./test_video.mkv -src_lang en -dest_lang zh-CN -proxy http://127.0.0.1:8118
    srt_trans ./test_video.mkv -track_number 2
    srt_trans ./test_video.mkv -src_lang en -dest_lang zh-TW -track_number 2
    srt_trans ./test_video.mkv -src_lang en -dest_lang zh-CN -proxy http://127.0.0.1:8118 -track_number 2
    srt_trans test_file.srt
    srt_trans test_file.srt -src_lang en -dest_lang zh-TW
    srt_trans test_file.srt -src_lang en -dest_lang ja
    srt_trans test_file.srt -src_lang en -dest_lang zh-CN
    srt_trans test_file.srt -src_lang en -dest_lang fr -proxy http://127.0.0.1:8118

How to package

pip install wheel
python setup.py sdist bdist_wheel

How to publish to pypi

pip install twine
twine upload dist/*

Installation

srt_trans is available on pypi. To intall it you can:

sudo pip install srt_trans

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

srt_trans-1.0.11.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

srt_trans-1.0.11-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file srt_trans-1.0.11.tar.gz.

File metadata

  • Download URL: srt_trans-1.0.11.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for srt_trans-1.0.11.tar.gz
Algorithm Hash digest
SHA256 f61d90e2ec92cbcf256624c031fa5c6a184f319f959325d5bf91bf60e223ca42
MD5 29216fcc62531237c3d067ced099afbf
BLAKE2b-256 2ada6bf9f7a7e7a30331c2396c6d9e23f8f26b842581c06032c8994da7008686

See more details on using hashes here.

File details

Details for the file srt_trans-1.0.11-py3-none-any.whl.

File metadata

  • Download URL: srt_trans-1.0.11-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for srt_trans-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 0085a21e48f17b78f98ed0e3df8b0f971f1d715a0930427a9ddcc6d42f5ff628
MD5 48d5f0a64481b2d22b5a90cbea7ca458
BLAKE2b-256 80d80673d563fadc6e108b965f9f8dd0fee9ab7b01cf79335d9eb62f191c8aa9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page