Skip to main content

Convert TTML to JSON

Project description

ttml-to-json

PyPI Changelog Tests License

Convert TTML to JSON

Installation

Install this tool using pip:

pip install ttml-to-json

Usage

To output JSON for a TTML file:

ttml-to-json subtitles.ttml

This will output to standard output. Use -o filename to send it to a specified file.

You can also use:

python -m ttml_to_json ...

Development

To contribute to this tool, first checkout the code. Then create a new virtual environment:

cd ttml-to-json
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ttml-to-json-0.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

ttml_to_json-0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file ttml-to-json-0.1.tar.gz.

File metadata

  • Download URL: ttml-to-json-0.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for ttml-to-json-0.1.tar.gz
Algorithm Hash digest
SHA256 d01c59273ce90b384aae6f32d110ce8f1f736ab1d2438ff88af8799c94cc7af8
MD5 0c405b9e805461c9bdef7da9bb2c39eb
BLAKE2b-256 746f9c9e00a4477cc4975f70b683a44c9a9ff8a42902e980b0e8e352842cd783

See more details on using hashes here.

File details

Details for the file ttml_to_json-0.1-py3-none-any.whl.

File metadata

  • Download URL: ttml_to_json-0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for ttml_to_json-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0ca99c2b9f2a32c8d0e3041510a7466d2d264ab2b11f83f78a175b859efd05a0
MD5 4eced3309e3b4abc00ea1d9bf0d19dbb
BLAKE2b-256 372f59992d7f1e61a7f148fc477d553f0ae39c30d4bfd64a56708019e57ee0bd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page