pydantic-core

    Core validation logic for pydantic written in rust

    Language: rust

    Author: Carol Terry (@thecarol)

    9 stars · 387 views

    Files

    • test_garbage_collection.py (py)
    • test_validation_context.py (py)
    • config.toml (toml)
    • action.yml (yml)
    • .pre-commit-config.yaml (yaml)
    • _pydantic_core.pyi (pyi)
    • __init__.py (py)
    • package.json (json)
    • LICENSE (LICENSE)
    • build_tools.rs (rs)
    • union.rs (rs)
    • location.rs (rs)
    • types.rs (rs)
    • validation_exception.rs (rs)
    • value_exception.rs (rs)
    • return_enums.rs (rs)
    • recursion_guard.rs (rs)
    • any.rs (rs)
    • datetime_etc.rs (rs)
    • dataclass.rs (rs)
    • generator.rs (rs)
    • function.rs (rs)
    • mod.rs (rs)
    • literal.rs (rs)
    • list.rs (rs)
    • tuple.rs (rs)
    • typed_dict.rs (rs)
    • arguments_v3.rs (rs)
    • date.rs (rs)
    • decimal.rs (rs)
    • datetime.rs (rs)
    • definitions.rs (rs)
    • enum_.rs (rs)
    • function.rs (rs)
    • dict.rs (rs)
    • string.rs (rs)
    • conftest.py (py)
    • test_nested_benchmark.py (py)
    • timedelta.rs (rs)
    • tuple.rs (rs)
    • typed_dict.rs (rs)
    • test_dataclasses.py (py)
    • test_list_tuple.py (py)
    • test_model_root.py (py)
    • test_model.py (py)
    • test_serialize_as_any.py (py)
    • test_typed_dict.py (py)
    • test_simple.py (py)
    • test_errors.py (py)
    • test_schema_functions.py (py)
    • test_misc.py (py)
    • test_prebuilt.py (py)
    • test_json.py (py)
    • test_definitions_recursive.py (py)
    • test_date.py (py)
    • test_model_root.py (py)
    • test_set.py (py)
    • test_string.py (py)
    • test_build.py (py)
    • float.rs (rs)
    • none.rs (rs)
    • set.rs (rs)
    • emscripten_runner.js (js)
    • test_infer.py (py)
    • test_docstrings.py (py)
    • test_keyword_only.py (py)
    • test_positional_only.py (py)
    • test_enums.py (py)
    • test_lax_or_strict.py (py)
    • worker.js (js)
    • .gitignore (gitignore)
    • .codecov.yml (yml)
    • ci.yml (yml)
    • Makefile (Makefile)
    • README.md (md)
    • build.rs (rs)
    • definitions.rs (rs)
    • datetime.rs (rs)
    • self_schema.py (py)
    • config.rs (rs)
    • errors.rs (rs)
    • infer.rs (rs)
    • prebuilt.rs (rs)
    • test_model_fields.py (py)
    • .cargo (cargo)
    • .github (github)
    • actions (actions)
    • build-pgo-wheel (build-pgo-wheel)
    • workflows (workflows)
    • main.rs (rs)
    • benches (benches)
    • python (python)
    • pydantic_core (pydantic_core)
    • py.typed (typed)
    • src (src)
    • common (common)
    • mod.rs (rs)
    • errors (errors)
    • input_string.rs (rs)
    • input_abstract.rs (rs)
    • input (input)
    • input_json.rs (rs)
    • input_python.rs (rs)
    • lookup_key.rs (rs)
    • shared.rs (rs)
    • lib.rs (rs)
    • serializers (serializers)
    • extra.rs (rs)
    • fields.rs (rs)
    • type_serializers (type_serializers)
    • computed_fields.rs (rs)
    • filter.rs (rs)
    • ob_type.rs (rs)
    • simple.rs (rs)
    • union.rs (rs)
    • validators (validators)
    • tools.rs (rs)
    • list.rs (rs)
    • literal.rs (rs)
    • model.rs (rs)
    • model_fields.rs (rs)
    • uuid.rs (rs)
    • complete_schema.py (py)
    • union.rs (rs)
    • test_micro_benchmarks.py (py)
    • url.rs (rs)
    • test_complete_benchmark.py (py)
    • tests (tests)
    • __init__.py (py)
    • benchmarks (benchmarks)
    • __init__.py (py)
    • validation_state.rs (rs)
    • with_default.rs (rs)
    • serializers (serializers)
    • __init__.py (py)
    • test_any.py (py)
    • test_bytes.py (py)
    • test_datetime.py (py)
    • test_definitions.py (py)
    • test_set_frozenset.py (py)
    • test_timedelta.py (py)
    • test_config.py (py)
    • test_strict.py (py)
    • test_typing.py (py)
    • test_tzinfo.py (py)
    • validators (validators)
    • __init__.py (py)
    • arguments_v3 (arguments_v3)
    • __init__.py (py)
    • test_call.py (py)
    • test_decimal.py (py)
    • test_datetime.py (py)
    • test_float.py (py)
    • test_function.py (py)
    • test_frozenset.py (py)
    • test_generator.py (py)
    • test_int.py (py)
    • test_is_instance.py (py)
    • test_is_subclass.py (py)
    • test_json_or_python.py (py)
    • test_literal.py (py)
    • test_list.py (py)
    • test_model.py (py)
    • test_typed_dict.py (py)
    • test_time.py (py)
    • test_timedelta.py (py)
    • test_uuid.py (py)
    • uv.lock (lock)
    • test_url.py (py)
    • test_with_default.py (py)
    • test_tagged_union.py (py)
    • test_tuple.py (py)
    • wasm-preview (wasm-preview)
    • test_union.py (py)
    • callable.rs (rs)
    • json_or_python.rs (rs)
    • test_decimal.py (py)
    • test_model_init.py (py)
    • run_tests.py (py)
    • any.rs (rs)
    • test_uuid.py (py)
    • test_complex.py (py)
    • nullable.rs (rs)
    • mod.rs (rs)
    • with_default.rs (rs)
    • mod.rs (rs)
    • test_other.py (py)
    • missing_sentinel.rs (rs)
    • prebuilt.rs (rs)
    • test_pickling.py (py)
    • test_url.py (py)
    • ser.rs (rs)
    • test_generator.py (py)
    • argument_markers.rs (rs)
    • test_chain.py (py)
    • mod.rs (rs)
    • codspeed.yml (yml)
    • json.rs (rs)
    • test_hypothesis.py (py)
    • test_isinstance.py (py)
    • test_general.py (py)
    • test_bool.py (py)
    • test_json.py (py)
    • test_format.py (py)
    • other.rs (rs)
    • chain.rs (rs)
    • test_custom_errors.py (py)
    • missing_sentinel.rs (rs)
    • test_bytes.py (py)
    • test_none.py (py)
    • test_nullable.py (py)
    • index.html (html)
    • bytes.rs (rs)
    • url.rs (rs)
    • arguments.rs (rs)
    • url.rs (rs)
    • test_enum.py (py)
    • uuid.rs (rs)
    • prebuilt.rs (rs)
    • nullable.rs (rs)
    • config.rs (rs)
    • is_subclass.rs (rs)
    • missing_sentinel.rs (rs)
    • call.rs (rs)
    • format.rs (rs)
    • test_alias.py (py)
    • test_complex.py (py)
    • line_error.rs (rs)
    • py_gc.rs (rs)
    • test_json.py (py)
    • decimal.rs (rs)
    • float.rs (rs)
    • test_pickling.py (py)
    • bool.rs (rs)
    • test.rs (rs)
    • nested_schema.py (py)
    • complex.rs (rs)
    • time.rs (rs)
    • README.md (md)
    • check_version.py (py)
    • json.rs (rs)
    • Cargo.lock (lock)
    • test_nullable.py (py)
    • test_string.py (py)
    • PULL_REQUEST_TEMPLATE.md (md)
    • .mypy-stubtest-allowlist (mypy-stubtest-allowlist)
    • .rustfmt.toml (toml)
    • Cargo.toml (toml)
    • pyproject.toml (toml)
    • core_schema.py (py)
    • mod.rs (rs)
    • shared.rs (rs)
    • bytes.rs (rs)
    • definitions.rs (rs)
    • dict.rs (rs)
    • enum_.rs (rs)
    • json_or_python.rs (rs)
    • model.rs (rs)
    • set_frozenset.rs (rs)
    • string.rs (rs)
    • timedelta.rs (rs)
    • complex.rs (rs)
    • custom_error.rs (rs)
    • dataclass.rs (rs)
    • frozenset.rs (rs)
    • generator.rs (rs)
    • int.rs (rs)
    • is_instance.rs (rs)
    • lax_or_strict.rs (rs)
    • test_serialization_micro.py (py)
    • test_definitions_recursive.py (py)
    • test_dict.py (py)
    • test_functions.py (py)
    • test_none.py (py)
    • test_json_or_python.py (py)
    • test_literal.py (py)
    • test_positional_or_keyword.py (py)
    • test_union.py (py)
    • test_validate_strings.py (py)
    • test_build_errors.py (py)
    • test_extra.py (py)
    • test_var_args.py (py)
    • test_var_kwargs_uniform.py (py)
    • test_var_kwargs_unpacked_typed_dict.py (py)
    • test_allow_partial.py (py)
    • test_arguments.py (py)
    • test_callable.py (py)
    • test_custom_error.py (py)
    • test_dataclasses.py (py)
    • test_definitions.py (py)
    • test_dict.py (py)
    • ATTRIBUTION.md (markdown)

    Loading code snippet…