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-5.0.2.tar.gz (17.9 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-5.0.2-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bareasgi-graphql-next-5.0.2.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.10 Darwin/21.2.0

File hashes

Hashes for bareasgi-graphql-next-5.0.2.tar.gz
Algorithm Hash digest
SHA256 d5df4beddd30130fb58ec9c88003490cdf9806738636650360a57f8547f15477
MD5 b4baf6be4fe43b3323d02abb4695c6b0
BLAKE2b-256 21b5d4a6e5799c555b31a9e51dd3b37b69336367758ab11e8ce63284d04b2228

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bareasgi_graphql_next-5.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fe82fbfbf4584b91f523a914671894bd4f8ee1e2300c9b1dca025249e6a20516
MD5 b50b93ee1c59d3310ab56007a0c7fed0
BLAKE2b-256 ee8eca3825e64776024fee00645c3c25744d848c6353b9322c71c1ebba8d00d9

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