{"id":18905494,"url":"https://github.com/utility-libraries/undertext-py","last_synced_at":"2026-01-07T11:50:36.125Z","repository":{"id":230881561,"uuid":"780379194","full_name":"utility-libraries/undertext-py","owner":"utility-libraries","description":"library to load, edit and save different formats of subtitles","archived":false,"fork":false,"pushed_at":"2024-09-26T20:11:37.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-28T16:04:46.193Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.org/project/undertext/","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/utility-libraries.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-04-01T10:58:06.000Z","updated_at":"2024-09-26T20:11:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce16cfab-f5a5-46f6-8564-82a5c4f98ca9","html_url":"https://github.com/utility-libraries/undertext-py","commit_stats":null,"previous_names":["utility-libraries/undertext-py"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utility-libraries%2Fundertext-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utility-libraries%2Fundertext-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utility-libraries%2Fundertext-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utility-libraries%2Fundertext-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utility-libraries","download_url":"https://codeload.github.com/utility-libraries/undertext-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248997048,"owners_count":21195799,"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-11-08T09:12:13.096Z","updated_at":"2026-01-07T11:50:36.082Z","avatar_url":"https://github.com/utility-libraries.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# undertext\nlibrary to load, edit and save different formats of subtitles\n\n[![PyPI - Version](https://img.shields.io/pypi/v/undertext)\n](https://pypi.org/project/undertext/)\n\n\u003e [!NOTE]\n\u003e This Project is under development. Come back soon for updates\n\n\u003c!-- TOC --\u003e\n* [undertext](#undertext)\n  * [Installation](#installation)\n  * [File Formats](#file-formats)\n  * [Examples](#examples)\n  * [CLI](#cli)\n\u003c!-- TOC --\u003e\n\n## Installation\n\n```shell\npip3 install undertext\n```\n\n## File Formats\n\n| ext    | name                      | read  | write | Flags |\n|--------|---------------------------|-------|-------|-------|\n| `.ass` | Advanced SubStation Alpha | ❌     | ❌     | TT    |\n| `.sbv` | SubViewer                 | ✅     | ✅     | TT    |\n| `.srt` | SubRip                    | ✅     | ✅     | TT    |\n| `.ssa` | Sub Station Alpha         | ❌     | ❌     | TT    |\n| `.sub` | MicroDVD                  | ✅     | ✅     | TF    |\n| `.vtt` | WebVTT                    | ✅     | ✅     | TT    |\n\n\u003csmall\u003e*Listed formats that are currently unsupported may be added at a later version\u003c/small\u003e\n\nFlag Information:\n```text\nT. = Text Based\nB. = Bitmap Based\n.T = Time-Based\n.F = Frame-Based\n```\n\n## Examples\n\n```python\nimport undertext\n\ncaptions = undertext.load(\"example.en.srt\")\nundertext.dump(captions, \"example.en.vtt\")\n```\n\n```python\nimport undertext\n\ncaptions = [\n    undertext.Caption(start=0, end=10, text=\"Hello\"),\n    undertext.Caption(start=10, end=20, text=\"World\"),\n]\nundertext.dump(captions, \"out.srt\")\n```\n\n## CLI\n\n\u003e [!NOTE]\n\u003e During the installation the `undertext` command should be installed and then available.\n\u003e If this didn't work you can invoke it with `python3 -m undertext` instead.\n\n```shell\n$ cat example.vtt\nWEBVTT\n\n00:00:00.000 --\u003e 00:00:01.000\nhello world 0\n\n00:00:02.000 --\u003e 00:00:03.000\nhello world 2\n\n00:00:04.000 --\u003e 00:00:05.000\nhello world 4\n\n00:00:06.000 --\u003e 00:00:07.000\nhello world 6\n\n00:00:08.000 --\u003e 00:00:09.000\nhello world 8\n$ undertext read example.vtt\n\u003c00:00:00.000 -\u003e 00:00:01.000\u003e 'hello world 0'\n\u003c00:00:02.000 -\u003e 00:00:03.000\u003e 'hello world 2'\n\u003c00:00:04.000 -\u003e 00:00:05.000\u003e 'hello world 4'\n\u003c00:00:06.000 -\u003e 00:00:07.000\u003e 'hello world 6'\n\u003c00:00:08.000 -\u003e 00:00:09.000\u003e 'hello world 8'\n```\n```shell\n$ undertext convert example.vtt output.srt \n$ cat output.srt\n1\n00:00:00,000 --\u003e 00:00:01,000\nhello world 0\n\n2\n00:00:02,000 --\u003e 00:00:03,000\nhello world 2\n\n3\n00:00:04,000 --\u003e 00:00:05,000\nhello world 4\n\n4\n00:00:06,000 --\u003e 00:00:07,000\nhello world 6\n\n5\n00:00:08,000 --\u003e 00:00:09,000\nhello world 8\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futility-libraries%2Fundertext-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futility-libraries%2Fundertext-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futility-libraries%2Fundertext-py/lists"}