Coverage for src/configuraptor/__init__.py: 100%
12 statements
« prev ^ index » next coverage.py v7.2.7, created at 2026-05-01 14:18 +0200
« prev ^ index » next coverage.py v7.2.7, created at 2026-05-01 14:18 +0200
1"""
2Exposes TypedConfig and load_into for this library.
3"""
5# SPDX-FileCopyrightText: 2023-present Robin van der Noord <robinvandernoord@gmail.com>
6#
7# SPDX-License-Identifier: MIT
8from .alias import Alias, alias
9from .beautify import beautify
10from .binary_config import BinaryConfig, BinaryField
11from .cls import TypedConfig, TypedMapping, TypedMutableMapping, update
12from .core import (
13 Defaultable,
14 check_and_convert_data,
15 convert_config,
16 ensure_types,
17 load_data,
18 load_into,
19 load_into_class,
20 load_into_instance,
21)
22from .dump import asbytes, asdict, asjson, astoml, asyaml
23from .helpers import all_annotations, check_type
24from .loaders import register_loader as loader
25from .postpone import postpone
26from .singleton import Singleton, SingletonMeta
27from .type_converters import register_converter as converter
29__all__ = [
30 # beautify,
31 "beautify",
32 # binary
33 "BinaryConfig",
34 "BinaryField",
35 # cls
36 "TypedConfig",
37 "TypedMapping",
38 "TypedMutableMapping",
39 "update",
40 # singleton
41 "Singleton",
42 "SingletonMeta",
43 # core
44 "check_and_convert_data",
45 "convert_config",
46 "ensure_types",
47 "load_data",
48 "load_into",
49 "load_into_class",
50 "load_into_instance",
51 "Defaultable",
52 # helpers
53 "all_annotations",
54 "check_type",
55 # postpone
56 "postpone",
57 # dump
58 "asbytes",
59 "asdict",
60 "astoml",
61 "asyaml",
62 "asjson",
63 # register
64 "loader",
65 "converter",
66 # alias
67 "alias",
68 "Alias",
69]