Release Notes¶
detextive 3.1 (2026-02-16)¶
Enhancements¶
API: Add
Behaviors.utf_16_32_requires_byte_orderto optionally reject BOM-less trial decodes for genericutf-16andutf-32while keeping permissive behavior as the default.
Repairs¶
API: Report UTF charset results from BOM provenance rather than decode codec choice so
utf-8-sigis returned only when a UTF-8 BOM is present, and apply the same provenance normalization to UTF-16/UTF-32 reporting across decode, detection, and inference surfaces.
detextive 3.0 (2026-02-13)¶
Enhancements¶
API: Add
decode_informto return decoded text together with charset, MIME type, and line-separator metadata in a single call.API: Honor supplied textual
http_content_typemetadata consistently across decode and inference paths, including header-guided charset trial decode.
Removals¶
API: Remove
charset_default,mimetype_default, andmimetype_supplementparameters fromdecodeso decoding follows decode-or-error semantics instead of fallback-return inference semantics.API: Replace
Behaviors.charset_detectandBehaviors.mimetype_detecttristates with booleans; passTrueorFalseinstead ofBehaviorTristatevalues.
Repairs¶
Fix UTF-8 content incorrectly decoded when charset detector misidentifies encoding, causing mojibake with non-ASCII characters and emoji.
Fix malformed
http_content_typeparameter parsing so inference no longer raises rawValueErrorfor invalid header parameter syntax. Also include the resolved MIME type value inTextualMimetypeInvaliditymessages.Reject binary content with non-textual MIME types instead of attempting to decode, preventing false positives where binary data was incorrectly decoded as text.
detextive 2.0 (2025-09-20)¶
Enhancements¶
API: Add comprehensive type aliases for function arguments with PEP 593 annotations for improved API documentation and semantic clarity.
API: Add confidence-based detection with new functions
detect_charset_confidence(),detect_mimetype_confidence(),infer_charset_confidence(), andinfer_mimetype_charset_confidence()returning Result objects with confidence scores.API: Enhance
decode()function with intelligent MIME type validation, graceful error fallback, and single-pass decoding efficiency.API: Implement comprehensive text validation system with Unicode-aware profiles including TEXTUAL, TERMINAL, TERMINAL_ANSI, and PRINTER configurations.
Platform: Improve Windows compatibility by using python-magic-bin to avoid Cygwin buffer issues and handle MIME type detection differences.
Notices¶
API: Rename
detect_mimetype_and_charset()toinfer_mimetype_charset()andis_textual_content()tois_valid_text()for improved clarity.
Detextive 1.0 (2025-08-12)¶
Enhancements¶
Provide
LineSeparatorsenum with detection, normalization, and nativization methods.Provide
detect_charset,detect_mimetype,detect_charset_and_mimetype,is_textual_mimetype, andis_textual_content.