Skip to main content

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.

Metadata

Release files for graphql-core-promise-inofficial 3.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for graphql-core-promise-inofficial 3.3.1
File Size Uploaded Provenance Actions
graphql_core_promise_inofficial-3.3.1.tar.gz 10.8 kB Without provenance Details for graphql_core_promise_inofficial-3.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for graphql-core-promise-inofficial 3.3.1
File Interpreter ABI Platform Actions
graphql_core_promise_inofficial-3.3.1-py3-none-any.whl Python 3 none any Details for graphql_core_promise_inofficial-3.3.1-py3-none-any.whl

Total release size: 18.3 kB

Release files / graphql_core_promise_inofficial-3.3.1.tar.gz

Download URL graphql_core_promise_inofficial-3.3.1.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
18b5da1dbdee723c9bcca539939dbe8bde6bc856c2b966fcd7714217e176b244
BLAKE2b-256 checksum
How to use checksums
f8d179834324b80a02186f0930245af9ecbb8e5419bb734e6e83be3d3c630d26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / graphql_core_promise_inofficial-3.3.1-py3-none-any.whl

Download URL graphql_core_promise_inofficial-3.3.1-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b083597b777b7691a03bfe41d4756750464d4cb04df6f8f0cca3eade05d61d36
BLAKE2b-256 checksum
How to use checksums
f12e0e356aed792e3a8334a78af6aab69617a7a7c25cc178fd41c61ef5808af6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Security for graphql-core-promise-inofficial 3.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.3.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page