Coverage for jsonschema_diff/color/stages/__init__.py: 100%
4 statements
« prev ^ index » next coverage.py v7.10.5, created at 2025-08-25 07:00 +0000
« prev ^ index » next coverage.py v7.10.5, created at 2025-08-25 07:00 +0000
1"""
2Built-in high-lighter stages
3============================
5This *sub-package* bundles three ready-to-use implementations of
6:class:`jsonschema_diff.color.abstraction.LineHighlighter` that cover the most
7common needs when rendering a JSON-Schema diff to the terminal:
9* :class:`MonoLinesHighlighter` – apply a foreground colour chosen from a
10 *prefix → colour* mapping
11* :class:`ReplaceGenericHighlighter` – highlight token-level changes within
12 ``OLD -> NEW`` tails
13* :class:`PathHighlighter` – pretty-print JSON-Pointer-like paths
15Importing the package directly re-exports these classes so you can write
16succinct code such as ::
18 from jsonschema_diff.color.stages import MonoLinesHighlighter
20Only the three public classes below are exported via :py:data:`__all__`.
21"""
23from .mono_lines import MonoLinesHighlighter
24from .path import PathHighlighter
25from .replace import ReplaceGenericHighlighter
27__all__: list[str] = [
28 "MonoLinesHighlighter",
29 "ReplaceGenericHighlighter",
30 "PathHighlighter",
31]