Skip to main content

A Python wrapper for the Standard Transcription JSON (STJ) format.

Project description

STJLib

PyPI Build Status Documentation Status

A Python library for the Standard Transcription JSON (STJ) format.

Overview

STJLib provides data classes and utilities for working with STJ files, which are used to represent transcribed audio and video data in a structured, machine-readable JSON format.

For more information about the STJ format, please refer to the STJ Specification.

Documentation

Full documentation is available at stjlib.readthedocs.io. This includes:

  • Detailed API reference
  • Usage examples
  • Advanced usage guides
  • Contributing guidelines

Features

  • Load and save STJ files
  • Validate STJ data according to the specification
  • Access and manipulate metadata and transcript data
  • Flexible error handling and validation reporting

Quick Start

Installation

pip install stjlib

Basic Usage

from stjlib import StandardTranscriptionJSON

# Load and validate an STJ file
stj = StandardTranscriptionJSON.from_file('path/to/file.stj.json', validate=True)

# Access metadata and transcript data
print(stj.metadata)
print(stj.transcript)

# Save modified data back to a file
stj.to_file('path/to/output.stj.json')

For more examples and detailed usage instructions, please refer to our documentation.

Development

Setting Up Development Environment

# Clone the repository
git clone https://github.com/yourusername/stjlib.git
cd stjlib

# Install development dependencies
pip install -e .
pip install -r requirements-dev.txt

Running Tests

pytest

Building Documentation Locally

cd docs
make html

The documentation will be available in docs/build/html.

Contributing

Contributions are welcome! Please follow these steps:

  1. Check for open issues or open a new issue to start a discussion
  2. Fork the repository and create a new branch: git checkout -b feature/your-feature-name
  3. Write your code and tests
  4. Ensure all tests pass: pytest
  5. Submit a Pull Request

For more detailed guidelines, see our Contributing Guide.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

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

stjlib-0.1.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

stjlib-0.1.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file stjlib-0.1.0.tar.gz.

File metadata

  • Download URL: stjlib-0.1.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for stjlib-0.1.0.tar.gz
Algorithm Hash digest
SHA256 27b277b7cf2e4a7d0dd4f8b1794734186d1e6fc1236533e9caf1fe087a8d3a52
MD5 71264c2665c94a3c9db1e01f02136447
BLAKE2b-256 34d233c3376f3442f93fabccdb9299259f7fbd76687f709188d59e8bc2bc969d

See more details on using hashes here.

File details

Details for the file stjlib-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: stjlib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for stjlib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f30b6309d9596d3704b6513b87ae1ac6b7357b519abf3c399c27d74598819531
MD5 1817ad2f6aab6cd0f94cec0818db8b58
BLAKE2b-256 927f3c1f4441d486651aab2005a90e9978b7773cfd7393532dd61f0e3a7684d0

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