srt-trans


Namesrt-trans JSON
Version 1.0.11 PyPI version JSON
download
home_pagehttps://github.com/bumblezhou/srt_trans
SummaryA simple translator for any SubRip(.srt) files.
upload_time2024-10-30 20:15:54
maintainerNone
docs_urlNone
authorJack
requires_pythonNone
licenseMIT
keywords
VCS
bugtrack_url
requirements ffmpeg_python requests urllib3 pysrt setuptools
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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:

```bash
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
```bash
pip install wheel
python setup.py sdist bdist_wheel
```

## How to publish to pypi
```bash
pip install twine
twine upload dist/*
```

## Installation
### srt_trans is available on pypi. To intall it you can:
```bash
sudo pip install srt_trans
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/bumblezhou/srt_trans",
    "name": "srt-trans",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Jack",
    "author_email": "bumble.zhou@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/2a/da/6bf9f7a7e7a30331c2396c6d9e23f8f26b842581c06032c8994da7008686/srt_trans-1.0.11.tar.gz",
    "platform": null,
    "description": "# srt_trans\nA 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.\n\n## How to usage:\n\n```bash\nUsage: srt_trans test_file.srt [-src_lang en -dest_lang zh-CN -proxy http://youdomain:your_port]\nExample:\n    srt_trans ./test_video.mkv\n    srt_trans ./test_video.mkv -src_lang en -dest_lang zh-TW\n    srt_trans ./test_video.mkv -src_lang en -dest_lang zh-CN -proxy http://127.0.0.1:8118\n    srt_trans ./test_video.mkv -track_number 2\n    srt_trans ./test_video.mkv -src_lang en -dest_lang zh-TW -track_number 2\n    srt_trans ./test_video.mkv -src_lang en -dest_lang zh-CN -proxy http://127.0.0.1:8118 -track_number 2\n    srt_trans test_file.srt\n    srt_trans test_file.srt -src_lang en -dest_lang zh-TW\n    srt_trans test_file.srt -src_lang en -dest_lang ja\n    srt_trans test_file.srt -src_lang en -dest_lang zh-CN\n    srt_trans test_file.srt -src_lang en -dest_lang fr -proxy http://127.0.0.1:8118\n```\n\n## How to package\n```bash\npip install wheel\npython setup.py sdist bdist_wheel\n```\n\n## How to publish to pypi\n```bash\npip install twine\ntwine upload dist/*\n```\n\n## Installation\n### srt_trans is available on pypi. To intall it you can:\n```bash\nsudo pip install srt_trans\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple translator for any SubRip(.srt) files.",
    "version": "1.0.11",
    "project_urls": {
        "Homepage": "https://github.com/bumblezhou/srt_trans"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "80d80673d563fadc6e108b965f9f8dd0fee9ab7b01cf79335d9eb62f191c8aa9",
                "md5": "48d5f0a64481b2d22b5a90cbea7ca458",
                "sha256": "0085a21e48f17b78f98ed0e3df8b0f971f1d715a0930427a9ddcc6d42f5ff628"
            },
            "downloads": -1,
            "filename": "srt_trans-1.0.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "48d5f0a64481b2d22b5a90cbea7ca458",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5308,
            "upload_time": "2024-10-30T20:15:51",
            "upload_time_iso_8601": "2024-10-30T20:15:51.811870Z",
            "url": "https://files.pythonhosted.org/packages/80/d8/0673d563fadc6e108b965f9f8dd0fee9ab7b01cf79335d9eb62f191c8aa9/srt_trans-1.0.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2ada6bf9f7a7e7a30331c2396c6d9e23f8f26b842581c06032c8994da7008686",
                "md5": "29216fcc62531237c3d067ced099afbf",
                "sha256": "f61d90e2ec92cbcf256624c031fa5c6a184f319f959325d5bf91bf60e223ca42"
            },
            "downloads": -1,
            "filename": "srt_trans-1.0.11.tar.gz",
            "has_sig": false,
            "md5_digest": "29216fcc62531237c3d067ced099afbf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4724,
            "upload_time": "2024-10-30T20:15:54",
            "upload_time_iso_8601": "2024-10-30T20:15:54.557094Z",
            "url": "https://files.pythonhosted.org/packages/2a/da/6bf9f7a7e7a30331c2396c6d9e23f8f26b842581c06032c8994da7008686/srt_trans-1.0.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-30 20:15:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bumblezhou",
    "github_project": "srt_trans",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "ffmpeg_python",
            "specs": [
                [
                    "==",
                    "0.2.0"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.32.3"
                ]
            ]
        },
        {
            "name": "urllib3",
            "specs": [
                [
                    "==",
                    "2.2.3"
                ]
            ]
        },
        {
            "name": "pysrt",
            "specs": [
                [
                    "==",
                    "1.1.2"
                ]
            ]
        },
        {
            "name": "setuptools",
            "specs": [
                [
                    "==",
                    "65.5.1"
                ]
            ]
        }
    ],
    "lcname": "srt-trans"
}
        
Elapsed time: 0.37726s