Ravenports generated: 10 Feb 2024 22:55
[ravenports.git] / bucket_C6 / python-graphene-django
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               python-graphene-django
4 VERSION=                3.2.0
5 KEYWORDS=               python
6 VARIANTS=               v11 v12
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]
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            PYPIWHL/24/4b/f81a01cf52fd1e81d0926d1261a28b8f9b5d3f095dc4fafd8c87949d39ad
14 DISTFILE[1]=            graphene_django-3.2.0-py2.py3-none-any.whl:main
15 DF_INDEX=               1
16 SPKGS[v11]=             single
17 SPKGS[v12]=             single
18
19 OPTIONS_AVAILABLE=      PY311 PY312
20 OPTIONS_STANDARD=       none
21 VOPTS[v11]=             PY311=ON PY312=OFF
22 VOPTS[v12]=             PY311=OFF PY312=ON
23
24 DISTNAME=               graphene_django-3.2.0.dist-info
25
26 GENERATED=              yes
27
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
35
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
43
44 [FILE:2763:descriptions/desc.single]
45 # ![Graphene Logo] Graphene-Django
46
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]
51
52 [build-image]:
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/
57 [coveralls-image]:
58 https://coveralls.io/repos/github/graphql-python/graphene-django/badge.svg?branch=master
59 [coveralls-url]:
60 https://coveralls.io/github/graphql-python/graphene-django?branch=master
61 [conda-image]:
62 https://img.shields.io/conda/vn/conda-forge/graphene-django.svg
63 [conda-url]: https://anaconda.org/conda-forge/graphene-django
64
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.
70
71 ## Features
72
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
80
81 ## Installation
82
83 To install Graphene-Django, run the following command:
84
85 ```
86 pip install graphene-django
87 ```
88
89 ## Configuration
90
91 After installation, add 'graphene_django' to your Django project's
92 `INSTALLED_APPS` list and define the GraphQL schema in your project's
93 settings:
94
95 ```python
96 INSTALLED_APPS = [
97     # ...
98     'graphene_django',
99 ]
100
101 GRAPHENE = {
102     'SCHEMA': 'myapp.schema.schema'
103 }
104 ```
105
106 ## Usage
107
108 To use Graphene-Django, create a `schema.py` file in your Django app
109 directory and define your GraphQL types and queries:
110
111 ```python
112 import graphene
113 from graphene_django import DjangoObjectType
114 from .models import MyModel
115
116 class MyModelType(DjangoObjectType):
117     class Meta:
118         model = MyModel
119
120 class Query(graphene.ObjectType):
121     mymodels = graphene.List(MyModelType)
122
123     def resolve_mymodels(self, info, **kwargs):
124         return MyModel.objects.all()
125
126 schema = graphene.Schema(query=Query)
127 ```
128
129 Then, expose the GraphQL API in your Django project's `urls.py` file:
130
131 ```python
132 from django.urls import path
133 from graphene_django.views import GraphQLView
134 from . import schema
135
136 urlpatterns = [
137     # ...
138     path('graphql/', GraphQLView.as_view(graphiql=True)), # Given that
139 schema path is defined in GRAPHENE['SCHEMA'] in your settings.py
140 ]
141 ```
142
143 ## Testing
144
145
146
147 [FILE:121:distinfo]
148 b553ecdc1cd7fd5b2d71de1a729c03ae117321763a90ed48a7fb4fdbf7f0d43f       113766 graphene_django-3.2.0-py2.py3-none-any.whl
149