{"full_name":"pydantic/pydantic","owner":"pydantic","name":"pydantic","shard":"1","url":"https://github.com/pydantic/pydantic","description":"Data validation using Python type hints","homepage":"https://pydantic.dev/docs/validation","topics":["validation","parsing","json-schema","pydantic","python","hints","python310","python311","python312","python313","python314"],"tag_pages":["json-schema","parsing","pydantic","python","validation"],"language":"Python","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/110818415?v=4","created_at":"2017-05-03T21:23:58Z","pushed_at":"2026-11-15T11:59:29Z","metrics":{"stars":29513,"forks":3177,"watchers":183,"issues":5833,"prs":5936,"releases":207,"issues_open":558,"issues_closed":5275,"prs_open":51,"prs_closed":1540,"prs_merged":4345,"discussions":2248},"growth":{"day":{"stars":16,"forks":4,"base_day":"2026-11-15"},"week":{"stars":235,"forks":54,"base_day":"2026-11-04"},"month":{"stars":515,"forks":151,"base_day":"2026-10-17"}},"history":{"dates":["2026-09-06","2026-09-07","2026-09-08","2026-09-09","2026-09-10","2026-09-11","2026-09-12","2026-09-13","2026-09-14","2026-09-15","2026-09-16","2026-09-17","2026-09-18","2026-09-19","2026-09-20","2026-09-21","2026-09-22","2026-09-23","2026-09-24","2026-09-25","2026-09-26","2026-09-27","2026-09-28","2026-09-29","2026-09-30","2026-10-01","2026-10-02","2026-10-03","2026-10-04","2026-10-05","2026-10-06","2026-10-07","2026-10-08","2026-10-09","2026-10-10","2026-10-11","2026-10-12","2026-10-13","2026-10-14","2026-10-15","2026-10-16","2026-10-17","2026-10-18","2026-10-19","2026-10-20","2026-10-21","2026-10-22","2026-10-23","2026-10-24","2026-10-25","2026-10-26","2026-10-27","2026-10-28","2026-10-29","2026-10-30","2026-10-31","2026-11-01","2026-11-02","2026-11-03","2026-11-04","2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[28607,28614,28625,28639,28649,28659,28663,28681,28693,28707,28715,28721,28735,28739,28750,28754,28756,28761,28770,28777,28781,28809,28821,28833,28844,28848,28855,28869,28875,28886,28892,28898,28919,28925,28931,28943,28947,28953,28959,28963,28972,28998,29012,29024,29042,29058,29072,29096,29109,29124,29138,29152,29165,29198,29209,29224,29226,29239,29269,29278,29419,29445,29473,29486,29485,29497,29513],"forks":[2893,2898,2900,2905,2905,2906,2911,2908,2914,2916,2918,2921,2930,2933,2936,2935,2940,2941,2947,2949,2951,2954,2959,2964,2969,2979,2982,2988,2993,2995,3001,3003,3010,3008,3011,3016,3018,3020,3021,3023,3026,3026,3032,3035,3038,3042,3045,3049,3054,3061,3067,3073,3074,3085,3088,3093,3099,3104,3120,3123,3159,3161,3163,3162,3167,3173,3177],"watchers":[160,160,159,159,159,159,161,165,165,165,166,167,170,170,170,170,170,171,175,175,177,177,177,178,178,178,179,179,179,179,180,180,178,178,178,178,178,178,178,178,178,179,179,179,179,179,179,180,180,180,179,179,174,174,175,175,176,178,178,178,null,null,180,181,181,181,183],"issues_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,555,555,555,557,558],"prs_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,49,49,49,52,51]},"boards":{"daily_watchers":160},"same_owner":[{"full_name":"pydantic/FastUI","name":"FastUI","shard":"1","boards":{}},{"full_name":"pydantic/monty","name":"monty","shard":"1","boards":{}}],"issues":[{"number":8379,"title":"More consistent and intuitive `alias` behavior for validation and serialization","comments":37,"created_at":"2023-12-15T18:30:43Z"},{"number":7186,"title":"AnyUrl adds trailing slash","comments":35,"created_at":"2023-08-21T09:34:15Z"},{"number":8279,"title":"Custom type adapters","comments":31,"created_at":"2023-12-01T14:25:47Z"},{"number":7457,"title":"Decimals are json-dumped as strings","comments":31,"created_at":"2023-09-15T08:13:38Z"},{"number":9731,"title":"Add support for `typing.Never`","comments":29,"created_at":"2024-06-22T15:53:27Z"},{"number":7161,"title":"JSON Schema for optional fields is incorrect.","comments":29,"created_at":"2023-08-17T09:05:08Z"},{"number":5893,"title":"Present Field Name Rather Than Alias When Using Intellisense","comments":29,"created_at":"2023-05-26T20:18:05Z"},{"number":8271,"title":"OpenAPI discriminator field disapeared with pydantic v2.5","comments":28,"created_at":"2023-12-01T08:42:42Z"}],"discussions":[{"number":14252,"title":"Matrix Globe — Pydantic proof bundles for executable agent code reviews","comments":0,"category":"Projects using Pydantic","created_at":"2026-11-07T10:16:48Z"},{"number":14190,"title":"Binding MCP read-back receipts to expected IDs with ValidationInfo.context","comments":0,"category":"Projects using Pydantic","created_at":"2026-11-02T11:09:10Z"},{"number":14086,"title":"Show and tell: sysflow-mcp — Real-time process telemetry, resource throttling & system metrics for agent runtimes","comments":0,"category":"Projects using Pydantic","created_at":"2026-10-27T01:19:07Z"},{"number":14078,"title":"Shareable traces for validated field assignment and recovery","comments":0,"category":"Projects using Pydantic","created_at":"2026-10-26T06:00:06Z"},{"number":14045,"title":"recall-pydantic-ai: long-term memory for Pydantic AI agents, with corrections","comments":2,"category":"Projects using Pydantic","created_at":"2026-10-21T20:53:04Z"},{"number":13910,"title":"Pass value into PrivateAttr inside custom __init__","comments":1,"category":"Question","created_at":"2026-10-01T18:28:47Z"},{"number":13839,"title":"Windows CPython 3.13: intermittent access violation during nested model_dump — diagnostic guidance","comments":3,"category":"Question","created_at":"2026-09-20T16:00:12Z"},{"number":13811,"title":"Feat: Add fallback to default value on validation error in Field()","comments":1,"category":"Feature Request","created_at":"2026-09-15T15:59:41Z"}],"latest_release":{"name":"v2.14.3 2026-11-04","tag":"v2.14.3","published_at":"2026-11-05T09:18:07Z","body":"## v2.14.3 (2026-11-04)\r\n\r\n### What's Changed\r\n\r\n#### Packaging\r\n\r\n* Build wheels for GraalPy 3.13 by @msimacek in [#14136](https://github.com/pydantic/pydantic/pull/14136).\r\n\r\n  The previous v2.14.2 release published GraalPy 3.11 wheels, which were not working due to a PyO3 version bump. A CI workflow issue made it so that the wheel wasn't tested before publishing. This is now fixed: starting in v2.14.3, we no longer publish GraalPy 3.11 wheels, and GraalPy 3.13 wheels are now published together with the existing 3.12 one.\r\n\r\n#### Performance\r\n\r\n* Improve schema generation for fixed type handlers by @alexmojaki in [#14130](https://github.com/pydantic/pydantic/pull/14130)\r\n* Skip general schema dispatch for builtin scalars by @alexmojaki in [#14141](https://github.com/pydantic/pydantic/pull/14141)\r\n* Skip annotation handler setup when annotations are empty by @alexmojaki in [#14149](https://github.com/pydantic/pydantic/pull/14149)\r\n* Fix quadratic serialization time with per-index `include`/`exclude` on sequences by @Viicos in [#14160](https://github.com/pydantic/pydantic/pull/14160)\r\n* Avoid type lookups when checking for `None` during serialization by @Viicos in [#14167](https://github.com/pydantic/pydantic/pull/14167)\r\n* Improve performance of model serialization by @Viicos in [#14171](https://github.com/pydantic/pydantic/pull/14171)\r\n* Improve performance of dict serialization by @Viicos in [#14172](https://github.com/pydantic/pydantic/pull/14172)\r\n* Improve performance of type inference during serialization by @Viicos in [#14173](https://github.com/pydantic/pydantic/pull/14173)\r\n* Avoid cloning the field name when using the default value during validation by @Viicos in [#14175](https://github.com/pydantic/pydantic/pull/14175)\r\n* Do not evaluate `model_config` annotations by @Viicos in [#14195](https://github.com/pydantic/pydantic/pull/14195)\r\n* Avoid slow runtime `Protocol` check when expanding `GroupedMetadata` annotations by @Viicos in [#14196](https://github.com/pydantic/pydantic/pull/14196)\r\n* Use a lightweight `@contextmanager` implementation internally by @Viicos in [#14199](https://github.com/pydantic/pydantic/pull/14199)\r\n\r\n#### Fixes\r\n\r\n* Fix various issues about GC tracking in `pydantic-core` by @Viicos in [#13819](https://github.com/pydantic/pydantic/pull/13819)\r\n* Include `null` in serialization JSON Schema for `unless-none` field serializers by @Kropiunig in [#13848](https://github.com/pydantic/pydantic/pull/13848)\r\n* Fix `RecursionError` when copying or unpickling models with `defer_build` by @Viicos in [#14115](https://github.com/pydantic/pydantic/pull/14115)\r\n* Remove dead `default_factory` check in unsupported `Field()` attribute by @owtaylor in [#14129](https://github.com/pydantic/pydantic/pull/14129)\r\n* Disallow non string extra keys during validation by @Viicos in [#14135](https://github.com/pydantic/pydantic/pull/14135)\r\n* Fix deeply nested data being reported as a cyclic reference by @Viicos in [#14164](https://github.com/pydantic/pydantic/pull/14164)\r\n\r\n### New Contributors\r\n\r\n* @owtaylor made their first contribution in [#14129](https://github.com/pydantic/pydantic/pull/14129)\r\n","is_prerelease":false},"readme":true,"readme_zh":false,"news":[{"title":"MCP Run Python","url":"https://github.com/pydantic/pydantic-ai/tree/main/mcp-run-python","hn":"https://news.ycombinator.com/item?id=43691230","source":"Hacker News","lang":"en","date":"2025-04-15","points":173,"comments":66},{"title":"JSON extra uses orjson instead of ujson (2019)","url":"https://github.com/pydantic/pydantic/pull/599","hn":"https://news.ycombinator.com/item?id=40591644","source":"Hacker News","lang":"en","date":"2024-06-05","points":69,"comments":16},{"title":"Agent Framework / shim to use Pydantic with LLMs","url":"https://github.com/pydantic/pydantic-ai","hn":"https://news.ycombinator.com/item?id=42296890","source":"Hacker News","lang":"en","date":"2024-12-02","points":7,"comments":3},{"title":"Pydantic 2.0","url":"https://github.com/pydantic/pydantic","hn":"https://news.ycombinator.com/item?id=36538467","source":"Hacker News","lang":"en","date":"2023-06-30","points":6,"comments":3},{"title":"Pydantic 2 rewritten in Rust was merged","url":"https://github.com/pydantic/pydantic/pull/4516","hn":"https://news.ycombinator.com/item?id=33457482","source":"Hacker News","lang":"en","date":"2022-11-03","points":4,"comments":2},{"title":"Pydantic AI","url":"https://github.com/pydantic/pydantic-ai","hn":"https://news.ycombinator.com/item?id=42311498","source":"Hacker News","lang":"en","date":"2024-12-03","points":3,"comments":0},{"title":"PydanticAI using Ollama (llama3.2) running locally","url":"https://github.com/pydantic/pydantic-ai/issues/112","hn":"https://news.ycombinator.com/item?id=42344943","source":"Hacker News","lang":"en","date":"2024-12-06","points":2,"comments":3},{"title":"GitHub secret scanning — coverage update","url":"https://github.blog/changelog/2026-03-31-github-secret-scanning-nine-new-types-and-more/","source":"github","lang":"en","date":"2026-03-31"},{"title":"Python data validator Pydantic launches model-agnostic AI agent development platform","url":"https://venturebeat.com/programming-development/python-data-validator-pydantic-launches-model-agnostic-ai-agent-development-platform/","source":"VentureBeat","lang":"en","date":"2024-12-04"},{"title":"Sequoia backs Pydantic to expand beyond its open source data-validation framework","url":"https://techcrunch.com/2024/10/01/sequoia-backs-pydantic-to-expand-beyond-its-open-source-data-validation-framework/","source":"TechCrunch","lang":"en","date":"2024-10-01"},{"title":"Sequoia backs open source data-validation framework Pydantic to commercialize with cloud services","url":"https://techcrunch.com/2023/02/16/sequoia-backs-open-source-data-validation-framework-pydantic-to-commercialize-with-cloud-services/","source":"TechCrunch","lang":"en","date":"2023-02-16"},{"title":"Secret scanning upgrades detectors, adds SpaceX as partner","url":"https://news.google.com/rss/articles/CBMioAFBVV95cUxNa0poNGdVR0wtWS1qR08tOFc1NmFvWkhVbC1IUS03X3VTdHhvNlpoY3FCYTdodmlLeG85M0hRa0s0VGNCU1JoY1Ata05Qd2ItalREQW1zd1MwQWVyN1F0UHlQZDEwR250X0syTzBCQW40WEhLaWlXWktmN3pJcE5hOWpTa0xqeWpaYURHT0FvMXhLRGdjeEVYeGxLMlg5S2t3?oc=5","source":"The GitHub Blog","lang":"en","date":"2026-11-05"},{"title":"Introducing Strands Box: AI agent sandboxes powered by Dogwood","url":"https://news.google.com/rss/articles/CBMipAFBVV95cUxNWlRHaWNGcWpmUkd6d2JfYjNFVDAzYmVnX1duOHVtWHFWaG9TMFg0Y0psWFQ4TkEyb2czVDJiS0p6Z1J6akxVak1ELWRqcjY4RHMwVVFxSXQyeFZkNzlCbXo2NEo0bkRLVEFaTlk1YU1aa0V1Zy0ya2FxYVVONm1nRnFlOUJoQU1fMkxjRGJZdXRkVWY3OFhRVzVfWkJlUTN0VWxUZQ?oc=5","source":"Amazon Web Services (AWS)","lang":"en","date":"2026-10-07"},{"title":"The creator of Walmart's vibe-coding tool Code Puppy is leaving for AI startup Pydantic","url":"https://news.google.com/rss/articles/CBMinwFBVV95cUxNeU1ueTFXR2cyVEZxaTczTzVDRk9ZTzZZWEpoSWRBQ09vNHBhVUN6MVlvN01nQ3pmd09kVFFMTGtuTnU4RDdMRkR3RzVsWTNrd1lIaU00dzUzbm1IZ2Y1akE2TGxKR1hna1ZPUFJMZzBvc1ZRbk56RXNPbG9jUnFKNEs0eEF2eW9JOFU1R3pTeFlFQ1VTVFQ3aHdvOHpmclk?oc=5","source":"Business Insider","lang":"en","date":"2026-08-03"},{"title":"2026 年最火的九个 Python 库","url":"https://news.google.com/rss/articles/CBMiU0FVX3lxTE9CUHd3Z0VycmYzaGJNVFlZd1hzYVBHUnE1RXd1ZlBrZDJVclBGSXNjOGdneUd3M2ZEeEtHSWpGSFhUSzM3TVBjSkRiVHFaUk9lVGRJ?oc=5","source":"51CTO","lang":"zh","date":"2026-04-07"},{"title":"Cerebras","url":"https://news.google.com/rss/articles/CBMiTkFVX3lxTE5fUHlwbGVndUhUVjZlSzl1cGs5R2dFSkh4RXh2Y1l6eXBqLTdhLVQzQXV0a2pieUd6bGN4VkEwWU1hWkVhMGlXYks3NUlKUQ?oc=5","source":"Cerebras","lang":"en","date":"2026-04-06"},{"title":"60个精选Skills、工作流与开源项目，最全Claude进阶清单","url":"https://news.google.com/rss/articles/CBMiS0FVX3lxTE5zU2tGTURERHJZNWRkQlFZVl83RmNRZGMxZ1dHUTFfUjU3MUdOXzBxblVLQ21GRXM0cF8xRzZKWE1vNWh0VENZbnlXTQ?oc=5","source":"www.me.news","lang":"zh","date":"2026-03-30"},{"title":"12 Python Libraries You Need to Try in 2026","url":"https://news.google.com/rss/articles/CBMieEFVX3lxTE1hZG1FRXNTTE5INC1WM0ZxVVRkT3B0R2FDOEp0YzhQSDZSMkY1bUQ3Zjc5V2QyMGY2cEwxUEgyQ0I1cjZoSUpEdU5keW82TVpoSEV6TU5QNlVham0yUE5ORnRtMmpFR0EwRjRlbDZ4WHFpR3pYandIaA?oc=5","source":"KDnuggets","lang":"en","date":"2026-02-13"}],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}