pydantic
Python 타입 힌트를 사용한 데이터 유효성 검사
파일 탐색기
최종 버전 다운로드 (.zip)- SKILL.md
- action.yml
- action.yml
- people.py
- pylock.toml
- requirements.in
- bug-v1.yml
- bug-v2.yml
- config.yml
- feature_request.yml
- pylock.314.toml
- requirements.in
- ci.yml
- codspeed.yml
- coverage.yml
- dependencies-check.yml
- docs-update.yml
- enforce-issue-assignment.yml
- integration.yml
- third-party.yml
- update-pydantic-people.yml
- upload-previews.yml
- dependabot.yml
- FUNDING.yml
- PULL_REQUEST_TEMPLATE.md
- release.yml
- zizmor.yml
- accept.txt
- repeatedWords.yml
- .vale.ini
- style_guide_test.md
- aliases.md
- annotated_handlers.md
- base_model.md
- config.md
- dataclasses.md
- errors.md
- experimental.md
- fields.md
- functional_serializers.md
- functional_validators.md
- json_schema.md
- networks.md
- pydantic_core.md
- pydantic_core_schema.md
- pydantic_extra_types_color.md
- pydantic_extra_types_coordinate.md
- pydantic_extra_types_country.md
- pydantic_extra_types_currency_code.md
- pydantic_extra_types_isbn.md
- pydantic_extra_types_language_code.md
- pydantic_extra_types_mac_address.md
- pydantic_extra_types_payment.md
- pydantic_extra_types_pendulum_dt.md
- pydantic_extra_types_phone_numbers.md
- pydantic_extra_types_routing_numbers.md
- pydantic_extra_types_script_code.md
- pydantic_extra_types_semantic_version.md
- pydantic_extra_types_timezone_name.md
- pydantic_extra_types_ulid.md
- pydantic_settings.md
- root_model.md
- standard_library_types.md
- type_adapter.md
- types.md
- validate_call.md
- version.md
- v1.json
- v2.json
- alias.md
- config.md
- conversion_table.md
- dataclasses.md
- experimental.md
- fields.md
- forward_annotations.md
- json.md
- json_schema.md
- models.md
- performance.md
- pydantic_settings.md
- serialization.md
- strict_mode.md
- type_adapter.md
- types.md
- unions.md
- validation_decorator.md
- validators.md
- errors.md
- troubleshooting.md
- usage_errors.md
- validation_errors.md
- custom_validators.md
- dynamic_models.md
- files.md
- orms.md
- pydantic_ai.md
- queues.md
- requests.md
- algolia.js
- feedback.js
- fluff.js
- mathjax.js
- terminal.css
- tweaks.css
- basic_logfire.png
- logfire-pydantic-integration.png
- logfire-validation-error-explained.png
- logfire-validation-error-trace.png
- logfire-validation-live-view.png
- logfire_instrument.png
- logfire_span.png
- pyrefly.png
- rich_pydantic.png
- vs_code_01.png
- vs_code_02.png
- vs_code_03.png
- vs_code_04.png
- vs_code_05.png
- vs_code_06.png
- vs_code_07.png
- vs_code_08.png
- aws_lambda.md
- datamodel_code_generator.md
- devtools.md
- documentation.md
- hypothesis.md
- linting.md
- llms.md
- logfire.md
- mypy.md
- pycharm.md
- pyrefly.md
- rich.md
- visual_studio_code.md
- architecture.md
- resolving_annotations.md
- adobe_logo.png
- amazon_logo.png
- anthropic_logo.png
- apple_logo.png
- asml_logo.png
- astrazeneca_logo.png
- capital_one_logo.png
- cisco_logo.png
- comcast_logo.png
- datadog_logo.png
- facebook_logo.png
- github_logo.png
- google_logo.png
- hsbc_logo.png
- ibm_logo.png
- intel_logo.png
- intuit_logo.png
- ipcc_logo.png
- jpmorgan_logo.png
- jupyter_logo.png
- microsoft_logo.png
- molssi_logo.png
- nasa_logo.png
- netflix_logo.png
- nsa_logo.png
- nvidia_logo.png
- openai_logo.png
- oracle_logo.png
- palantir_logo.png
- qualcomm_logo.png
- redhat_logo.png
- revolut_logo.png
- robusta_logo.png
- salesforce_logo.png
- starbucks_logo.png
- ti_logo.png
- twilio_logo.png
- twitter_logo.png
- ukhomeoffice_logo.png
- algolia.py
- conversion_table.py
- devtools_output.html
- main.py
- orgs.toml
- people.yml
- schema_mappings.toml
- using.toml
- using_update.py
- search.html
- announce.html
- main.html
- contributing.md
- favicon.png
- help_with_pydantic.md
- index.md
- install.md
- logo-white.svg
- migration.md
- pydantic_people.md
- version-policy.md
- why.md
- __init__.py
- _config.py
- _core_metadata.py
- _core_utils.py
- _dataclasses.py
- _decorators.py
- _decorators_v1.py
- _discriminated_union.py
- _docs_extraction.py
- _fields.py
- _forward_ref.py
- _generate_schema.py
- _generics.py
- _git.py
- _import_utils.py
- _known_annotated_metadata.py
- _mock_val_ser.py
- _model_construction.py
- _namespace_utils.py
- _repr.py
- _schema_gather.py
- _schema_generation_shared.py
- _serializers.py
- _signature.py
- _type_refs.py
- _typing_extra.py
- _utils.py
- _validate_call.py
- _validators.py
- __init__.py
- class_validators.py
- config.py
- copy_internals.py
- decorator.py
- json.py
- parse.py
- tools.py
- __init__.py
- arguments_schema.py
- missing_sentinel.py
- pipeline.py
- __init__.py
- _loader.py
- _schema_validator.py
- __init__.py
- _hypothesis_plugin.py
- annotated_types.py
- class_validators.py
- color.py
- config.py
- dataclasses.py
- datetime_parse.py
- decorator.py
- env_settings.py
- error_wrappers.py
- errors.py
- fields.py
- generics.py
- json.py
- main.py
- mypy.py
- networks.py
- parse.py
- py.typed
- schema.py
- tools.py
- types.py
- typing.py
- utils.py
- validators.py
- version.py
- __init__.py
- _migration.py
- alias_generators.py
- aliases.py
- annotated_handlers.py
- class_validators.py
- color.py
- config.py
- dataclasses.py
- datetime_parse.py
- decorator.py
- env_settings.py
- error_wrappers.py
- errors.py
- fields.py
- functional_serializers.py
- functional_validators.py
- generics.py
- json.py
- json_schema.py
- main.py
- mypy.py
- networks.py
- parse.py
- py.typed
- root_model.py
- schema.py
- tools.py
- type_adapter.py
- types.py
- typing.py
- utils.py
- validate_call_decorator.py
- validators.py
- version.py
- warnings.py
- config.toml
- main.rs
- __init__.py
- _pydantic_core.pyi
- core_schema.py
- py.typed
- missing_sentinel.rs
- mod.rs
- prebuilt.rs
- union.rs
- line_error.rs
- location.rs
- mod.rs
- types.rs
- validation_exception.rs
- value_exception.rs
- datetime.rs
- input_abstract.rs
- input_json.rs
- input_python.rs
- input_string.rs
- mod.rs
- return_enums.rs
- shared.rs
- any.rs
- bytes.rs
- complex.rs
- dataclass.rs
- datetime_etc.rs
- decimal.rs
- definitions.rs
- dict.rs
- ellipsis.rs
- enum_.rs
- float.rs
- format.rs
- fraction.rs
- function.rs
- generator.rs
- json.rs
- json_or_python.rs
- list.rs
- literal.rs
- missing_sentinel.rs
- mod.rs
- model.rs
- named_tuple.rs
- nullable.rs
- other.rs
- set_frozenset.rs
- simple.rs
- string.rs
- timedelta.rs
- tuple.rs
- typed_dict.rs
- union.rs
- url.rs
- uuid.rs
- with_default.rs
- computed_fields.rs
- config.rs
- errors.rs
- extra.rs
- fields.rs
- filter.rs
- infer.rs
- mod.rs
- ob_type.rs
- polymorphism_trampoline.rs
- prebuilt.rs
- ser.rs
- shared.rs
- lookup_tree.rs
- mod.rs
- any.rs
- arguments.rs
- arguments_v3.rs
- bool.rs
- bytes.rs
- call.rs
- callable.rs
- chain.rs
- complex.rs
- config.rs
- custom_error.rs
- dataclass.rs
- date.rs
- datetime.rs
- decimal.rs
- definitions.rs
- dict.rs
- ellipsis.rs
- enum_.rs
- float.rs
- fraction.rs
- frozenset.rs
- function.rs
- generator.rs
- int.rs
- is_instance.rs
- is_subclass.rs
- json.rs
- json_or_python.rs
- lax_or_strict.rs
- list.rs
- literal.rs
- missing_sentinel.rs
- mod.rs
- model.rs
- model_fields.rs
- named_tuple.rs
- none.rs
- nullable.rs
- prebuilt.rs
- set.rs
- string.rs
- time.rs
- timedelta.rs
- tuple.rs
- typed_dict.rs
- union.rs
- url.rs
- uuid.rs
- validation_state.rs
- with_default.rs
- argument_markers.rs
- build_tools.rs
- definitions.rs
- lib.rs
- lookup_key.rs
- py_gc.rs
- recursion_guard.rs
- self_schema.py
- tools.rs
- url.rs
- __init__.py
- complete_schema.py
- nested_schema.py
- test_complete_benchmark.py
- test_micro_benchmarks.py
- test_nested_benchmark.py
- test_serialization_micro.py
- __init__.py
- test_any.py
- test_bytes.py
- test_complex.py
- test_core_schema_as_ser_schema.py
- test_dataclasses.py
- test_datetime.py
- test_decimal.py
- test_definitions.py
- test_definitions_recursive.py
- test_dict.py
- test_enum.py
- test_format.py
- test_functions.py
- test_generator.py
- test_infer.py
- test_json.py
- test_json_or_python.py
- test_list_tuple.py
- test_literal.py
- test_model.py
- test_model_root.py
- test_none.py
- test_nullable.py
- test_other.py
- test_pickling.py
- test_serialize_as_any.py
- test_set_frozenset.py
- test_simple.py
- test_string.py
- test_timedelta.py
- test_typed_dict.py
- test_union.py
- test_url.py
- test_uuid.py
- __init__.py
- test_alias.py
- test_build_errors.py
- test_extra.py
- test_general.py
- test_keyword_only.py
- test_positional_only.py
- test_positional_or_keyword.py
- test_var_args.py
- test_var_kwargs_uniform.py
- test_var_kwargs_unpacked_typed_dict.py
- __init__.py
- test_allow_partial.py
- test_arguments.py
- test_bool.py
- test_bytes.py
- test_call.py
- test_callable.py
- test_chain.py
- test_complex.py
- test_custom_error.py
- test_dataclasses.py
- test_date.py
- test_datetime.py
- test_decimal.py
- test_definitions.py
- test_definitions_recursive.py
- test_dict.py
- test_enums.py
- test_float.py
- test_frozenset.py
- test_function.py
- test_generator.py
- test_int.py
- test_is_instance.py
- test_is_subclass.py
- test_json.py
- test_json_or_python.py
- test_lax_or_strict.py
- test_list.py
- test_literal.py
- test_model.py
- test_model_fields.py
- test_model_init.py
- test_model_root.py
- test_none.py
- test_nullable.py
- test_pickling.py
- test_set.py
- test_string.py
- test_tagged_union.py
- test_time.py
- test_timedelta.py
- test_tuple.py
- test_typed_dict.py
- test_union.py
- test_url.py
- test_uuid.py
- test_with_default.py
- __init__.py
- conftest.py
- test.rs
- test_build.py
- test_config.py
- test_custom_errors.py
- test_docstrings.py
- test_errors.py
- test_garbage_collection.py
- test_hypothesis.py
- test_isinstance.py
- test_json.py
- test_misc.py
- test_prebuilt.py
- test_schema_functions.py
- test_typing.py
- test_tzinfo.py
- index.html
- README.md
- run_tests.py
- worker.js
- .codecov.yml
- .gitignore
- .mypy-stubtest-allowlist
- .pre-commit-config.yaml
- .rustfmt.toml
- build.rs
- Cargo.lock
- Cargo.toml
- LICENSE
- Makefile
- pyproject.toml
- README.md
- uv.lock
- prepare.py
- push.py
- README.md
- shared.py
- __init__.py
- basemodel_eq_performance.py
- generate_north_star_data.py
- shared.py
- test_attribute_access.py
- test_discriminated_unions.py
- test_fastapi_startup_generics.py
- test_fastapi_startup_simple.py
- test_imports.py
- test_isinstance.py
- test_model_eq.py
- test_model_schema_generation.py
- test_model_schema_generation_recursive.py
- test_model_serialization.py
- test_model_validation.py
- test_north_star.py
- test_regex.py
- test_validators_build.py
- mypy-default.ini
- mypy-plugin-strict-no-any.ini
- mypy-plugin-strict.ini
- mypy-plugin-unknown-param.ini
- mypy-plugin-very-strict.ini
- mypy-plugin.ini
- pyproject-default.toml
- pyproject-plugin-bad-param.toml
- pyproject-plugin-no-strict-optional.toml
- pyproject-plugin-strict-equality.toml
- pyproject-plugin-strict.toml
- pyproject-plugin-unknown-param.toml
- pyproject-plugin.toml
- config_conditional_extra.py
- covariant_typevar.py
- create_model_var.py
- custom_constructor.py
- dataclass_no_any.py
- decorator_implicit_classmethod.py
- fail_defaults.py
- final_with_default.py
- from_orm_v1_noconflict.py
- frozen_field.py
- generics.py
- metaclass_args.py
- no_strict_optional.py
- plugin_fail.py
- plugin_fail_baseConfig.py
- plugin_no_any_dynamic_alias.py
- plugin_optional_inheritance.py
- plugin_strict_fields.py
- plugin_success.py
- plugin_success_baseConfig.py
- pydantic_settings.py
- root_models.py
- strict_equality.py
- metaclass_args.py
- plugin_success.py
- plugin_success_baseConfig.py
- pydantic_settings.py
- root_models.py
- plugin_no_any_dynamic_alias.py
- fail_defaults.py
- plugin_fail.py
- plugin_fail_baseConfig.py
- plugin_success.py
- plugin_success_baseConfig.py
- metaclass_args.py
- create_model_var.py
- custom_constructor.py
- decorator_implicit_classmethod.py
- frozen_field.py
- plugin_fail.py
- plugin_fail_baseConfig.py
- plugin_optional_inheritance.py
- plugin_strict_fields.py
- pydantic_settings.py
- root_models.py
- pydantic_settings.py
- root_models.py
- strict_equality.py
- fail_defaults.py
- plugin_fail.py
- plugin_fail_baseConfig.py
- plugin_success.py
- plugin_success_baseConfig.py
- decorator_implicit_classmethod.py
- plugin_fail.py
- plugin_fail_baseConfig.py
- pydantic_settings.py
- __init__.py
- README.md
- test_mypy.py
- example_plugin.py
- pyproject.toml
- test_plugin.py
- base_model.py
- computed_field.py
- decorators.py
- fields.py
- json_schema_examples.py
- misc.py
- pipeline_api.py
- pyproject.toml
- README.md
- root_model.py
- secret.py
- type_adapter.py
- validate_call.py
- with_config_decorator.py
- __init__.py
- test_discriminated_union.py
- test_union.py
- __init__.py
- test_bool.py
- test_bytes.py
- test_complex.py
- test_counter.py
- test_date.py
- test_datetime.py
- test_decimal.py
- test_defaultdict.py
- test_deque.py
- test_dict.py
- test_ellipsis.py
- test_enum.py
- test_float.py
- test_fraction.py
- test_frozenset.py
- test_int.py
- test_iterable.py
- test_list.py
- test_literal.py
- test_mapping.py
- test_model.py
- test_namedtuple.py
- test_none.py
- test_ordered_dict.py
- test_path.py
- test_pattern.py
- test_sequence.py
- test_set.py
- test_str.py
- test_time.py
- test_timedelta.py
- test_tuple.py
- test_uuid.py
- __init__.py
- conftest.py
- pydantic_core
- test_abc.py
- test_aliases.py
- test_allow_partial.py
- test_annotated.py
- test_assert_in_validators.py
- test_callable.py
- test_color.py
- test_computed_fields.py
- test_config.py
- test_construction.py
- test_create_model.py
- test_dataclasses.py
- test_datetime.py
- test_decorators.py
- test_deferred_annotations.py
- test_deprecated.py
- test_deprecated_fields.py
- test_deprecated_validate_arguments.py
- test_docs.py
- test_docs_extraction.py
- test_dunder_all.py
- test_edge_cases.py
- test_errors.py
- test_experimental_arguments_schema.py
- test_exports.py
- test_fields.py
- test_forward_ref.py
- test_generics.py
- test_internal.py
- test_json.py
- test_json_schema.py
- test_main.py
- test_meta.py
- test_migration.py
- test_missing_sentinel.py
- test_model_signature.py
- test_model_validator.py
- test_networks.py
- test_networks_ipaddress.py
- test_parse.py
- test_pickle.py
- test_pipeline.py
- test_plugin_loader.py
- test_plugins.py
- test_private_attributes.py
- test_pydantic_extra_types.sh
- test_pydantic_settings.sh
- test_rich_repr.py
- test_root_model.py
- test_serialize.py
- test_serialize_as_any.py
- test_strict.py
- test_structural_pattern_matching.py
- test_titles.py
- test_tools.py
- test_type_adapter.py
- test_type_alias_type.py
- test_type_hints.py
- test_types.py
- test_types_payment_card_number.py
- test_types_self.py
- test_types_typeddict.py
- test_types_zoneinfo.py
- test_typing.py
- test_utils.py
- test_v1.py
- test_validate_call.py
- test_validation_context.py
- test_validators.py
- test_validators_dataclass.py
- test_version.py
- test_warnings.py
- utils.py
- .git-blame-ignore-revs
- .gitignore
- .markdownlint.yaml
- .pre-commit-config.yaml
- .yamlfmt.yaml
- build-docs.sh
- CITATION.cff
- CONTRIBUTING.md
- HISTORY.md
- LICENSE
- Makefile
- mkdocs.yml
- pyproject.toml
- README.md
- update_v1.sh
- uv.lock
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/pydantic/pydantic
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd pydantic
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Python
쉬움 추천사전 준비물
pip install .
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
python <실행할 파일명>.py # README에서 정확한 실행 파일명을 확인하세요
파이썬 스크립트(또는 모듈)를 실행합니다.
에러 메시지 없이 실행되고 터미널에 안내 문구가 출력되면 정상입니다.
3. Rust
보통사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Rust (rustup) rustup으로 설치하면 cargo도 함께 설치됩니다.
cd pydantic-core
이 프로젝트의 관련 파일이 하위 폴더 안에 있어서, 먼저 그 폴더로 이동합니다.
cargo build --release
Rust 프로젝트를 컴파일합니다.
cargo run
빌드 후 바로 실행까지 진행합니다.
cargo build가 에러 없이 끝나면 성공입니다. target/ 폴더에 실행 파일이 생성됩니다.
4. Make
보통사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Make Linux/macOS는 보통 기본 설치되어 있습니다. Windows는 별도 설치(예: MSYS2, WSL)가 필요합니다.
make
생성된 빌드 설정을 바탕으로 실제 컴파일을 진행해 실행 파일을 만듭니다.
에러 없이 끝나면 성공입니다. 생성된 실행 파일을 직접 실행해보세요.
// repository documentation
Was this content helpful?
(0 ratings)
