{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/10"},{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/2"}],"enrichment":{"capability":"Adds Pydantic model validation to Flask route handlers, automatically parsing and validating query parameters, request bodies, form data, and URL path parameters.","skillfed_tags":["request-validation","type-checking"],"use_cases":["Validate incoming JSON request bodies against Pydantic models before processing in POST/PUT endpoints","Enforce type checking and required fields on query parameters without manual parsing or try-catch blocks","Parse and validate URL path parameters (e.g., `/users/<user_id>`) as typed integers or other Pydantic-supported types","Combine validation of query, body, and form data in a single route handler with clear type hints","Automatically serialize Pydantic model instances back to JSON responses with optional field aliasing"],"what_it_does":"Flask-Pydantic is a Flask extension that bridges Flask request handling with Pydantic's validation framework. It provides a `@validate()` decorator that intercepts incoming HTTP requests, extracts parameters from query strings, request bodies, form data, and URL paths, validates them against Pydantic models, and makes the validated data available to your route handler either through function arguments or via Flask's request object.\n\nThe decorator automatically returns a 400 response with detailed validation errors if any parameter fails validation. It supports customizing success status codes, handling multiple models in responses or request bodies, and leverages Pydantic's alias feature for field name mapping. The package depends on Flask, Pydantic, and typing_extensions, making it a lightweight addition to existing Flask applications that already use Pydantic.","worth_installing":"Yes, with conditions. Install if you are building Flask applications that already use Pydantic and want to reduce boilerplate around request validation. The low install friction, permissive license, and backing from the Pallets Community Ecosystem make it a safe choice. However, note that maintenance is aging (235 days since last release); verify compatibility with your specific Flask and Pydantic versions before adopting."},"id":"flask-pydantic","links":{"html":"https://skillfed.io/packages/flask-pydantic","md":"https://skillfed.io/packages/flask-pydantic.md","pypi":"https://pypi.org/project/flask-pydantic/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-12-22","license_spdx":null,"license_treatment":"permissive","name":"Flask-Pydantic","python_support":"supports_current","summary":"Flask extension for integration with Pydantic library."},"popularity":{"monthly_downloads":635560,"position":5636,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.14.0"}
