Skip to main content

A tiny library for parsing, modifying, and composing SRT files.

Project description

srt is a tiny Python library for parsing, modifying, and composing SRT files. Take a look at the quickstart for a basic overview of the library. Detailed API documentation is also available.

Want to see some examples of its use? Take a look at the srt-tools repo.

Why choose this library?

  • Extremely lightweight, excluding docstrings/comments/etc around 200 SLOC

  • High quality test suite using Hypothesis

  • 100% test coverage (including branches)

  • Well documented API, at both a high and low level

  • Tolerant of many common errors found in real-world SRT files

  • Completely Unicode compliant

  • Real world tested — used in production to process thousands of SRT files every day

Installation

To install the latest stable version from PyPi:

pip install -U srt

To install the latest development version directly from GitHub:

pip install -U git+https://github.com/cdown/srt.git@develop

Testing

Test status Coverage

pip install tox
tox -e quick

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

srt-1.0.0.tar.gz (11.4 kB view details)

Uploaded Source

File details

Details for the file srt-1.0.0.tar.gz.

File metadata

  • Download URL: srt-1.0.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for srt-1.0.0.tar.gz
Algorithm Hash digest
SHA256 38852ddb5444eec46dd7653c242214c804e62026985f3fe769d8e61158645cbe
MD5 ec81e47fb9b8306defc5e35104b2e199
BLAKE2b-256 2593123bf7b4333dc07ad4d2a0cefe592724aa5d9af5924685de06533d05b9fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page