Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

GraphQL support for the bareASGI framework

Project description

bareASGI-graphql-next

Graphql support for bareASGI (read the documentation)

The controller provides a GraphQL GET and POST route, a WebSocket subscription server, and a Graphiql view.

Installation

Install from the pie shop.

pip install bareasgi-graphql-next

Usage

You can register the graphql controller with the add_graphql_next function.

from bareasgi import Application
from bareasgi_graphql_next import add_graphql_next
import graphql

# Get the schema ...
schema = graphql.GraphQLSchema( ... )

import uvicorn

app = Application()
add_graphql_next(app, schema)

uvicorn.run(app, port=9009)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
bareasgi_graphql_next-1.2.0-py3-none-any.whl (14.0 kB) Copy SHA256 hash SHA256 Wheel py3
bareasgi_graphql_next-1.2.0.tar.gz (8.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page