A Python wrapper for the Standard Transcription JSON (STJ) format.
Project description
STJLib
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
We welcome contributions to stjlib! Please see our Contributing Guide for more details on how to get started.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
- For bugs and feature requests, please open an issue
- For other questions, start a GitHub Discussion
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
Built Distribution
File details
Details for the file stjlib-0.3.1.tar.gz
.
File metadata
- Download URL: stjlib-0.3.1.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb97c1a0c6f07b26afed27d35b51dbb69b962a36420781c894f54189a3e611c3 |
|
MD5 | 1d2f54a63cdc9db90d7a4f97d441d4c8 |
|
BLAKE2b-256 | efc91a9d75428c10d86e6cebe7c3c07469a8a2e8cad9ec1d27f1a54c5136e6e3 |
File details
Details for the file stjlib-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: stjlib-0.3.1-py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f456c07dae5899c026800f250a84c6d548b77693b44d1b538c3316d0dbc4bc02 |
|
MD5 | f41023236ef9330744d9f42174a077b6 |
|
BLAKE2b-256 | 206ef1fb41c77e7480ebd0e818fae1d8d3380d32b151c6a910966e4725f0085d |