Stjlib

Latest version: v0.5.0

Safety actively analyzes 701507 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.5.0

Changed

- Updated iso639-lang requirement to >=2.5.0
- Improved language code validation to enforce ISO 639-1 when available
- Enhanced error handling for invalid input types in metadata and transcript
- Improved validation of transcript structure and segments
- Better handling of empty speakers list to indicate attempted speaker identification
- More robust validation of dictionary types throughout the codebase

Fixed

- Fixed handling of invalid input types in STJ data structures
- Improved validation messages for language codes
- Better error handling for invalid metadata structures
- Fixed validation of confidence scores
- More precise error messages for invalid data types

0.4.0

Added

- Support for STJ format version 0.6.0
- Comprehensive validation system with severity levels (ERROR, WARNING, INFO)
- Time value precision handling with IEEE 754 round-to-nearest-even
- Zero-duration segment support with `is_zero_duration` field
- Strict language code validation (ISO 639-1/639-3)
- Support for new file extensions (.stjson, .stj, .stj.json)
- MIME type support: application/vnd.stj+json
- Word timing modes (complete, partial, none)
- Enhanced speaker and style validation
- URI format validation
- Extensions field validation with reserved namespace protection

Changed

- Updated validation to match STJ 0.6.0 specification
- Improved error messages with detailed location information
- Enhanced time value handling with 3-decimal precision
- Stricter validation for segment ordering and overlap
- Updated language code handling to prefer ISO 639-1

Deprecated

- Old file extension recommendations (.stj.json as primary)
- Previous validation severity system

0.3.2

Changed

- Changed JSON output to consistently order speakers before segments in transcript section

Fixed

- Fixed handling of empty speakers list in validation and serialization

0.3.0

0.2.0

Links

Releases

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.