Enhanced Strawberry GraphQL integration with Django
Project description
strawberry-django-plus
Enhanced Strawberry integration with Django.
Built on top of strawberry-django integration, enhancing its overall functionality.
Check the docs for information on how to use this lib.
Features
- All supported features by
strawberry
andstrawberry-django
, with proper typing and documentation. - Query optimizer extension
that automatically optimizes querysets
(using
only
/select_related
/prefetch_related
) to solve graphqlN+1
problems, with support for fragment spread, inline fragments,@include
/@skip
directives, prefetch merging, etc - Django choices enums using support for better enum typing (requires django-choices-field)
- Permissioned resolvers using schema directives, supporting both django authentication system, direct and per-object permission checking for backends that implement those (e.g. django-guardian).
- Mutations for Django, with CRUD support and automatic errors validation.
- Relay support for queries, connections and input mutations, using the official strawberry's relay integration
- Django Debug Toolbar integration with graphiql to display metrics like SQL queries
- Improved sync/async resolver that priorizes the model's cache to avoid have to use sync_to_async when not needed.
Installation
pip install strawberry-django-plus
Licensing
The code in this project is licensed under MIT license. See LICENSE for more information.
Stats
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file strawberry_django_plus-3.0.2.tar.gz
.
File metadata
- Download URL: strawberry_django_plus-3.0.2.tar.gz
- Upload date:
- Size: 52.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.0 Linux/5.15.0-1040-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc56b831e2ab8b77bb25172dc0dcad3b8ecbb4e3192e99ab6b5ce20668146cd3 |
|
MD5 | 9595f146c86a0ab3e3497de60dd5490b |
|
BLAKE2b-256 | c74aa6f92641c284124f011ca6cc5e2cc84bf781cdb9008421598311ac380c95 |
File details
Details for the file strawberry_django_plus-3.0.2-py3-none-any.whl
.
File metadata
- Download URL: strawberry_django_plus-3.0.2-py3-none-any.whl
- Upload date:
- Size: 62.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.0 Linux/5.15.0-1040-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f857e73345386b29915daae7019116f212ba4e9e4752396482f109c44b20360 |
|
MD5 | 09c21cd6646669d3921d0bc4b2c6fe2b |
|
BLAKE2b-256 | c853e83ead641021cc4a616620b07657b05b016c4c6ddebcc6e427237025a9c2 |