Coverage for src/loman/serialization/__init__.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.16.0, created at 2026-09-07 00:32 +0000

1"""Serialization utilities for Loman computations.""" 

2 

3from .blobs import BlobReader, BlobStore, BlobWriter, DirBlobStore, MemoryBlobStore, ZipBlobStore 

4from .computation import ComputationSerializer 

5from .default import default_transformer 

6from .profile import EFFICIENT, READABLE, SerializationProfile 

7from .transformer import ( 

8 CustomTransformer, 

9 DillFunctionTransformer, 

10 DuplicateRegistrationError, 

11 MissingObject, 

12 NdArrayTransformer, 

13 SimpleTransformer, 

14 Transformable, 

15 Transformer, 

16 UnrecognizedTypeError, 

17 UntransformableTypeError, 

18) 

19from .values import register_value_transformers 

20 

21# Backward compatibility aliases 

22UnrecognizedTypeException = UnrecognizedTypeError 

23UntransformableTypeException = UntransformableTypeError 

24 

25__all__ = [ 

26 "EFFICIENT", 

27 "READABLE", 

28 "BlobReader", 

29 "BlobStore", 

30 "BlobWriter", 

31 "ComputationSerializer", 

32 "CustomTransformer", 

33 "DillFunctionTransformer", 

34 "DirBlobStore", 

35 "DuplicateRegistrationError", 

36 "MemoryBlobStore", 

37 "MissingObject", 

38 "NdArrayTransformer", 

39 "SerializationProfile", 

40 "SimpleTransformer", 

41 "Transformable", 

42 "Transformer", 

43 "UnrecognizedTypeError", 

44 "UnrecognizedTypeException", 

45 "UntransformableTypeError", 

46 "UntransformableTypeException", 

47 "ZipBlobStore", 

48 "default_transformer", 

49 "register_value_transformers", 

50]