1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-graphene-django
7 SDESC[v11]= Graphene Django integration (3.11)
8 SDESC[v12]= Graphene Django integration (3.12)
9 HOMEPAGE= https://github.com/graphql-python/graphene-django
10 CONTACT= Python_Automaton[python@ironwolf.systems]
13 SITES[main]= PYPIWHL/24/4b/f81a01cf52fd1e81d0926d1261a28b8f9b5d3f095dc4fafd8c87949d39ad
14 DISTFILE[1]= graphene_django-3.2.0-py2.py3-none-any.whl:main
19 OPTIONS_AVAILABLE= PY311 PY312
20 OPTIONS_STANDARD= none
21 VOPTS[v11]= PY311=ON PY312=OFF
22 VOPTS[v12]= PY311=OFF PY312=ON
24 DISTNAME= graphene_django-3.2.0.dist-info
28 [PY311].RUN_DEPENDS_ON= python-graphene:single:v11
29 python-graphql-core:single:v11
30 python-graphql-relay:single:v11
31 python-Django:single:v11
32 python-promise:single:v11
33 python-text-unidecode:single:v11
34 [PY311].USES_ON= python:v11,wheel
36 [PY312].RUN_DEPENDS_ON= python-graphene:single:v12
37 python-graphql-core:single:v12
38 python-graphql-relay:single:v12
39 python-Django:single:v12
40 python-promise:single:v12
41 python-text-unidecode:single:v12
42 [PY312].USES_ON= python:v12,wheel
44 [FILE:2763:descriptions/desc.single]
45 # ![Graphene Logo] Graphene-Django
47 [![build][build-image]][build-url]
48 [![pypi][pypi-image]][pypi-url]
49 [![Anaconda-Server Badge][conda-image]][conda-url]
50 [![coveralls][coveralls-image]][coveralls-url]
53 https://github.com/graphql-python/graphene-django/workflows/Tests/badge.svg
54 [build-url]: https://github.com/graphql-python/graphene-django/actions
55 [pypi-image]: https://img.shields.io/pypi/v/graphene-django.svg?style=flat
56 [pypi-url]: https://pypi.org/project/graphene-django/
58 https://coveralls.io/repos/github/graphql-python/graphene-django/badge.svg?branch=master
60 https://coveralls.io/github/graphql-python/graphene-django?branch=master
62 https://img.shields.io/conda/vn/conda-forge/graphene-django.svg
63 [conda-url]: https://anaconda.org/conda-forge/graphene-django
65 Graphene-Django is an open-source library that provides seamless
66 integration between Django, a high-level Python web framework, and
67 Graphene, a library for building GraphQL APIs. The library allows
68 developers to create GraphQL APIs in Django quickly and efficiently while
69 maintaining a high level of performance.
73 * Seamless integration with Django models
74 * Automatic generation of GraphQL schema
75 * Integration with Django's authentication and permission system
76 * Easy querying and filtering of data
77 * Support for Django's pagination system
78 * Compatible with Django's form and validation system
79 * Extensive documentation and community support
83 To install Graphene-Django, run the following command:
86 pip install graphene-django
91 After installation, add 'graphene_django' to your Django project's
92 `INSTALLED_APPS` list and define the GraphQL schema in your project's
102 'SCHEMA': 'myapp.schema.schema'
108 To use Graphene-Django, create a `schema.py` file in your Django app
109 directory and define your GraphQL types and queries:
113 from graphene_django import DjangoObjectType
114 from .models import MyModel
116 class MyModelType(DjangoObjectType):
120 class Query(graphene.ObjectType):
121 mymodels = graphene.List(MyModelType)
123 def resolve_mymodels(self, info, **kwargs):
124 return MyModel.objects.all()
126 schema = graphene.Schema(query=Query)
129 Then, expose the GraphQL API in your Django project's `urls.py` file:
132 from django.urls import path
133 from graphene_django.views import GraphQLView
138 path('graphql/', GraphQLView.as_view(graphiql=True)), # Given that
139 schema path is defined in GRAPHENE['SCHEMA'] in your settings.py
148 b553ecdc1cd7fd5b2d71de1a729c03ae117321763a90ed48a7fb4fdbf7f0d43f 113766 graphene_django-3.2.0-py2.py3-none-any.whl