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

  • Released into the public domain

  • 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.1.0.tar.gz (10.5 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for srt-1.1.0.tar.gz
Algorithm Hash digest
SHA256 54bb0a2ecafee648bcb3036630db0d3b53526c27d239e4da5ad85c2165dff188
MD5 d73af71c122bc89607ff4cb7c5ef7f7e
BLAKE2b-256 420adc3f9be843702135340cd62c76a93b1b985230f514a5da525fe64a179a65

See more details on using hashes here.

Supported by

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