Skip to content
Python library for parsing and converting SAMI files.
Branch: master
Clone or download
Pull request Compare This branch is 3 commits ahead of g6123:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
samitizer
tests
.gitignore
LICENSE
MANIFEST
README.md
setup.cfg
setup.py

README.md

Samitizer

Python library for parsing SAMI file. Forked from pysami (thus license is preserved).

Installation

# to use auto charset detection, you should install uchardet
sudo apt-get install uchardet

# virtual environment like `virtualenv` is recommended
virtualenv venv
source venv/bin/activate

# install
pip install samitizer

Usage

from __future__ import print_function
from samitizer import Smi

smi = Smi('sample.smi')
print(smi.subtitles[0].content['KRCC'])
vtt_text = smi.convert('vtt', lang='KRCC')
plain_text = smi.convert('plain', lang='KRCC')

Test

python -m tests.test
You can’t perform that action at this time.