Metadata-Version: 1.0
Name: pysrt
Version: 0.1.6
Summary: SubRip (.srt) subtitle parser and writer
Home-page: http://github.com/byroot/pysrt
Author: Jean Boussier
Author-email: jean.boussier@gmail.com
License: GPLv3
Description: pysrt is a Python library used to edit or create SubRip files.
        
        Usage
        =====
        
        ::
        
        from pysrt import SubRipFile, SubRipItem, SubRipTime
        subs = SubRipFile('some/file.srt')
        subs[42].end.hours += 3
        subs[42].sub_title = "Never end !"
        
        #equivalent
        part = SubRipFile(i for i in subs if i.end > SubRipTime(0, 0, 40))
        part = SubRipFile(i for i in subs if i.end > (0, 0, 40))
        part = SubRipFile(i for i in subs if i.end > {'seconds': 40})
        
        part.shift(seconds=-2)
        subs.save('other/path.srt', 'utf-8')
        
        
Keywords: SubRip srt subtitle
Platform: Independent
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Multimedia :: Video
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Text Processing :: Markup
