Skip to main content

Validates IMSC documents against the IMSC HRM

Project description

IMSC Hypothetical Render Model (HRM) Validator

 __  _  _  ____   ___  _  _  ____  _  _ 
(  )( \/ )/ ___) / __)/ )( \(  _ \( \/ )
 )( / \/ \\___ \( (__ ) __ ( )   // \/ \
(__)\_)(_/(____/ \___)\_)(_/(__\_)\_)(_/

Introduction

imschrm validates IMSC documents against the IMSC Hypothetical Render Model (HRM), which constrains document complexity.

imschrm consists of a library and command line application written in pure Python, and uses ttconv.

Known issues

Issues are tracked at https://github.com/sandflow/imscHRM/issues.

Quick start

    pip install imschrm
    imschrm <input IMSC document>

Command line

cli.py [-h] [--itype {ttml,manifest}] input
  • input: input file
  • --itype: specifies whether the input file is a single IMSC document (ttml) (default) or a manifest (manifest) containing a list of IMSC documents.

The manifest is a JSON file that conforms to the schema at src/main/resources/json/manifest.json.schema.

EXAMPLE:

[
  {
    "begin": "12/24",
    "end": 1,
    "path": "doc001.ttml"
  },
  {
    "begin": 1,
    "end": null,
    "path": "doc002.ttml"
  }
]

Dependencies

General

The project uses pipenv to manage dependencies.

Runtime

Development

Development environment

  • run pipenv install --dev
  • set the PYTHONPATH environment variable to src/main/python, e.g. export PYTHONPATH=src/main/python
  • pipenv run can then be used

From the root directory of the project:

pipenv install --dev
mkdir build
export PYTHONPATH=src/main/python
pipenv run python src/main/python/imschrm/cli.py src/test/resources/ttml/fail001.ttml

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

imschrm-1.1.0b2.tar.gz (114.4 kB view details)

Uploaded Source

Built Distribution

imschrm-1.1.0b2-py3-none-any.whl (112.7 kB view details)

Uploaded Python 3

File details

Details for the file imschrm-1.1.0b2.tar.gz.

File metadata

  • Download URL: imschrm-1.1.0b2.tar.gz
  • Upload date:
  • Size: 114.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.26.0 setuptools/67.7.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5

File hashes

Hashes for imschrm-1.1.0b2.tar.gz
Algorithm Hash digest
SHA256 28956128e3388210f92f361e469da1445a0739f1d3c185dfdb089edbb797c26c
MD5 7e27a64075920df7a48009b2b1d7bddb
BLAKE2b-256 cfe2dae1929a36fa70c30df188432b24c9dd4e54cd5ab91aa78214e1b9169ead

See more details on using hashes here.

File details

Details for the file imschrm-1.1.0b2-py3-none-any.whl.

File metadata

  • Download URL: imschrm-1.1.0b2-py3-none-any.whl
  • Upload date:
  • Size: 112.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.26.0 setuptools/67.7.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5

File hashes

Hashes for imschrm-1.1.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 c3ca3d99369e21fd0cb0a1e1625aa1a85d4ad59e01336e32c58e2a34565cfb38
MD5 a8fa99542bfb403d150ed645e1399652
BLAKE2b-256 630415ff8395944b00f481f7ebc4b43825187ddb29c4c59c23e8afaf990699d1

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