{"id":13807894,"url":"https://github.com/tkarabela/pysubs2","last_synced_at":"2026-02-23T05:02:25.681Z","repository":{"id":19421109,"uuid":"22663580","full_name":"tkarabela/pysubs2","owner":"tkarabela","description":"A Python library for editing subtitle files","archived":false,"fork":false,"pushed_at":"2025-11-16T18:26:23.000Z","size":2736,"stargazers_count":416,"open_issues_count":19,"forks_count":50,"subscribers_count":11,"default_branch":"master","last_synced_at":"2026-02-16T21:30:20.079Z","etag":null,"topics":["closed-captions","microdvd","mpl2","openai-whisper","python","sami","srt","substation-alpha","subtitles","subtitles-parsing","ttml","webvtt"],"latest_commit_sha":null,"homepage":"http://pysubs2.readthedocs.io","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/tkarabela.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"docs/supported-formats.rst","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-08-06T00:01:40.000Z","updated_at":"2026-02-15T10:27:28.000Z","dependencies_parsed_at":"2024-05-04T18:25:38.730Z","dependency_job_id":"e1e0e1dc-bd0d-4823-878b-c089701dfb35","html_url":"https://github.com/tkarabela/pysubs2","commit_stats":{"total_commits":147,"total_committers":11,"mean_commits":"13.363636363636363","dds":"0.10204081632653061","last_synced_commit":"3752cff4c04301cee7914a550669e27a01f44135"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/tkarabela/pysubs2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkarabela%2Fpysubs2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkarabela%2Fpysubs2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkarabela%2Fpysubs2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkarabela%2Fpysubs2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkarabela","download_url":"https://codeload.github.com/tkarabela/pysubs2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkarabela%2Fpysubs2/sbom","scorecard":{"id":888787,"data":{"date":"2025-08-11","repo":{"name":"github.com/tkarabela/pysubs2","commit":"27000af7bb1a69f05203acd24add2cc0eacabae2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/tkarabela/pysubs2/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/tkarabela/pysubs2/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/tkarabela/pysubs2/main.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:33","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:34","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   3 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2013-9 / GHSA-4gv5-qhvr-36vv","Warn: Project is vulnerable to: PYSEC-2021-437 / GHSA-5xp3-jfq3-5q8x","Warn: Project is vulnerable to: PYSEC-2019-160 / GHSA-c5h8-cq4v-cvfm","Warn: Project is vulnerable to: PYSEC-2013-8 / GHSA-g3p5-fjj9-h8gj","Warn: Project is vulnerable to: PYSEC-2020-173 / GHSA-gpvv-69j7-gwj8","Warn: Project is vulnerable to: PYSEC-2023-228 / GHSA-mq26-g339-26xf"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T10:58:30.612Z","repository_id":19421109,"created_at":"2025-08-24T10:58:30.612Z","updated_at":"2025-08-24T10:58:30.612Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29738083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T04:51:08.365Z","status":"ssl_error","status_checked_at":"2026-02-23T04:49:15.865Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["closed-captions","microdvd","mpl2","openai-whisper","python","sami","srt","substation-alpha","subtitles","subtitles-parsing","ttml","webvtt"],"created_at":"2024-08-04T01:01:31.814Z","updated_at":"2026-02-23T05:02:25.657Z","avatar_url":"https://github.com/tkarabela.png","language":"Python","funding_links":[],"categories":["Miscellaneous","HarmonyOS","Python","Media Tools"],"sub_categories":["Windows Manager","Independent \u0026 Hobbyist Projects"],"readme":"pysubs2\n=======\n\n[![pysubs2 build master branch](https://img.shields.io/github/actions/workflow/status/tkarabela/pysubs2/main.yml?branch=master)](https://github.com/tkarabela/pysubs2/actions)\n[![pysubs2 test code coverage](https://img.shields.io/codecov/c/github/tkarabela/pysubs2)](https://app.codecov.io/github/tkarabela/pysubs2)\n[![Static Badge](https://img.shields.io/badge/MyPy%20%26%20Ruffle-checked-blue?style=flat)](https://github.com/tkarabela/pysubs2/actions)\n[![PyPI - Version](https://img.shields.io/pypi/v/pysubs2.svg?style=flat)](https://pypi.org/project/pysubs2/)\n[![PyPI - Status](https://img.shields.io/pypi/status/pysubs2.svg?style=flat)](https://pypi.org/project/pysubs2/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pysubs2.svg?style=flat)](https://pypi.org/project/pysubs2/)\n[![PyPI - License](https://img.shields.io/pypi/l/pysubs2.svg?style=flat)](LICENSE.txt)\n[![GitHub Repo stars](https://img.shields.io/github/stars/tkarabela/pysubs2?style=flat\u0026label=GitHub%20stars)](https://github.com/tkarabela/pysubs2)\n\n\npysubs2 is a Python library for editing subtitle files.\nIt’s based on *SubStation Alpha*, the native format of\n[Aegisub](http://www.aegisub.org/); it also supports *SubRip (SRT)*,\n*MicroDVD*, *MPL2*, *TMP*, *WebVTT*, *TTML* and *SAMI* formats and *OpenAI Whisper* captions.\n\nThere is a small CLI tool for batch conversion and retiming.\n\n```bash\npip install pysubs2\npysubs2 --shift 0.3s *.srt\npysubs2 --to srt *.ass\n```\n\n```python\nimport pysubs2\nsubs = pysubs2.load(\"my_subtitles.ass\", encoding=\"utf-8\")\nsubs.shift(s=2.5)\nfor line in subs:\n    line.text = \"{\\\\be1}\" + line.text\nsubs.save(\"my_subtitles_edited.ass\")\n```\n\nTo learn more, please [see the documentation](http://pysubs2.readthedocs.io).\nIf you'd like to contribute, see [CONTRIBUTING.md](CONTRIBUTING.md).\n\npysubs2 is licensed under the MIT license (see [LICENSE.txt](LICENSE.txt)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkarabela%2Fpysubs2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkarabela%2Fpysubs2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkarabela%2Fpysubs2/lists"}