Only Kanta exported at root, others available from submodules.

This commit is contained in:
Leo Vasanko
2026-06-13 21:26:35 +00:00
parent 384b4fba4f
commit 1cda44f328
8 changed files with 9 additions and 32 deletions
-25
View File
@@ -1,30 +1,5 @@
from .callbacks import DictPost, DictPre, LogFmt
from .diff import compute_diff
from .diff import replay_jsonl as replay
from .exceptions import DatabaseError, DataIntegrityError, FileLockError, ReplayError
from .filelock import LockedFile
from .kanta import Kanta
from .logging import configure_logging, format_diff, log_change
from .serialization import JsonSerializer, MsgPackSerializer
from .structs import ChangeRecord, Snapshot
__all__ = [
"ChangeRecord",
"compute_diff",
"configure_logging",
"DataIntegrityError",
"DatabaseError",
"FileLockError",
"format_diff",
"JsonSerializer",
"Kanta",
"LockedFile",
"log_change",
"MsgPackSerializer",
"DictPost",
"DictPre",
"ReplayError",
"LogFmt",
"Snapshot",
"replay",
]
+1 -1
View File
@@ -1,6 +1,6 @@
import pytest
from kanta import JsonSerializer, MsgPackSerializer
from kanta.serialization import JsonSerializer, MsgPackSerializer
@pytest.fixture(
+2 -1
View File
@@ -6,7 +6,8 @@ from uuid import UUID
import msgspec
from kanta import ChangeRecord, Kanta
from kanta.kanta import Kanta
from kanta.structs import ChangeRecord
class User(msgspec.Struct):
+1 -1
View File
@@ -1,4 +1,4 @@
from kanta import compute_diff
from kanta.diff import compute_diff
def test_no_diff():
+1 -1
View File
@@ -1,4 +1,4 @@
from kanta import format_diff
from kanta.logging import format_diff
def test_add():
+1 -1
View File
@@ -1,6 +1,6 @@
import logging
from kanta import configure_logging, log_change
from kanta.logging import configure_logging, log_change
from kanta.logging import logger
+1 -1
View File
@@ -4,7 +4,7 @@ from datetime import UTC, datetime
import pytest
from kanta import ChangeRecord
from kanta.structs import ChangeRecord
from .support import Data, make_kanta, seed_single_change
+2 -1
View File
@@ -1,6 +1,7 @@
from datetime import UTC, datetime
from kanta import ChangeRecord, Snapshot, replay
from kanta.diff import replay_jsonl as replay
from kanta.structs import ChangeRecord, Snapshot
from kanta.serialization.framing import LineFramer