# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= python-graphene-django VERSION= 3.2.2 KEYWORDS= python VARIANTS= v12 v13 SDESC[v12]= Graphene Django integration (3.12) SDESC[v13]= Graphene Django integration (3.13) HOMEPAGE= https://github.com/graphql-python/graphene-django CONTACT= Python_Automaton[python@ironwolf.systems] DOWNLOAD_GROUPS= main SITES[main]= PYPIWHL/da/71/6800d05144ee4fb57f471571dd80fc9c6b2196e6243d39ed3d3654082824 DISTFILE[1]= graphene_django-3.2.2-py2.py3-none-any.whl:main DIST_SUBDIR= python-src DF_INDEX= 1 SPKGS[v12]= single SPKGS[v13]= single OPTIONS_AVAILABLE= PY312 PY313 OPTIONS_STANDARD= none VOPTS[v12]= PY312=ON PY313=OFF VOPTS[v13]= PY312=OFF PY313=ON DISTNAME= graphene_django-3.2.2.dist-info GENERATED= yes [PY312].RUN_DEPENDS_ON= python-graphene:single:v12 python-graphql-core:single:v12 python-graphql-relay:single:v12 python-Django:single:v12 python-promise:single:v12 python-text-unidecode:single:v12 [PY312].USES_ON= python:v12,wheel [PY313].RUN_DEPENDS_ON= python-graphene:single:v13 python-graphql-core:single:v13 python-graphql-relay:single:v13 python-Django:single:v13 python-promise:single:v13 python-text-unidecode:single:v13 [PY313].USES_ON= python:v13,wheel [FILE:2765:descriptions/desc.single] # ![Graphene Logo] Graphene-Django [![build][build-image]][build-url] [![pypi][pypi-image]][pypi-url] [![Anaconda-Server Badge][conda-image]][conda-url] [![coveralls][coveralls-image]][coveralls-url] [build-image]: https://github.com/graphql-python/graphene-django/workflows/Tests/badge.svg [build-url]: https://github.com/graphql-python/graphene-django/actions [pypi-image]: https://img.shields.io/pypi/v/graphene-django.svg?style=flat [pypi-url]: https://pypi.org/project/graphene-django/ [coveralls-image]: https://coveralls.io/repos/github/graphql-python/graphene-django/badge.svg?branch=master [coveralls-url]: https://coveralls.io/github/graphql-python/graphene-django?branch=master [conda-image]: https://img.shields.io/conda/vn/conda-forge/graphene-django.svg [conda-url]: https://anaconda.org/conda-forge/graphene-django Graphene-Django is an open-source library that provides seamless integration between Django, a high-level Python web framework, and Graphene, a library for building GraphQL APIs. The library allows developers to create GraphQL APIs in Django quickly and efficiently while maintaining a high level of performance. ## Features * Seamless integration with Django models * Automatic generation of GraphQL schema * Integration with Django's authentication and permission system * Easy querying and filtering of data * Support for Django's pagination system * Compatible with Django's form and validation system * Extensive documentation and community support ## Installation To install Graphene-Django, run the following command: ```sh pip install graphene-django ``` ## Configuration After installation, add 'graphene_django' to your Django project's `INSTALLED_APPS` list and define the GraphQL schema in your project's settings: ```python INSTALLED_APPS = [ # ... 'graphene_django', ] GRAPHENE = { 'SCHEMA': 'myapp.schema.schema' } ``` ## Usage To use Graphene-Django, create a `schema.py` file in your Django app directory and define your GraphQL types and queries: ```python import graphene from graphene_django import DjangoObjectType from .models import MyModel class MyModelType(DjangoObjectType): class Meta: model = MyModel class Query(graphene.ObjectType): mymodels = graphene.List(MyModelType) def resolve_mymodels(self, info, **kwargs): return MyModel.objects.all() schema = graphene.Schema(query=Query) ``` Then, expose the GraphQL API in your Django project's `urls.py` file: ```python from django.urls import path from graphene_django.views import GraphQLView from . import schema urlpatterns = [ # ... path('graphql/', GraphQLView.as_view(graphiql=True)), # Given that schema path is defined in GRAPHENE['SCHEMA'] in your settings.py ] ``` ## Testing [FILE:132:distinfo] 0fd95c8c1cbe77ae2a5940045ce276803c3acbf200a156731e0c730f2776ae2c 114204 python-src/graphene_django-3.2.2-py2.py3-none-any.whl