{"id":13988961,"url":"https://github.com/GitBib/pyasstosrt","last_synced_at":"2025-07-22T10:30:42.817Z","repository":{"id":56316145,"uuid":"255156044","full_name":"GitBib/pyasstosrt","owner":"GitBib","description":"Convert ASS subtitle to SRT format","archived":false,"fork":false,"pushed_at":"2025-03-23T00:02:22.000Z","size":5820,"stargazers_count":23,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-08T23:17:46.138Z","etag":null,"topics":["ass","ass-to-srt","cli","convert","python","srt","srt-subtitles"],"latest_commit_sha":null,"homepage":"https://gitbib.github.io/pyasstosrt/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GitBib.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":"2020-04-12T19:34:49.000Z","updated_at":"2025-03-23T00:02:09.000Z","dependencies_parsed_at":"2024-11-29T10:17:40.296Z","dependency_job_id":null,"html_url":"https://github.com/GitBib/pyasstosrt","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/GitBib/pyasstosrt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitBib%2Fpyasstosrt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitBib%2Fpyasstosrt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitBib%2Fpyasstosrt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitBib%2Fpyasstosrt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GitBib","download_url":"https://codeload.github.com/GitBib/pyasstosrt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitBib%2Fpyasstosrt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266474868,"owners_count":23934822,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ass","ass-to-srt","cli","convert","python","srt","srt-subtitles"],"created_at":"2024-08-09T13:01:27.304Z","updated_at":"2025-07-22T10:30:42.496Z","avatar_url":"https://github.com/GitBib.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"pyasstosrt\n=================================================================================================================================================================================\n\n[![Downloads](https://pepy.tech/badge/pyasstosrt)](https://pepy.tech/project/pyasstosrt) [![codecov](https://codecov.io/gh/GitBib/pyasstosrt/branch/master/graph/badge.svg?token=VGTJ3NYHOV)](https://codecov.io/gh/GitBib/pyasstosrt)\n\n**pyasstosrt** – this tool will help you convert Advanced SubStation Alpha (ASS/SSA) subtitle files to SubRip (SRT) files.\n\nSupport for str path:\n```python\nfrom pyasstosrt import Subtitle\n\nsub = Subtitle('sub.ass')\nsub.export()\n```\n\nSupport for all Path-like objects, instead of only pathlib's Path:\n\n```python\nfrom pathlib import Path\n\nfrom pyasstosrt import Subtitle\n\npath = Path('sub.ass')\nsub = Subtitle(path)\nsub.export()\n```\n\nYou can get a sheet with dialogue by specifying output_dialogues.\n\n```python\nfrom pathlib import Path\n\nfrom pyasstosrt import Subtitle\n\npath = Path('sub.ass')\nsub = Subtitle(path)\nsub.export(output_dialogues=True)\n```\n\nIf you want to remove effects from text, you can use the removing_effects.\n\n```python\nfrom pyasstosrt import Subtitle\n\nsub = Subtitle('sub.ass', removing_effects=True)\nsub.export()\n```\n\nYou can enable the deletion of duplicate lines with the rearrangement of start and end times.\n\n```python\nfrom pyasstosrt import Subtitle\n\nsub = Subtitle('sub.ass', remove_duplicates=True)\nsub.export()\n```\nCLI\n------------\n```bash\npyasstosrt export /Users/user/sub/sub.ass\n```\n\n**Optional** You can specify an export folder.\n```bash\npyasstosrt export /Users/user/sub/sub.ass --output-dir /Users/user/sub/srt\n```\n\n**Optional** If you want to remove effects from text, you can use the --remove-effects flag.\n```bash\npyasstosrt export /Users/user/sub/sub.ass --remove-effects --output-dir /Users/user/sub/srt\n```\n\n**Optional**  If you need to remove duplicates, you can use the --remove-duplicates flag.\n```bash\npyasstosrt export /Users/user/sub/sub.ass --remove-duplicates\n```\n\n**Optional**  You can use the flags together --remove-duplicates --remove-effects\n```bash\npyasstosrt export /Users/user/sub/sub.ass --remove-duplicates --remove-effects\n```\nInstallation\n------------\nMost users will want to simply install the latest version, hosted on PyPI:\n\n    $ pip install 'pyasstosrt[cli]'\n\nIf you just want to use it as a library and don't need the CLI, you can omit the `[cli]` extra.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGitBib%2Fpyasstosrt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGitBib%2Fpyasstosrt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGitBib%2Fpyasstosrt/lists"}