Coverage for src / c41811 / config / __init__.py: 100%
8 statements
« prev ^ index » next coverage.py v7.13.3, created at 2026-02-06 06:04 +0000
« prev ^ index » next coverage.py v7.13.3, created at 2026-02-06 06:04 +0000
1# cython: language_level = 3 # noqa: ERA001
3"""
4C41811.Config 旨在通过提供一套简洁的 API 和灵活的配置处理机制,来简化配置文件的管理。
5无论是简单的键值对配置,还是复杂的嵌套结构,都能轻松应对。
6它不仅支持多种配置格式,还提供了丰富的错误处理和验证功能,确保配置数据的准确性和一致性。
8文档:https://C41811Config.readthedocs.io
9""" # noqa: RUF002, D205
11__author__ = "C418____11 <C418-11@qq.com>"
13from typing import TYPE_CHECKING as __TYPE_CHECKING
15if __TYPE_CHECKING: # pragma: no cover
16 from .basic import * # noqa: F403
17 from .main import * # noqa: F403
18 from .path import * # noqa: F403
19 from .processor import * # noqa: F403
20 from .validators import * # noqa: F403
21else:
22 from .basic import __all__ as __basic_all
23 from .lazy_import import lazy_import as __lazy_import
24 from .processor import __all__ as __processor_all
26 __all__, __getattr__ = __lazy_import(
27 {
28 **dict.fromkeys(__processor_all, ".processor"),
29 **dict.fromkeys(__basic_all, ".basic"),
30 "__version__": "._version",
31 "__version_tuple__": "._version",
32 "BasicChainConfigSL": ".main",
33 "BasicCompressedConfigSL": ".main",
34 "BasicConfigSL": ".main",
35 "BasicLocalFileConfigSL": ".main",
36 "ConfigPool": ".main",
37 "ConfigRequirementDecorator": ".main",
38 "DefaultConfigPool": ".main",
39 "RequiredPath": ".main",
40 "get": ".main",
41 "load": ".main",
42 "raises": ".main",
43 "requireConfig": ".main",
44 "save": ".main",
45 "saveAll": ".main",
46 "set_": ".main",
47 "AttrKey": ".path",
48 "IndexKey": ".path",
49 "Path": ".path",
50 "PathSyntaxParser": ".path",
51 "ComponentValidatorFactory": ".validators",
52 "DefaultValidatorFactory": ".validators",
53 "FieldDefinition": ".validators",
54 "ValidatorOptions": ".validators",
55 "ValidatorTypes": ".validators",
56 "pydantic_validator": ".validators",
57 }
58 )
59 __all__.remove("__version__")
60 __all__.remove("__version_tuple__")