Add support for promise-based dataloaders and resolvers to graphql-core v3+
Project description
Graphql core promise
Add support for promise-based dataloaders and resolvers to graphql-core v3+. This aims to make migrating to graphene 3 and graphql-core 3 easier for existing projects.
Usage
This package provides an ExecuteContext that can be used as a drop-in replacement for the default one.
from graphql_core_promise import PromiseExecutionContext
from graphql.execution.execute import execute
execute(schema=..., document=..., execution_context_class=PromiseExecutionContext)
With Django
graphene-django's GraphqlView accepts a execution_context_class argument in the constructor. Or you can specify it as a class variable when subclassing.
For example:
view = GraphQLView.as_view(execution_context_class=PromiseExecutionContext)
# OR
class MyGraphQLView(GraphQLView):
execution_context_class = PromiseExecutionContext
Note that this project requires graphene-django 3, which is not fully compatible with graphene-django 2.
How it works
This packages is done by translating the asyncio code in the default ExecuteContext into promise based code.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file graphql_core_promise-3.4.0.tar.gz.
File metadata
- Download URL: graphql_core_promise-3.4.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff52a4437def3b0f822da9cce67adecb9e8f7e543a3b78a79e16cb436b6e47a1
|
|
| MD5 |
9ee94fd9a196f2e2844eee0e15fed646
|
|
| BLAKE2b-256 |
1e60078def376197a5de737769e0f9e299e79db55ae0a7c6818732c4360b3907
|
Provenance
The following attestation bundles were made for graphql_core_promise-3.4.0.tar.gz:
Publisher:
release.yml on fellowapp/graphql-core-promise
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
graphql_core_promise-3.4.0.tar.gz -
Subject digest:
ff52a4437def3b0f822da9cce67adecb9e8f7e543a3b78a79e16cb436b6e47a1 - Sigstore transparency entry: 173827181
- Sigstore integration time:
-
Permalink:
fellowapp/graphql-core-promise@477a7e6c04c4eb8bec23ebb019acf1ec5e2fff74 -
Branch / Tag:
refs/tags/v3.4.0 - Owner: https://github.com/fellowapp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@477a7e6c04c4eb8bec23ebb019acf1ec5e2fff74 -
Trigger Event:
release
-
Statement type:
File details
Details for the file graphql_core_promise-3.4.0-py3-none-any.whl.
File metadata
- Download URL: graphql_core_promise-3.4.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5d6a80df6347aedfdf28f29d14233db6660738d172774f6b2c950020edbb0ee
|
|
| MD5 |
70204e19f51cefec50a3026bfc70d025
|
|
| BLAKE2b-256 |
21f8e8796bb5397eaed12cc929ef3a457fe4766bb5abbef8a860bf0717c72d3c
|
Provenance
The following attestation bundles were made for graphql_core_promise-3.4.0-py3-none-any.whl:
Publisher:
release.yml on fellowapp/graphql-core-promise
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
graphql_core_promise-3.4.0-py3-none-any.whl -
Subject digest:
e5d6a80df6347aedfdf28f29d14233db6660738d172774f6b2c950020edbb0ee - Sigstore transparency entry: 173827183
- Sigstore integration time:
-
Permalink:
fellowapp/graphql-core-promise@477a7e6c04c4eb8bec23ebb019acf1ec5e2fff74 -
Branch / Tag:
refs/tags/v3.4.0 - Owner: https://github.com/fellowapp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@477a7e6c04c4eb8bec23ebb019acf1ec5e2fff74 -
Trigger Event:
release
-
Statement type: