pboot-validator 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pboot_validator/__init__.py +461 -0
- pboot_validator/_internal/__init__.py +0 -0
- pboot_validator/_internal/_config.py +408 -0
- pboot_validator/_internal/_contextlib.py +84 -0
- pboot_validator/_internal/_core_metadata.py +97 -0
- pboot_validator/_internal/_core_utils.py +156 -0
- pboot_validator/_internal/_dataclasses.py +327 -0
- pboot_validator/_internal/_decorators.py +906 -0
- pboot_validator/_internal/_decorators_v1.py +174 -0
- pboot_validator/_internal/_discriminated_union.py +510 -0
- pboot_validator/_internal/_docs_extraction.py +128 -0
- pboot_validator/_internal/_fields.py +910 -0
- pboot_validator/_internal/_forward_ref.py +23 -0
- pboot_validator/_internal/_generate_schema.py +3053 -0
- pboot_validator/_internal/_generics.py +572 -0
- pboot_validator/_internal/_git.py +27 -0
- pboot_validator/_internal/_import_utils.py +20 -0
- pboot_validator/_internal/_known_annotated_metadata.py +412 -0
- pboot_validator/_internal/_mock_val_ser.py +241 -0
- pboot_validator/_internal/_model_construction.py +833 -0
- pboot_validator/_internal/_namespace_utils.py +300 -0
- pboot_validator/_internal/_repr.py +129 -0
- pboot_validator/_internal/_schema_gather.py +49 -0
- pboot_validator/_internal/_schema_generation_shared.py +126 -0
- pboot_validator/_internal/_serializers.py +59 -0
- pboot_validator/_internal/_signature.py +193 -0
- pboot_validator/_internal/_type_refs.py +128 -0
- pboot_validator/_internal/_typing_extra.py +506 -0
- pboot_validator/_internal/_utils.py +433 -0
- pboot_validator/_internal/_validate_call.py +141 -0
- pboot_validator/_internal/_validators.py +541 -0
- pboot_validator/_migration.py +317 -0
- pboot_validator/alias_generators.py +62 -0
- pboot_validator/aliases.py +136 -0
- pboot_validator/annotated_handlers.py +123 -0
- pboot_validator/class_validators.py +5 -0
- pboot_validator/color.py +605 -0
- pboot_validator/config.py +1295 -0
- pboot_validator/dataclasses.py +385 -0
- pboot_validator/datetime_parse.py +5 -0
- pboot_validator/decorator.py +5 -0
- pboot_validator/deprecated/__init__.py +0 -0
- pboot_validator/deprecated/class_validators.py +257 -0
- pboot_validator/deprecated/config.py +72 -0
- pboot_validator/deprecated/copy_internals.py +224 -0
- pboot_validator/deprecated/decorator.py +286 -0
- pboot_validator/deprecated/json.py +142 -0
- pboot_validator/deprecated/parse.py +81 -0
- pboot_validator/deprecated/tools.py +104 -0
- pboot_validator/env_settings.py +5 -0
- pboot_validator/error_wrappers.py +5 -0
- pboot_validator/errors.py +185 -0
- pboot_validator/experimental/__init__.py +1 -0
- pboot_validator/experimental/arguments_schema.py +44 -0
- pboot_validator/experimental/missing_sentinel.py +29 -0
- pboot_validator/experimental/pipeline.py +684 -0
- pboot_validator/fields.py +2065 -0
- pboot_validator/functional_serializers.py +461 -0
- pboot_validator/functional_validators.py +920 -0
- pboot_validator/generics.py +5 -0
- pboot_validator/json.py +5 -0
- pboot_validator/json_schema.py +3283 -0
- pboot_validator/main.py +1947 -0
- pboot_validator/mypy.py +1469 -0
- pboot_validator/networks.py +1417 -0
- pboot_validator/parse.py +5 -0
- pboot_validator/plugin/__init__.py +190 -0
- pboot_validator/plugin/_loader.py +56 -0
- pboot_validator/plugin/_schema_validator.py +152 -0
- pboot_validator/py.typed +0 -0
- pboot_validator/root_model.py +189 -0
- pboot_validator/schema.py +5 -0
- pboot_validator/tools.py +5 -0
- pboot_validator/type_adapter.py +780 -0
- pboot_validator/types.py +3405 -0
- pboot_validator/typing.py +5 -0
- pboot_validator/utils.py +5 -0
- pboot_validator/v1/__init__.py +131 -0
- pboot_validator/v1/_hypothesis_plugin.py +391 -0
- pboot_validator/v1/annotated_types.py +72 -0
- pboot_validator/v1/class_validators.py +361 -0
- pboot_validator/v1/color.py +494 -0
- pboot_validator/v1/config.py +191 -0
- pboot_validator/v1/dataclasses.py +503 -0
- pboot_validator/v1/datetime_parse.py +248 -0
- pboot_validator/v1/decorator.py +264 -0
- pboot_validator/v1/env_settings.py +350 -0
- pboot_validator/v1/error_wrappers.py +161 -0
- pboot_validator/v1/errors.py +646 -0
- pboot_validator/v1/fields.py +1253 -0
- pboot_validator/v1/generics.py +400 -0
- pboot_validator/v1/json.py +112 -0
- pboot_validator/v1/main.py +1130 -0
- pboot_validator/v1/mypy.py +950 -0
- pboot_validator/v1/networks.py +747 -0
- pboot_validator/v1/parse.py +66 -0
- pboot_validator/v1/py.typed +0 -0
- pboot_validator/v1/schema.py +1163 -0
- pboot_validator/v1/tools.py +92 -0
- pboot_validator/v1/types.py +1213 -0
- pboot_validator/v1/typing.py +627 -0
- pboot_validator/v1/utils.py +807 -0
- pboot_validator/v1/validators.py +768 -0
- pboot_validator/v1/version.py +38 -0
- pboot_validator/validate_call_decorator.py +121 -0
- pboot_validator/validators.py +5 -0
- pboot_validator/version.py +113 -0
- pboot_validator/warnings.py +130 -0
- pboot_validator-1.0.0.dist-info/METADATA +93 -0
- pboot_validator-1.0.0.dist-info/RECORD +112 -0
- pboot_validator-1.0.0.dist-info/WHEEL +4 -0
- pboot_validator-1.0.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
__all__ = 'compiled', 'VERSION', 'version_info'
|
|
2
|
+
|
|
3
|
+
VERSION = '1.10.27'
|
|
4
|
+
|
|
5
|
+
try:
|
|
6
|
+
import cython # type: ignore
|
|
7
|
+
except ImportError:
|
|
8
|
+
compiled: bool = False
|
|
9
|
+
else: # pragma: no cover
|
|
10
|
+
try:
|
|
11
|
+
compiled = cython.compiled
|
|
12
|
+
except AttributeError:
|
|
13
|
+
compiled = False
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def version_info() -> str:
|
|
17
|
+
import platform
|
|
18
|
+
import sys
|
|
19
|
+
from importlib import import_module
|
|
20
|
+
from pathlib import Path
|
|
21
|
+
|
|
22
|
+
optional_deps = []
|
|
23
|
+
for p in ('devtools', 'dotenv', 'email-validator', 'typing-extensions'):
|
|
24
|
+
try:
|
|
25
|
+
import_module(p.replace('-', '_'))
|
|
26
|
+
except ImportError:
|
|
27
|
+
continue
|
|
28
|
+
optional_deps.append(p)
|
|
29
|
+
|
|
30
|
+
info = {
|
|
31
|
+
'pydantic version': VERSION,
|
|
32
|
+
'pydantic compiled': compiled,
|
|
33
|
+
'install path': Path(__file__).resolve().parent,
|
|
34
|
+
'python version': sys.version,
|
|
35
|
+
'platform': platform.platform(),
|
|
36
|
+
'optional deps. installed': optional_deps,
|
|
37
|
+
}
|
|
38
|
+
return '\n'.join('{:>30} {}'.format(k + ':', str(v).replace('\n', ' ')) for k, v in info.items())
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"""Decorator for validating function calls."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations as _annotations
|
|
4
|
+
|
|
5
|
+
import inspect
|
|
6
|
+
from collections.abc import Callable
|
|
7
|
+
from functools import partial
|
|
8
|
+
from types import BuiltinFunctionType
|
|
9
|
+
from typing import TYPE_CHECKING, Any, TypeVar, cast, overload
|
|
10
|
+
|
|
11
|
+
from ._internal import _generate_schema, _typing_extra, _validate_call
|
|
12
|
+
from .errors import PydanticUserError
|
|
13
|
+
|
|
14
|
+
__all__ = ('validate_call',)
|
|
15
|
+
|
|
16
|
+
if TYPE_CHECKING:
|
|
17
|
+
from .config import ConfigDict
|
|
18
|
+
|
|
19
|
+
AnyCallableT = TypeVar('AnyCallableT', bound=Callable[..., Any])
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
_INVALID_TYPE_ERROR_CODE = 'validate-call-type'
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def _check_function_type(function: object) -> None:
|
|
26
|
+
"""Check if the input function is a supported type for `validate_call`."""
|
|
27
|
+
if isinstance(function, _generate_schema.VALIDATE_CALL_SUPPORTED_TYPES):
|
|
28
|
+
try:
|
|
29
|
+
_typing_extra.signature_no_eval(cast(_generate_schema.ValidateCallSupportedTypes, function))
|
|
30
|
+
except (ValueError, TypeError):
|
|
31
|
+
raise PydanticUserError(
|
|
32
|
+
f"Input function `{function}` doesn't have a valid signature", code=_INVALID_TYPE_ERROR_CODE
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
if isinstance(function, partial):
|
|
36
|
+
try:
|
|
37
|
+
assert not isinstance(partial.func, partial), 'Partial of partial'
|
|
38
|
+
_check_function_type(function.func)
|
|
39
|
+
except PydanticUserError as e:
|
|
40
|
+
raise PydanticUserError(
|
|
41
|
+
f'Partial of `{function.func}` is invalid because the type of `{function.func}` is not supported by `validate_call`',
|
|
42
|
+
code=_INVALID_TYPE_ERROR_CODE,
|
|
43
|
+
) from e
|
|
44
|
+
|
|
45
|
+
return
|
|
46
|
+
|
|
47
|
+
if isinstance(function, BuiltinFunctionType):
|
|
48
|
+
raise PydanticUserError(f'Input built-in function `{function}` is not supported', code=_INVALID_TYPE_ERROR_CODE)
|
|
49
|
+
if isinstance(function, (classmethod, staticmethod, property)):
|
|
50
|
+
name = type(function).__name__
|
|
51
|
+
raise PydanticUserError(
|
|
52
|
+
f'The `@{name}` decorator should be applied after `@validate_call` (put `@{name}` on top)',
|
|
53
|
+
code=_INVALID_TYPE_ERROR_CODE,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
if inspect.isclass(function):
|
|
57
|
+
raise PydanticUserError(
|
|
58
|
+
f'Unable to validate {function}: `validate_call` should be applied to functions, not classes (put `@validate_call` on top of `__init__` or `__new__` instead)',
|
|
59
|
+
code=_INVALID_TYPE_ERROR_CODE,
|
|
60
|
+
)
|
|
61
|
+
if callable(function):
|
|
62
|
+
raise PydanticUserError(
|
|
63
|
+
f'Unable to validate {function}: `validate_call` should be applied to functions, not instances or other callables. Use `validate_call` explicitly on `__call__` instead.',
|
|
64
|
+
code=_INVALID_TYPE_ERROR_CODE,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
raise PydanticUserError(
|
|
68
|
+
f'Unable to validate {function}: `validate_call` should be applied to one of the following: function, method, partial, or lambda',
|
|
69
|
+
code=_INVALID_TYPE_ERROR_CODE,
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@overload
|
|
74
|
+
def validate_call(
|
|
75
|
+
*, config: ConfigDict | None = None, validate_return: bool = False
|
|
76
|
+
) -> Callable[[AnyCallableT], AnyCallableT]: ...
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
@overload
|
|
80
|
+
def validate_call(func: AnyCallableT, /) -> AnyCallableT: ...
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def validate_call(
|
|
84
|
+
func: AnyCallableT | None = None,
|
|
85
|
+
/,
|
|
86
|
+
*,
|
|
87
|
+
config: ConfigDict | None = None,
|
|
88
|
+
validate_return: bool = False,
|
|
89
|
+
) -> AnyCallableT | Callable[[AnyCallableT], AnyCallableT]:
|
|
90
|
+
"""!!! abstract "Usage Documentation"
|
|
91
|
+
[Validation Decorator](../concepts/validation_decorator.md)
|
|
92
|
+
|
|
93
|
+
Returns a wrapper around the function that validates the arguments and, optionally, the return value.
|
|
94
|
+
|
|
95
|
+
Usage may be either as a plain decorator `@validate_call` or with arguments (`@validate_call(...)`).
|
|
96
|
+
|
|
97
|
+
When a decorated call fails, the [`ValidationError`][pydantic_core.ValidationError] reports the
|
|
98
|
+
rejected argument and value. [Logfire](../integrations/logfire.md) can retain the complete call input
|
|
99
|
+
and surrounding trace context — see [Troubleshooting validation errors](../errors/troubleshooting.md).
|
|
100
|
+
|
|
101
|
+
Args:
|
|
102
|
+
func: The function to be wrapped.
|
|
103
|
+
config: The configuration dictionary.
|
|
104
|
+
validate_return: Whether to validate the return value.
|
|
105
|
+
|
|
106
|
+
Returns:
|
|
107
|
+
The decorated function.
|
|
108
|
+
"""
|
|
109
|
+
parent_namespace = _typing_extra.parent_frame_namespace()
|
|
110
|
+
|
|
111
|
+
def validate(function: AnyCallableT) -> AnyCallableT:
|
|
112
|
+
_check_function_type(function)
|
|
113
|
+
validate_call_wrapper = _validate_call.ValidateCallWrapper(
|
|
114
|
+
cast(_generate_schema.ValidateCallSupportedTypes, function), config, validate_return, parent_namespace
|
|
115
|
+
)
|
|
116
|
+
return _validate_call.update_wrapper_attributes(function, validate_call_wrapper.__call__) # type: ignore
|
|
117
|
+
|
|
118
|
+
if func is not None:
|
|
119
|
+
return validate(func)
|
|
120
|
+
else:
|
|
121
|
+
return validate
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"""The `version` module holds the version information for Pydantic."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations as _annotations
|
|
4
|
+
|
|
5
|
+
import sys
|
|
6
|
+
|
|
7
|
+
from pydantic_core import __version__ as __pydantic_core_version__
|
|
8
|
+
|
|
9
|
+
__all__ = 'VERSION', 'version_info'
|
|
10
|
+
|
|
11
|
+
VERSION = '1.0.0'
|
|
12
|
+
"""The version of Pydantic.
|
|
13
|
+
|
|
14
|
+
This version specifier is guaranteed to be compliant with the [specification],
|
|
15
|
+
introduced by [PEP 440].
|
|
16
|
+
|
|
17
|
+
[specification]: https://packaging.python.org/en/latest/specifications/version-specifiers/
|
|
18
|
+
[PEP 440]: https://peps.python.org/pep-0440/
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
# Keep this in sync with the version constraint in the `pyproject.toml` dependencies:
|
|
22
|
+
_COMPATIBLE_PYDANTIC_CORE_VERSION = '2.50.5'
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def version_short() -> str:
|
|
26
|
+
"""Return the `major.minor` part of Pydantic version.
|
|
27
|
+
|
|
28
|
+
It returns '2.1' if Pydantic version is '2.1.1'.
|
|
29
|
+
"""
|
|
30
|
+
return '.'.join(VERSION.split('.')[:2])
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def version_info() -> str:
|
|
34
|
+
"""Return complete version information for Pydantic and its dependencies."""
|
|
35
|
+
import importlib.metadata
|
|
36
|
+
import platform
|
|
37
|
+
from pathlib import Path
|
|
38
|
+
|
|
39
|
+
import pydantic_core._pydantic_core as pdc
|
|
40
|
+
|
|
41
|
+
from ._internal import _git as git
|
|
42
|
+
|
|
43
|
+
# get data about packages that are closely related to pydantic, use pydantic or often conflict with pydantic
|
|
44
|
+
package_names = {
|
|
45
|
+
'email-validator',
|
|
46
|
+
'fastapi',
|
|
47
|
+
'mypy',
|
|
48
|
+
'pydantic-extra-types',
|
|
49
|
+
'pydantic-settings',
|
|
50
|
+
'pyright',
|
|
51
|
+
'typing_extensions',
|
|
52
|
+
}
|
|
53
|
+
related_packages = []
|
|
54
|
+
|
|
55
|
+
for dist in importlib.metadata.distributions():
|
|
56
|
+
name = dist.metadata['Name']
|
|
57
|
+
if name in package_names:
|
|
58
|
+
related_packages.append(f'{name}-{dist.version}')
|
|
59
|
+
|
|
60
|
+
pydantic_dir = Path(__file__).parents[1].resolve()
|
|
61
|
+
most_recent_commit = (
|
|
62
|
+
git.git_revision(pydantic_dir) if git.is_git_repo(pydantic_dir) and git.have_git() else 'unknown'
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
info = {
|
|
66
|
+
'pydantic version': VERSION,
|
|
67
|
+
'pydantic-core version': __pydantic_core_version__,
|
|
68
|
+
'pydantic-core build': getattr(pdc, 'build_info', None) or pdc.build_profile, # pyright: ignore[reportPrivateImportUsage]
|
|
69
|
+
'python version': sys.version,
|
|
70
|
+
'platform': platform.platform(),
|
|
71
|
+
'related packages': ' '.join(related_packages),
|
|
72
|
+
'commit': most_recent_commit,
|
|
73
|
+
}
|
|
74
|
+
return '\n'.join('{:>30} {}'.format(k + ':', str(v).replace('\n', ' ')) for k, v in info.items())
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def check_pydantic_core_version() -> bool:
|
|
78
|
+
"""Check that the installed `pydantic-core` dependency is compatible."""
|
|
79
|
+
return __pydantic_core_version__ == _COMPATIBLE_PYDANTIC_CORE_VERSION
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def _ensure_pydantic_core_version() -> None: # pragma: no cover
|
|
83
|
+
if not check_pydantic_core_version():
|
|
84
|
+
raise_error = True
|
|
85
|
+
# Do not raise the error if pydantic is installed in editable mode (i.e. in development):
|
|
86
|
+
if sys.version_info >= (3, 13): # origin property added in 3.13
|
|
87
|
+
from importlib.metadata import distribution
|
|
88
|
+
|
|
89
|
+
dist = distribution('pboot_validator')
|
|
90
|
+
if getattr(getattr(dist.origin, 'dir_info', None), 'editable', False):
|
|
91
|
+
raise_error = False
|
|
92
|
+
|
|
93
|
+
if raise_error:
|
|
94
|
+
raise SystemError(
|
|
95
|
+
f'The installed pydantic-core version ({__pydantic_core_version__}) is incompatible '
|
|
96
|
+
f'with the current pydantic version, which requires {_COMPATIBLE_PYDANTIC_CORE_VERSION}. '
|
|
97
|
+
"If you encounter this error, make sure that you haven't upgraded pydantic-core manually."
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def parse_mypy_version(version: str) -> tuple[int, int, int]:
|
|
102
|
+
"""Parse `mypy` string version to a 3-tuple of ints.
|
|
103
|
+
|
|
104
|
+
It parses normal version like `1.11.0` and extra info followed by a `+` sign
|
|
105
|
+
like `1.11.0+dev.d6d9d8cd4f27c52edac1f537e236ec48a01e54cb.dirty`.
|
|
106
|
+
|
|
107
|
+
Args:
|
|
108
|
+
version: The mypy version string.
|
|
109
|
+
|
|
110
|
+
Returns:
|
|
111
|
+
A triple of ints, e.g. `(1, 11, 0)`.
|
|
112
|
+
"""
|
|
113
|
+
return tuple(map(int, version.partition('+')[0].split('.'))) # pyright: ignore[reportReturnType]
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"""Pydantic-specific warnings."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations as _annotations
|
|
4
|
+
|
|
5
|
+
from .version import version_short
|
|
6
|
+
|
|
7
|
+
__all__ = (
|
|
8
|
+
'PydanticDeprecatedSince20',
|
|
9
|
+
'PydanticDeprecatedSince26',
|
|
10
|
+
'PydanticDeprecatedSince29',
|
|
11
|
+
'PydanticDeprecatedSince210',
|
|
12
|
+
'PydanticDeprecatedSince211',
|
|
13
|
+
'PydanticDeprecatedSince212',
|
|
14
|
+
'PydanticDeprecatedSince214',
|
|
15
|
+
'PydanticDeprecationWarning',
|
|
16
|
+
'PydanticExperimentalWarning',
|
|
17
|
+
'ArbitraryTypeWarning',
|
|
18
|
+
'UnsupportedFieldAttributeWarning',
|
|
19
|
+
'TypedDictExtraConfigWarning',
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class PydanticDeprecationWarning(DeprecationWarning):
|
|
24
|
+
"""A Pydantic specific deprecation warning.
|
|
25
|
+
|
|
26
|
+
This warning is raised when using deprecated functionality in Pydantic. It provides information on when the
|
|
27
|
+
deprecation was introduced and the expected version in which the corresponding functionality will be removed.
|
|
28
|
+
|
|
29
|
+
Attributes:
|
|
30
|
+
message: Description of the warning.
|
|
31
|
+
since: Pydantic version in what the deprecation was introduced.
|
|
32
|
+
expected_removal: Pydantic version in what the corresponding functionality expected to be removed.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
message: str
|
|
36
|
+
since: tuple[int, int]
|
|
37
|
+
expected_removal: tuple[int, int]
|
|
38
|
+
|
|
39
|
+
def __init__(
|
|
40
|
+
self, message: str, *args: object, since: tuple[int, int], expected_removal: tuple[int, int] | None = None
|
|
41
|
+
) -> None:
|
|
42
|
+
super().__init__(message, *args)
|
|
43
|
+
self.message = message.rstrip('.')
|
|
44
|
+
self.since = since
|
|
45
|
+
self.expected_removal = expected_removal if expected_removal is not None else (since[0] + 1, 0)
|
|
46
|
+
|
|
47
|
+
def __str__(self) -> str:
|
|
48
|
+
message = (
|
|
49
|
+
f'{self.message}. Deprecated in Pydantic V{self.since[0]}.{self.since[1]}'
|
|
50
|
+
f' to be removed in V{self.expected_removal[0]}.{self.expected_removal[1]}.'
|
|
51
|
+
)
|
|
52
|
+
if self.since == (2, 0):
|
|
53
|
+
message += f' See Pydantic V2 Migration Guide at https://errors.pydantic.dev/{version_short()}/migration/'
|
|
54
|
+
return message
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class PydanticDeprecatedSince20(PydanticDeprecationWarning):
|
|
58
|
+
"""A specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.0."""
|
|
59
|
+
|
|
60
|
+
def __init__(self, message: str, *args: object) -> None:
|
|
61
|
+
super().__init__(message, *args, since=(2, 0), expected_removal=(3, 0))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class PydanticDeprecatedSince26(PydanticDeprecationWarning): # pragma: no cover
|
|
65
|
+
"""A specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.6."""
|
|
66
|
+
|
|
67
|
+
def __init__(self, message: str, *args: object) -> None:
|
|
68
|
+
super().__init__(message, *args, since=(2, 6), expected_removal=(3, 0))
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class PydanticDeprecatedSince29(PydanticDeprecationWarning):
|
|
72
|
+
"""A specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.9."""
|
|
73
|
+
|
|
74
|
+
def __init__(self, message: str, *args: object) -> None:
|
|
75
|
+
super().__init__(message, *args, since=(2, 9), expected_removal=(3, 0))
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class PydanticDeprecatedSince210(PydanticDeprecationWarning):
|
|
79
|
+
"""A specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.10."""
|
|
80
|
+
|
|
81
|
+
def __init__(self, message: str, *args: object) -> None:
|
|
82
|
+
super().__init__(message, *args, since=(2, 10), expected_removal=(3, 0))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
class PydanticDeprecatedSince211(PydanticDeprecationWarning):
|
|
86
|
+
"""A specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.11."""
|
|
87
|
+
|
|
88
|
+
def __init__(self, message: str, *args: object) -> None:
|
|
89
|
+
super().__init__(message, *args, since=(2, 11), expected_removal=(3, 0))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
class PydanticDeprecatedSince212(PydanticDeprecationWarning):
|
|
93
|
+
"""A specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.12."""
|
|
94
|
+
|
|
95
|
+
def __init__(self, message: str, *args: object) -> None:
|
|
96
|
+
super().__init__(message, *args, since=(2, 12), expected_removal=(3, 0))
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
class PydanticDeprecatedSince214(PydanticDeprecationWarning):
|
|
100
|
+
"""A specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.14."""
|
|
101
|
+
|
|
102
|
+
def __init__(self, message: str, *args: object) -> None:
|
|
103
|
+
super().__init__(message, *args, since=(2, 14), expected_removal=(3, 0))
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
class GenericBeforeBaseModelWarning(Warning):
|
|
107
|
+
pass
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
class PydanticExperimentalWarning(Warning):
|
|
111
|
+
"""A Pydantic specific experimental functionality warning.
|
|
112
|
+
|
|
113
|
+
It is raised to warn users that the functionality may change or be removed in future versions of Pydantic.
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
class CoreSchemaGenerationWarning(UserWarning):
|
|
118
|
+
"""A warning raised during core schema generation."""
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
class ArbitraryTypeWarning(CoreSchemaGenerationWarning):
|
|
122
|
+
"""A warning raised when Pydantic fails to generate a core schema for an arbitrary type."""
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
class UnsupportedFieldAttributeWarning(CoreSchemaGenerationWarning):
|
|
126
|
+
"""A warning raised when a `Field()` attribute isn't supported in the context it is used."""
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
class TypedDictExtraConfigWarning(CoreSchemaGenerationWarning):
|
|
130
|
+
"""A warning raised when the [`extra`][pboot_validator.ConfigDict.extra] configuration is incompatible with the `closed` or `extra_items` specification."""
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: pboot-validator
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: The validation layer that ships with pboot — a Pydantic 2.14.4 fork.
|
|
5
|
+
Project-URL: Source, https://gitee.com/pboot-org/pboot-validator
|
|
6
|
+
Maintainer: pboot-org
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
18
|
+
Classifier: Typing :: Typed
|
|
19
|
+
Requires-Python: >=3.9
|
|
20
|
+
Requires-Dist: annotated-types>=0.6.0
|
|
21
|
+
Requires-Dist: pydantic-core==2.50.5
|
|
22
|
+
Requires-Dist: typing-extensions>=4.16.0
|
|
23
|
+
Requires-Dist: typing-inspection>=0.4.4
|
|
24
|
+
Provides-Extra: email
|
|
25
|
+
Requires-Dist: email-validator>=2.0.0; extra == 'email'
|
|
26
|
+
Provides-Extra: timezone
|
|
27
|
+
Requires-Dist: tzdata; (platform_system == 'Windows') and extra == 'timezone'
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
|
|
30
|
+
# pboot-validator
|
|
31
|
+
|
|
32
|
+
The validation layer that ships with [pboot](https://gitee.com/pboot-org/pboot).
|
|
33
|
+
|
|
34
|
+
It is a fork of **Pydantic 2.14.4** (MIT, Pydantic Services Inc.) with the import
|
|
35
|
+
package renamed to `pboot_validator`. Models, fields, validators, serialisers,
|
|
36
|
+
JSON Schema generation, generics, discriminated unions, dataclasses, the v1
|
|
37
|
+
compatibility shim — all of it is upstream code, unchanged apart from the rename.
|
|
38
|
+
|
|
39
|
+
```python
|
|
40
|
+
from pboot_validator import BaseModel, Field
|
|
41
|
+
|
|
42
|
+
class Item(BaseModel):
|
|
43
|
+
name: str = Field(min_length=2)
|
|
44
|
+
qty: int = Field(gt=0)
|
|
45
|
+
|
|
46
|
+
print(Item(name="widget", qty=3).model_dump_json())
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Why a fork
|
|
50
|
+
|
|
51
|
+
pboot's public API *is* pydantic's: every signature, every `Field(...)`, every
|
|
52
|
+
validator decorator passes straight through. Depending on pydantic means pboot's
|
|
53
|
+
type system moves on someone else's schedule, and it means the one thing pboot
|
|
54
|
+
cannot optimise — how a model is built and validated — belongs to a package it
|
|
55
|
+
does not control.
|
|
56
|
+
|
|
57
|
+
Owning the Python layer means the next rounds can attack what pboot actually
|
|
58
|
+
spends time on: `model_fields` construction at import time, `TypeAdapter`
|
|
59
|
+
rebuilds, `json_schema` caching, the `model_rebuild` path. Those are all Python
|
|
60
|
+
code in this package.
|
|
61
|
+
|
|
62
|
+
## What is and is not forked
|
|
63
|
+
|
|
64
|
+
The **Rust core is not forked.** `pydantic-core` (2.50.5) is a compiled extension;
|
|
65
|
+
this package pins it exactly, the way upstream does, and keeps calling into it
|
|
66
|
+
through the same interfaces. So the split is: validation *semantics* and the
|
|
67
|
+
compiled validators stay upstream's Rust, while everything Python above it —
|
|
68
|
+
model construction, schema generation, serialisation plumbing, the public API —
|
|
69
|
+
is ours to change.
|
|
70
|
+
|
|
71
|
+
- The import package is `pboot_validator`, everywhere: internal imports,
|
|
72
|
+
`__module__` values, lazy `__getattr__` map, the mypy plugin path, the plugin
|
|
73
|
+
entry-point group (`pboot_validator` instead of `pydantic`), the migration
|
|
74
|
+
shim's target names.
|
|
75
|
+
- `VERSION` is `1.0.0` — the fork's own version, not a continuation of
|
|
76
|
+
upstream's 2.x line. `_COMPATIBLE_PYDANTIC_CORE_VERSION` still pins the
|
|
77
|
+
upstream core this fork was cut against.
|
|
78
|
+
- Upstream's test suite came along
|
|
79
|
+
|
|
80
|
+
## Tests
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
pytest tests -q
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Upstream's suite needs its own extras (`pytest-mock`, `dirty-equals`,
|
|
87
|
+
`jsonschema`, `email-validator`, `tzdata`); the parts that run here are the
|
|
88
|
+
behavioural core — models, types, validators, serialisation, JSON Schema,
|
|
89
|
+
generics, dataclasses, the v1 shim.
|
|
90
|
+
|
|
91
|
+
## Licence
|
|
92
|
+
|
|
93
|
+
MIT, same as upstream. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
pboot_validator/__init__.py,sha256=5dMVUypZJcx2Dhw8pwXjgX9lmNTuEJV8iyXhmKtoaPo,15958
|
|
2
|
+
pboot_validator/_migration.py,sha256=Zw0VMjPrkWwpiW7R1BzxdjxVFAjWkpwOJidF5wnwxGA,13854
|
|
3
|
+
pboot_validator/alias_generators.py,sha256=KM1n3u4JfLSBl1UuYg3hoYHzXJD-yvgrnq8u1ccwh_A,2124
|
|
4
|
+
pboot_validator/aliases.py,sha256=fKQM9m7pLZ2UoTIqK-bMoxs5cWNINrHxphxzsB6VAd8,4902
|
|
5
|
+
pboot_validator/annotated_handlers.py,sha256=5XNQSuudCBpwblqyPcruCfVon7O-kjeKy-3vlwADKM0,4442
|
|
6
|
+
pboot_validator/class_validators.py,sha256=i_V3j-PYdGLSLmj_IJZekTRjunO8SIVz8LMlquPyP7E,148
|
|
7
|
+
pboot_validator/color.py,sha256=EWm2m3oyXpqW1L7wsFSUt_DfMf-gHTxn0UhQ33gKDGA,21497
|
|
8
|
+
pboot_validator/config.py,sha256=GhTjkvUHEa5B9paZ6ywL3n8ojtO49JiPFdeZn5CJGsI,44990
|
|
9
|
+
pboot_validator/dataclasses.py,sha256=_XHxVos2Yn6XmF7oXD5sBS1vwnJTB_Q2w4QKtomu2eE,18429
|
|
10
|
+
pboot_validator/datetime_parse.py,sha256=QC-WgMxMr_wQ_mNXUS7AVf-2hLEhvvsPY1PQyhSGOdk,150
|
|
11
|
+
pboot_validator/decorator.py,sha256=YX-jUApu5AKaVWKPoaV-n-4l7UbS69GEt9Ra3hszmKI,145
|
|
12
|
+
pboot_validator/env_settings.py,sha256=6IHeeWEqlUPRUv3V-AXiF_W91fg2Jw_M3O0l34J_eyA,148
|
|
13
|
+
pboot_validator/error_wrappers.py,sha256=RK6mqATc9yMD-KBD9IJS9HpKCprWHd8wo84Bnm-3fR8,150
|
|
14
|
+
pboot_validator/errors.py,sha256=WQK6JAyGEujYfyE5NGlJ_jRhoms-MCushkJLiHj5HeU,5877
|
|
15
|
+
pboot_validator/fields.py,sha256=vvku-VySBUMbxSljWUnYNlGFopQX_CSsBTDQMPXnnEg,88440
|
|
16
|
+
pboot_validator/functional_serializers.py,sha256=50sKQT_-Hm3WKStiE2Cn-US5Amgv-WuQ_DcJlbgBwJE,17957
|
|
17
|
+
pboot_validator/functional_validators.py,sha256=mKb-ArhWG-iln9Cc--3966yn5qp776n3yQy3fQEoBM4,33302
|
|
18
|
+
pboot_validator/generics.py,sha256=0ZqZ9O9annIj_3mGBRqps4htey3b5lV1-d2tUxPMMnA,144
|
|
19
|
+
pboot_validator/json.py,sha256=ZH8RkI7h4Bz-zp8OdTAxbJUoVvcoU-jhMdRZ0B-k0xc,140
|
|
20
|
+
pboot_validator/json_schema.py,sha256=DZitAFoKSavJm9PE8aUCHn_yolbGTHI6QTws6yOB-e4,144542
|
|
21
|
+
pboot_validator/main.py,sha256=ysz_1EYBgNA95VxOX2h4F_bK5VSc3e0QDMyK284hQzg,91901
|
|
22
|
+
pboot_validator/mypy.py,sha256=ysFuuhaascaMKuv1QORUX8mzqREOzrwpL76aiCIfBrs,64765
|
|
23
|
+
pboot_validator/networks.py,sha256=5SG7-5efe2meFPzserpYoslwZtO3P1v0HDe8dUwUceA,44600
|
|
24
|
+
pboot_validator/parse.py,sha256=wkd82dgtvWtD895U_I6E1htqMlGhBSYEV39cuBSeo3A,141
|
|
25
|
+
pboot_validator/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
|
+
pboot_validator/root_model.py,sha256=7enqbPZHFXk7DO-2H9wG9NxmIGeJcbHSewhKSLS8a4A,8777
|
|
27
|
+
pboot_validator/schema.py,sha256=Vqqjvq_LnapVknebUd3Bp_J1p2gXZZnZRgL48bVEG7o,142
|
|
28
|
+
pboot_validator/tools.py,sha256=iHQpd8SJ5DCTtPV5atAV06T89bjSaMFeZZ2LX9lasZY,141
|
|
29
|
+
pboot_validator/type_adapter.py,sha256=pLiIf2Dago5s73BJxzfzAHGC7_TIg93nvpiktjpiVsw,36618
|
|
30
|
+
pboot_validator/types.py,sha256=fBMWzb1LPahITQdWb1ZSCYlvtOAPEUesDTPDiTt23_E,110805
|
|
31
|
+
pboot_validator/typing.py,sha256=P7feA35MwTcLsR1uL7db0S-oydBxobmXa55YDoBgajQ,138
|
|
32
|
+
pboot_validator/utils.py,sha256=15nR2QpqTBFlQV4TNtTItMyTJx_fbyV-gPmIEY1Gooc,141
|
|
33
|
+
pboot_validator/validate_call_decorator.py,sha256=oktZNbH04RAEV99NSvl5ETPNLTEEE_HLkwj64TOsWd0,4749
|
|
34
|
+
pboot_validator/validators.py,sha256=pwbIJXVb1CV2mAE4w_EGfNj7DwzsKaWw_tTL6cviTus,146
|
|
35
|
+
pboot_validator/version.py,sha256=qxlnytUlMUhocexMwV4Zz_jrVD4lR_wjQSC333w3xys,3991
|
|
36
|
+
pboot_validator/warnings.py,sha256=M_wImkQ8EZh9TCmwX26TH0xUNwKqwZbLYqvDJ0hcNNA,5184
|
|
37
|
+
pboot_validator/_internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
|
+
pboot_validator/_internal/_config.py,sha256=4rgEq34CVc6GIrTlMQ9cJ8S5BO88SqsDQo6m68TFbac,14918
|
|
39
|
+
pboot_validator/_internal/_contextlib.py,sha256=Ir65W0klj3HuNNOuvIe_oVzDmt6hknfVWV7cemr6F7Y,3596
|
|
40
|
+
pboot_validator/_internal/_core_metadata.py,sha256=xXK3dJ9YmS3t1Yo9SVSEoCByonAFTHzDnFPpmXoWUpo,5169
|
|
41
|
+
pboot_validator/_internal/_core_utils.py,sha256=vGxciOi37KN-nhjDOHWBoy1ti8_Xb0-s9JfP9Qo019Y,5927
|
|
42
|
+
pboot_validator/_internal/_dataclasses.py,sha256=9OfXbfZ4xjysis6aqcN0zs3aSeoQwqLR1nTnels_Bxo,13684
|
|
43
|
+
pboot_validator/_internal/_decorators.py,sha256=ZqaoKcwtWudWa-WsopixHSZeA75YGIkI9GOigCmIzlk,35483
|
|
44
|
+
pboot_validator/_internal/_decorators_v1.py,sha256=v7_cyEBvJceFO0aYa1AuvYeaMvjEYRQ3-TbW8U8Ghds,6198
|
|
45
|
+
pboot_validator/_internal/_discriminated_union.py,sha256=HdRL2XOFoCeV95rK0YkxJWPhSdmZWnutRaaBkmQ60Hs,27686
|
|
46
|
+
pboot_validator/_internal/_docs_extraction.py,sha256=V8_-TfG1oUHpEThCvNtZjJaPwd-zVodn4EqkAGv17hY,4708
|
|
47
|
+
pboot_validator/_internal/_fields.py,sha256=C0afq9BmTqvASrQK6ultrnkwQ2vW6QXGPlTSe4X_mA4,41111
|
|
48
|
+
pboot_validator/_internal/_forward_ref.py,sha256=q6SQhW8wo9vPZiuXJ661Vfg7PgoqeJBQTA3dpInXWlA,641
|
|
49
|
+
pboot_validator/_internal/_generate_schema.py,sha256=xivFiP9JxrrPkA6IECIb5CPRNKz98oV2ZGulsW3nu6o,144963
|
|
50
|
+
pboot_validator/_internal/_generics.py,sha256=UnU_kOFiAFp6WPHk9l9totPeRivvjARyEvj_qPcZDGw,25674
|
|
51
|
+
pboot_validator/_internal/_git.py,sha256=IwPh3DPfa2Xq3rBuB9Nx8luR2A1i69QdeTfWWXIuCVg,809
|
|
52
|
+
pboot_validator/_internal/_import_utils.py,sha256=V9Y2EisXwaZsQUEL-xJvfiIP0X1A96uCXebtPd5hPMA,430
|
|
53
|
+
pboot_validator/_internal/_known_annotated_metadata.py,sha256=XQmJM2UMaCGDHrg8bh-eetIPno18FFIebAsbafZn280,17494
|
|
54
|
+
pboot_validator/_internal/_mock_val_ser.py,sha256=w5p_nPmlRmrwhbcG8HEX6OgLx5fOOg9S-u-hQBISF5s,9679
|
|
55
|
+
pboot_validator/_internal/_model_construction.py,sha256=rcHZf1Ce-0tEqC2roUS9gQs-B6NSdSTTP6usDCfP5lg,36670
|
|
56
|
+
pboot_validator/_internal/_namespace_utils.py,sha256=00wQ8tZ23aWq53zAfgpPgW90DJD8w_qNAxcxlXkmIz0,13338
|
|
57
|
+
pboot_validator/_internal/_repr.py,sha256=nIUgwWkcw6Njvwo1mHnCPEAbkNBRMiyxOShNXL1xr2s,5220
|
|
58
|
+
pboot_validator/_internal/_schema_gather.py,sha256=0qGbiz4pdcfvdMiH7JueJ10tQ8c750g1OkZ0xyP_20Q,1892
|
|
59
|
+
pboot_validator/_internal/_schema_generation_shared.py,sha256=8nLsSaqgEebxeF26OwiPBt0ZVPipGqW1IV40agkRfxw,4869
|
|
60
|
+
pboot_validator/_internal/_serializers.py,sha256=evOucDhMiIjaik5f4yMLdDP08ODB0l2pCir22HuQ-Ag,1786
|
|
61
|
+
pboot_validator/_internal/_signature.py,sha256=qJPdzVHLYofFksvvFPOQycuSxQqk_9HDg6rfXxMESh8,7216
|
|
62
|
+
pboot_validator/_internal/_type_refs.py,sha256=21iCBT3VZjOSiRNXAMC6xK8Ix0g6G_8d9DWXEvu79YY,4528
|
|
63
|
+
pboot_validator/_internal/_typing_extra.py,sha256=TCqMlUKdQWG1F-fyh-iDCR2qJlNX8WbLw1VcfRsrcD8,21248
|
|
64
|
+
pboot_validator/_internal/_utils.py,sha256=WqzlnKt-Vh4sswxnaQfcYVK4WEMKpMUT2Yy09Eano1w,15393
|
|
65
|
+
pboot_validator/_internal/_validate_call.py,sha256=GvGnf2WTPBm8g6X9U3RyMvL5o9y5K846kdK5CQ_QPhk,5369
|
|
66
|
+
pboot_validator/_internal/_validators.py,sha256=rzL9cA6vY0i2oqoNrFUGHNfDFYPzUMJbKrPJUodVAZA,21008
|
|
67
|
+
pboot_validator/deprecated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
68
|
+
pboot_validator/deprecated/class_validators.py,sha256=c4Enq1yr1NIZipGEqLQw0s9L0JY2LZyDlgatpCiXfWg,10303
|
|
69
|
+
pboot_validator/deprecated/config.py,sha256=xMQiycBOkJjCnPURdaxmjmmUn_Km9qIbxE9yK8-IYms,2691
|
|
70
|
+
pboot_validator/deprecated/copy_internals.py,sha256=Ghd-vkMd5EYCCgyCGtPKO58np9cEKBQC6qkBeIEFI2g,7618
|
|
71
|
+
pboot_validator/deprecated/decorator.py,sha256=HJj2JgqbNJ8pL-0mir6qOJldX2QLkFXJZjQ1nztj80E,10879
|
|
72
|
+
pboot_validator/deprecated/json.py,sha256=9Epyf5cq1b-dc0hz2jJ453v669WzE6Y8IJZnrp2joEg,4669
|
|
73
|
+
pboot_validator/deprecated/parse.py,sha256=bv0BjbgoocyvB47LcJw6nZNbm6Hsx_Qnno_LCajH4rU,2538
|
|
74
|
+
pboot_validator/deprecated/tools.py,sha256=UlLVJibyt6EXMTzPhrRdFCI9aN7UMvrNN4tRyLTJOu0,3399
|
|
75
|
+
pboot_validator/experimental/__init__.py,sha256=QT7rKYdDsCiTJ9GEjmsQdWHScwpKrrNkGq6vqONP6RQ,104
|
|
76
|
+
pboot_validator/experimental/arguments_schema.py,sha256=8CRBBPn-dkQM2Wmika3hmnMlnxHrwGVoA8Sn3RljT68,1880
|
|
77
|
+
pboot_validator/experimental/missing_sentinel.py,sha256=QbQMTCvWIi_UYlURHbQshmplpKQjg8yVVlS0FVJylBM,845
|
|
78
|
+
pboot_validator/experimental/pipeline.py,sha256=LxI_I3CftDiGsMdHOmUl3Ia8TUQQIbrFZ9IyAYaheSQ,24976
|
|
79
|
+
pboot_validator/plugin/__init__.py,sha256=hePBuAM9nZgK8ua6PC_dl3vqTYPfK3Ib3B601DHx7Rc,7270
|
|
80
|
+
pboot_validator/plugin/_loader.py,sha256=rFfNOxOxzYFcPrdal_N-IZ-BAUZLATDSHTmHIcaDahA,2122
|
|
81
|
+
pboot_validator/plugin/_schema_validator.py,sha256=apxHmKZDHwVXmGXzpespl5X0qHz0WyitilFm01G0ZNM,5829
|
|
82
|
+
pboot_validator/v1/__init__.py,sha256=q92tqE19t2Y5AG2JUbudGJT27R0Lua6PhWwYQtTdS6g,3065
|
|
83
|
+
pboot_validator/v1/_hypothesis_plugin.py,sha256=ovXPEbVyNkBAma3EFREBjb0SI-_suBCwoshJ8cxbkzs,15253
|
|
84
|
+
pboot_validator/v1/annotated_types.py,sha256=n5J9OfaaIBo0oSVhF5XqzXofJ1muGs-DRD_lpIB4--w,3178
|
|
85
|
+
pboot_validator/v1/class_validators.py,sha256=3VCwR7WEJrTt-meUsj29EtA_5JXG2USvXKnW6yOO7yE,14721
|
|
86
|
+
pboot_validator/v1/color.py,sha256=yUSyiuZ4dBVB5xdJMOkWIgbyeqbDMGGpwodZYbBzlFM,16865
|
|
87
|
+
pboot_validator/v1/config.py,sha256=esUonNt9svojmSJc1M6gDJ7ik3r7w5Wh8heExgbl7u8,6567
|
|
88
|
+
pboot_validator/v1/dataclasses.py,sha256=c2ALheZGK7MNsOTHlQqV8LcRg5Q6T5MYCaFRJzdMAno,18449
|
|
89
|
+
pboot_validator/v1/datetime_parse.py,sha256=IzQrjpIOBwJ15EQCZlLXwX9jUX6XJEM9VQhINkSO4nA,7735
|
|
90
|
+
pboot_validator/v1/decorator.py,sha256=Wgh__SJuDCE5rVMAGKit-o-wEftheOqiu6kPNklSptY,10388
|
|
91
|
+
pboot_validator/v1/env_settings.py,sha256=Qfql7_5xktto4Wl_2KfiEgIslpghvxc62gN9USFNACA,14147
|
|
92
|
+
pboot_validator/v1/error_wrappers.py,sha256=VM3SlQO5D9DyYvDFB0e22tNQrdGONjcECs4iZFA7Gdo,5231
|
|
93
|
+
pboot_validator/v1/errors.py,sha256=DzmRJ5r70XeGr0-X--My75YLltg2PU_n7XIN4OqunI4,17747
|
|
94
|
+
pboot_validator/v1/fields.py,sha256=2kj8Y_wamYPhLgKfU-SxF28FYUlcIKpAawxVL9oCxyE,50751
|
|
95
|
+
pboot_validator/v1/generics.py,sha256=kFR4Si13pWLZqlQNHCH4IeHLWYjYMOk4eJ6n5bbjUCk,17878
|
|
96
|
+
pboot_validator/v1/json.py,sha256=TepRC9mCy-mstH8zK-b_k_IFAHK5NeYlQFVda6JoqZI,3418
|
|
97
|
+
pboot_validator/v1/main.py,sha256=8XsWuRbikwxKT_Kg95IdsF-wlYqifh_IUZhQJngre80,45809
|
|
98
|
+
pboot_validator/v1/mypy.py,sha256=ZWqb7mA2DEmDbFTcuZExiTGfbuGFnJ1h5d7ylvjapKk,38940
|
|
99
|
+
pboot_validator/v1/networks.py,sha256=APM0aWmV387UgogDP_I-KM6K_rsQaf0-tC-8N7_uNCU,22166
|
|
100
|
+
pboot_validator/v1/parse.py,sha256=V9fjyNyJGSR61QNLIW2KnhK1VTtcJJOAdwjkob8F0Zo,1828
|
|
101
|
+
pboot_validator/v1/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
102
|
+
pboot_validator/v1/schema.py,sha256=G1rEFle8t6nvSvNw5TztpVPXOFxjf5cwcqtc5jN6mzo,47885
|
|
103
|
+
pboot_validator/v1/tools.py,sha256=GgqCFnxqVFNlcROBJmfnu_3kpcibg1OzIncMKqYeWhk,2916
|
|
104
|
+
pboot_validator/v1/types.py,sha256=U8iIAda6ZB_IsE76kO3Fm4mk_f_iK741Izs2_sKJuP0,35849
|
|
105
|
+
pboot_validator/v1/typing.py,sha256=f5lbwzyZobTEC4MF5kRpFFETm1oixbv3BwytQ4BCpM0,20123
|
|
106
|
+
pboot_validator/v1/utils.py,sha256=D2k8_Zbsvp7pojKrITpJplB505iq1yuq0ZHwzbaz4vE,26084
|
|
107
|
+
pboot_validator/v1/validators.py,sha256=Nhjekg1BR55jFPmpaOnl3n1Xrz5FF601nkeaNDfNVl8,22257
|
|
108
|
+
pboot_validator/v1/version.py,sha256=51ZPNC7FcsbAGRl-p2_vbJ0-bKUtjtwc6hiKrBoG4ZA,1039
|
|
109
|
+
pboot_validator-1.0.0.dist-info/METADATA,sha256=KA30r2_LGdT1Un20oDAdrpHoO2SiW2tmjnIb_MHE6WM,3670
|
|
110
|
+
pboot_validator-1.0.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
111
|
+
pboot_validator-1.0.0.dist-info/licenses/LICENSE,sha256=qeGG88oWte74QxjnpwFyE1GgDLe4rjpDlLZ7SeNSnvM,1129
|
|
112
|
+
pboot_validator-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 to present Pydantic Services Inc. and individual contributors.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|