{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/5"}],"enrichment":{"capability":"Converts Pydantic models into GraphQL object types and input types for use with Graphene, enabling you to build GraphQL APIs from your existing Pydantic validation schemas.","skillfed_tags":["graphql-integration","schema-generation"],"use_cases":["Build a GraphQL API from existing Pydantic models without redefining types in Graphene.","Create GraphQL input types for mutations that accept Pydantic model data.","Extend auto-generated GraphQL types with custom resolve functions for computed fields.","Rapidly prototype GraphQL services where Pydantic validation and GraphQL schema are kept in sync.","Handle forward declarations and circular model references in GraphQL schemas."],"what_it_does":"graphene-pydantic is a bridge between Pydantic and Graphene that lets you define GraphQL schemas directly from your Pydantic models. Instead of writing separate GraphQL type definitions, you annotate your Pydantic model and wrap it in a PydanticObjectType or PydanticInputObjectType, and the package generates the corresponding GraphQL types automatically. This is useful when you already have Pydantic models for validation and want to expose them via GraphQL without duplicating type definitions.\n\nThe package supports both output types (for queries) and input types (for mutations), field exclusion, custom resolve functions, and forward declarations with circular references. It inherits from Graphene's ObjectType, so you can extend generated types with custom fields and resolvers. Known limitations include inability to handle GraphQL-incompatible Pydantic fields like mappings (dictionaries) and some caveats around union types and Python version compatibility.","worth_installing":"Yes. The package is actively maintained, has low install friction, carries a permissive license, and solves a real problem for teams already using Pydantic. It supports current Python versions (3.8\u20133.12) and has no known vulnerabilities. Install it if you're building GraphQL APIs on top of existing Pydantic models and want to avoid duplicating type definitions."},"id":"graphene-pydantic","links":{"html":"https://skillfed.io/packages/graphene-pydantic","md":"https://skillfed.io/packages/graphene-pydantic.md","pypi":"https://pypi.org/project/graphene-pydantic/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-02-01","license_spdx":null,"license_treatment":"permissive","name":"graphene-pydantic","python_support":"supports_current","summary":"Graphene Pydantic integration"},"popularity":{"monthly_downloads":501910,"position":6312,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.6.1"}
