{"id":15725110,"url":"https://github.com/eggplants/subt","last_synced_at":"2025-07-28T22:32:16.905Z","repository":{"id":250500491,"uuid":"834635466","full_name":"eggplants/subt","owner":"eggplants","description":"Translate a subtitle file","archived":false,"fork":false,"pushed_at":"2024-11-09T17:17:20.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-27T05:32:53.569Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eggplants.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-27T22:03:44.000Z","updated_at":"2024-11-09T17:17:22.000Z","dependencies_parsed_at":"2024-10-24T19:06:34.595Z","dependency_job_id":"279c9ec1-e5bd-45ec-88b8-20c76401a0e8","html_url":"https://github.com/eggplants/subt","commit_stats":null,"previous_names":["eggplants/subt"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggplants%2Fsubt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggplants%2Fsubt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggplants%2Fsubt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggplants%2Fsubt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eggplants","download_url":"https://codeload.github.com/eggplants/subt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227961821,"owners_count":17847838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T22:19:35.841Z","updated_at":"2025-07-28T22:32:16.899Z","avatar_url":"https://github.com/eggplants.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# subt\n\n[![PyPI version](\n  \u003chttps://badge.fury.io/py/subt.svg\u003e\n  )](\n  \u003chttps://badge.fury.io/py/subt\u003e\n) [![Maintainability](\n  \u003chttps://qlty.sh/badges/52679a0a-ac9e-4667-9d20-b214d89b6687/maintainability.svg\u003e\n  )](\n  \u003chttps://qlty.sh/gh/eggplants/projects/subt\u003e\n) [![pre-commit.ci status](\n  \u003chttps://results.pre-commit.ci/badge/github/eggplants/subt/master.svg\u003e\n  )](\n  \u003chttps://results.pre-commit.ci/latest/github/eggplants/subt/master\u003e\n)\n\n[![Code Coverage](\n  \u003chttps://qlty.sh/badges/52679a0a-ac9e-4667-9d20-b214d89b6687/test_coverage.svg\u003e\n  )](\n  \u003chttps://qlty.sh/gh/eggplants/projects/subt\u003e\n) [![Test](\n  \u003chttps://github.com/eggplants/subt/actions/workflows/test.yml/badge.svg\u003e\n  )](\n  \u003chttps://github.com/eggplants/subt/actions/workflows/test.yml\u003e\n)\n\n[![ghcr latest](\n  \u003chttps://ghcr-badge.egpl.dev/eggplants/subt/latest_tag?trim=major\u0026label=latest\u003e\n ) ![ghcr size](\n  \u003chttps://ghcr-badge.egpl.dev/eggplants/subt/size\u003e\n)](\n  \u003chttps://github.com/eggplants/subt/pkgs/container/subt\u003e\n)\n\nTranslate a subtitle file\n\n## Install\n\n```sh\npip install subt\n# or\npipx install subt\n```\n\n## Run\n\n\u003c!-- markdownlint-disable MD033 --\u003e\n\u003cdetails\u003e\n\n\u003csummary\u003e (Optional) Generate an example \u003ccode\u003e.srt\u003c/code\u003e file from \u003ca href=\"https://www.youtube.com/watch?v=jNQXAC9IVRw\"\u003eMe at the zoo\u003c/a\u003e \u003c/summary\u003e\n\n```shellsession\n$ yt-dlp 'https://www.youtube.com/watch?v=jNQXAC9IVRw'\n$ whisper-ctranslate2 'Me at the zoo [jNQXAC9IVRw].mp4'\n$ cat 'Me at the zoo [jNQXAC9IVRw].srt'\n1\n00:00:00,000 --\u003e 00:00:05,000\nAlright, so here we are, one of the elephants.\n\n2\n00:00:05,000 --\u003e 00:00:13,000\nThe cool thing about these guys is that they have really, really, really long trunks.\n\n3\n00:00:13,000 --\u003e 00:00:16,000\nAnd that's cool.\n\n4\n00:00:16,000 --\u003e 00:00:19,000\nAnd that's pretty much all there is to say.\n```\n\n\u003c/details\u003e\n\u003c!-- markdownlint-enable MD033 --\u003e\n\nThen:\n\n```shellsession\n$ subt 'Me at the zoo [jNQXAC9IVRw].srt' -d ja\nSaved: './Me at the zoo [jNQXAC9IVRw].translated.srt'\n$ cat 'Me at the zoo [jNQXAC9IVRw].translated.srt'\n1\n00:00:00,000 --\u003e 00:00:05,000\nさて、ここに私たちは象の一人です。\n\n2\n00:00:05,000 --\u003e 00:00:13,000\nこれらの人のクールなことは、彼らが本当に、本当に、本当に長い幹を持っているということです。\n\n3\n00:00:13,000 --\u003e 00:00:16,000\nそして、それはクールです。\n\n4\n00:00:16,000 --\u003e 00:00:19,000\nそして、それはほとんどすべてです。\n```\n\n## Help\n\n```shellsession\n$ subt -h\nusage: subt [-h] [-S SERVICE] [-s LANG] [-d LANG] [-V] sub_file\n\nTranslate a subtitle file\n\npositional arguments:\n  sub_file\n\noptions:\n  -h, --help     show this help message and exit\n  -S SERVICE     service to translate (default: google)\n  -s LANG        source language (default: auto)\n  -d LANG        destination language (default: en)\n  -V, --version  show program's version number and exit\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggplants%2Fsubt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feggplants%2Fsubt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggplants%2Fsubt/lists"}