Skip to main content

Access to subtitles from various file formats

This library is not fundamentally different from established ones, but offers some helpful abstractions that those others don't. First and foremost, subtitles loaded from a file are represented as a linked list. This makes it possible to implement search patterns and sanitization strategies that take the preceding or following subtitle into account, for example to recognize a running sentence.

>>> import subsy
>>> subtitles = subsy.load('subtitles.srt')
>>> first = subtitles[0]
>>> first.text
'How are you?'
>>> second = first.next
>>> second.text
'great, thanks.'
>>> second.text = 'Great, thanks.'
>>> subtitles.save()

Subtitles can be loaded from and saved to these file formats:

  • Subrip (.srt)
  • Advanced Substation Alpha (.ass)
  • Substation Alpha (.ssa)
  • WebVTT (.vtt)
  • SubViewer (.sub)

The text encoding of input files is detected automatically.

Metadata

Release files for subsy 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for subsy 1.0.0
File Interpreter ABI Platform
subsy-1.0.0-py3-none-any.whl Python 3 none any Details

Release files / subsy-1.0.0-py3-none-any.whl

Download URL subsy-1.0.0-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9b6b22573b16ee5b0defd908bdc2c18958a6a3a529a95304961ae5c3157eb2e
BLAKE2b-256 checksum
How to use checksums
e21f0e70fa98086b2226024b928882526890f30dd8826706a751b8a5eb31d839
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.26.0

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.9.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page