Skip to main content

Subclean

Simple CLI to instantly enhance your movie & TV show subtitles.

Installation

pip install subclean

Example

$ subclean subtitle.srt
12:35:30.337 | INFO | Importing subtitle subtitle.srt
12:35:30.344 | INFO | BlacklistProcessor running
12:35:30.397 | INFO | SDHProcessor running
12:35:30.421 | INFO | DialogProcessor running
12:35:30.426 | INFO | ErrorProcessor running
12:35:30.458 | INFO | LineLengthProcessor running
12:35:30.466 | INFO | Saving subtitle subtitle_clean.srt

before-after

Usage

subclean [-h] [-v] [-V] [-o OUTPUT | --overwrite]
                   [--processors {LineLength,SDH,Blacklist,Error,Style,Dialog}
                   [--regex REGEX] [--line-length LINE_LENGTH]
                   FILE [FILE ...]

positional arguments:
  FILE                  Subtitle file to be processed

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Increase output verbosity
  -V, --version         show program's version number and
                        exit
  -o OUTPUT, --output OUTPUT
                        Set output filename
  --overwrite           Overwrite input file
  --processors {LineLength,SDH,Blacklist,Error,Style,Dialog}
                        Processors to run
                        (default: Blacklist SDH Dialog Error LineLength Style)
  --regex REGEX         Add custom regular expression to BlacklistProcessor
  --line-length LINE_LENGTH
                        Maximum total line length when concatenating short lines.
                        (default: 50)

Metadata

Release files for subclean 0.5.0

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

Source distribution (sdist)

Source distribution for subclean 0.5.0
File Size Uploaded
subclean-0.5.0.tar.gz 20.7 kB Details

Built distribution (wheel)

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

Total release size: 55.7 kB

Release files / subclean-0.5.0.tar.gz

Download URL subclean-0.5.0.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fc61f1ea21de47aa8dc76b786dd14a9b5f17e88331c4ff58fa89d46371a388c9
BLAKE2b-256 checksum
How to use checksums
2196eedc61e7f802210cd13e787f80d48d6575f083251dcd79221c00587e2f5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.1 Linux/5.11.0-1025-azure

Release files / subclean-0.5.0-py3-none-any.whl

Download URL subclean-0.5.0-py3-none-any.whl
Size 35.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3c81935b22c25f7106ea80d6a7c8e407776daa926f34ddd3fc621e41a2b5a09
BLAKE2b-256 checksum
How to use checksums
d2de0ce19f0f6cc1995daf39589efc22ddd8a4f33a7054d1f64f7b1142435f48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.1 Linux/5.11.0-1025-azure

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

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