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)

Development

To develop with the graphene optional package:

poetry install --extras graphene

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.11.0.tar.gz (16.6 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.11.0-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bareasgi-graphql-next-3.11.0.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.2 CPython/3.7.5 Linux/4.15.0-91-generic

File hashes

Hashes for bareasgi-graphql-next-3.11.0.tar.gz
Algorithm Hash digest
SHA256 24b235af44ebbf63181bfae0a0ef4e2724c9a2d1536486afc172dea7ad0f40c8
MD5 1674c7142a9f6b5dc3f5bf06121330db
BLAKE2b-256 d0406b206f8997ec4e563851e100b587f7d6fa8a99f2717072ffb68d4dc8b70f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bareasgi_graphql_next-3.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6156a668231817d6a961290435cc7e336063051f2f30e456492fb5d5b612246d
MD5 29b027465957d1405b88afcffa74ae26
BLAKE2b-256 b403a7e9744dbf13c7461a76db51f0bda84deee9a5bfcb9ddbd77e5f7ecc34a4

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