pydantic-core
pydantic-core copied to clipboard
Core validation logic for pydantic written in rust
When I use the procedure in the README to build pydantic-core, the build fails. The issue can be reproduced in the following way: ``` git clone -b v2.16.1 https://github.com/pydantic/pydantic-core.git cd...
**Describe the bug** When constructing validation errors using `ValidationError.from_exception_data`, this fails when the error type is `ip_v4_address`.It will raise: ``` KeyError: "Invalid error type: 'ip_v4_address' ``` **To Reproduce** Run the...
When building pydantic-code for Fedora Linux with Python 3.13.0a3, one of the tests fails. re.Error has been renamed to PatternError: https://docs.python.org/dev/whatsnew/3.13.html#re ``` ________________________ test_invalid_regex[python-re] _________________________ engine = 'python-re' @pytest.mark.parametrize('engine', [None,...
@samuelcolvin @dmontagu we discussed this previously and I shot it down because just implementing what we have in pydantic in Rust would not be much faster (aside from the speedup...
`Enum` validation is one of the last common std lib types that’s still implemented in Python, and it'd be better to move it to rust.
When I create a `pydantic_core.Url` with password as empty string as follow (similar with `MultiHostUrl`): ```py uri = pydantic_core.Url.build( scheme="clickhouse", username="user", password="", host="localhost", port=8123, path="ch_db", ) print(uri.__str__()) ``` I expected...
This PR tries to solve this pydantic [issue](https://github.com/pydantic/pydantic/issues/7307) . In my work I use objects of the type `np.ndarray` or `pd.DataFrame` a lot and excluding the defaults values has been...
Tried to install a python package using command: `pip3 install ./pydantic_core[any of x86_64] `but everytime I get this error:` [filename] is not a supported wheel on this platform. ` my...
Adding a description to pyproject.toml will display this package nicer on the Python Package Index (PyPI) and listing tools like `poetry show`. I suggest "Provides the core functionality for pydantic...
Lazy loaded orm fields are loaded inadvertently by `model_validate` (which calls `validate_python`). I'd like to be able to exclude fields from `model_validate`. Previously discussed here https://github.com/pydantic/pydantic/discussions/6861. > With the release...