Coverage for src/configuraptor/__init__.py: 100%

10 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-11-07 15:36 +0100

1""" 

2Exposes TypedConfig and load_into for this library. 

3""" 

4 

5# SPDX-FileCopyrightText: 2023-present Robin van der Noord <robinvandernoord@gmail.com> 

6# 

7# SPDX-License-Identifier: MIT 

8from .binary_config import BinaryConfig, BinaryField 

9from .cls import TypedConfig, TypedMapping, TypedMutableMapping, update 

10from .core import ( 

11 check_and_convert_data, 

12 convert_config, 

13 ensure_types, 

14 load_data, 

15 load_into, 

16 load_into_class, 

17 load_into_instance, 

18) 

19from .dump import asbytes, asdict, asjson, astoml, asyaml 

20from .helpers import all_annotations, check_type 

21from .loaders import register_loader as loader 

22from .postpone import postpone 

23from .singleton import Singleton, SingletonMeta 

24from .type_converters import register_converter as converter 

25 

26__all__ = [ 

27 # binary 

28 "BinaryConfig", 

29 "BinaryField", 

30 # cls 

31 "TypedConfig", 

32 "TypedMapping", 

33 "TypedMutableMapping", 

34 "update", 

35 # singleton 

36 "Singleton", 

37 "SingletonMeta", 

38 # core 

39 "check_and_convert_data", 

40 "convert_config", 

41 "ensure_types", 

42 "load_data", 

43 "load_into", 

44 "load_into_class", 

45 "load_into_instance", 

46 # helpers 

47 "all_annotations", 

48 "check_type", 

49 # postpone 

50 "postpone", 

51 # dump 

52 "asbytes", 

53 "asdict", 

54 "astoml", 

55 "asyaml", 

56 "asjson", 

57 # register 

58 "loader", 

59 "converter", 

60]