webvtt subtitle parser to traversable data struct
Project description
pywebvtt
to parse WebVTT subtitle file into a traversable data structure
-
to run tests
poetry install && poetry run pytest -
to run example
poetry install && poetry run python examples/parse-sample.py -
sample usage
pip install pywebvttand
import pywebvtt
scenes = pywebvtt.ParseFile('sample.vtt')
for s in scenes:
# every scene has: s.start, s.end, s.start_millisec, s.end_millisec, s.transcript
print(s.string())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywebvtt-0.2.0.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pywebvtt-0.2.0.tar.gz.
File metadata
- Download URL: pywebvtt-0.2.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/6.3.5-200.fc38.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c818a6b4b23c618cc33ff1e2395d7d00ec6ae1e9b11d68d1b7d8806e425c5a17
|
|
| MD5 |
90055b66a75e39836516c07a985c8693
|
|
| BLAKE2b-256 |
fed9ec0a9381cc045092affbe2a544b6b663af7c245469c8c7f8e53b3ef4ef58
|
File details
Details for the file pywebvtt-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pywebvtt-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/6.3.5-200.fc38.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6659116fd36210add10e3c604e5f542a55fe8680667cdb1e52433ca70fe3745f
|
|
| MD5 |
cf495dabca76474249d91435841fe86f
|
|
| BLAKE2b-256 |
defe90115b9abadd87a51cd7f7f43d6a5e95914bba2a7599ae4105c2ee0024d9
|