Metadata-Version: 2.1
Name: vtt-to-srt3
Version: 0.1.9.1
Summary: vtt to srt subtitles converter package
Home-page: https://github.com/jsonzilla/vtt-to-srt.py
Author: Jeison Cardoso
Author-email: j@jsonzilla.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

# vtt_to_srt.py
Convert vtt files to srt subtitle format

## Note
For Python 3.7 [you can get version for Python 2.7 here](https://github.com/jansenicus/vtt-to-srt.py)

## Installation
```shell
pip install vtt_to_srt3
```

```cmd
python -m pip install vtt_to_srt3
```

## Usage from terminal

```shell
python -m vtt_to_srt pathname [-r]

pathname - a file or directory with files to be converted 

-r       - walk path recursively                          
```

## Usage as a lib

Convert vtt file
```shell
from vtt_to_srt.vtt_to_srt import vtt_to_srt
path = '/path/to/file.vtt'
vtt_to_srt(path)
```		
		
Recursively convert all vtt files in directory
```shell
from vtt_to_srt.vtt_to_srt import vtt_to_srt
path = '/path/to/directory'
vtt_to_srt(path, rec = True)
```


