Skip to main content

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

If you wish to install with the grapheme option:

pip install 'bareasgi-graphql-next[graphene]'

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.

Source Distribution

bareasgi-graphql-next-3.10.0.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bareasgi_graphql_next-3.10.0-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file bareasgi-graphql-next-3.10.0.tar.gz.

File metadata

  • Download URL: bareasgi-graphql-next-3.10.0.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.2 CPython/3.7.4 Linux/4.10.0-33-generic

File hashes

Hashes for bareasgi-graphql-next-3.10.0.tar.gz
Algorithm Hash digest
SHA256 59f13f7f00beb859504403a335191873c6f741ea8ab23d41b9447da2ff564c16
MD5 2bbd0074b549632bdcdc5d2e07d78349
BLAKE2b-256 d1194d2e0be8b44e8f22be42b79ea3eed35484b0c1ab73cbf2dca2e91df0e17a

See more details on using hashes here.

File details

Details for the file bareasgi_graphql_next-3.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bareasgi_graphql_next-3.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 755823a886ec39ca65bbab9f502649b02ea5a642ff7053057e1f23ac6b78ed7f
MD5 516b20224a530280072363bcbe2d69ac
BLAKE2b-256 57a6567c4b862b34c6d1979553aaff3f4c5b947d34d8f44dfdc7fc9ab337053c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page