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.4.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

bareasgi_graphql_next-5.0.4-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bareasgi-graphql-next-5.0.4.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.10 Darwin/21.6.0

File hashes

Hashes for bareasgi-graphql-next-5.0.4.tar.gz
Algorithm Hash digest
SHA256 61a52ec0570b2eb1ef5e5d34ffde5aa88dadbf22bc893924e4c795ec03d711a5
MD5 8ae3eff19a9a4e22de49e3d2ceb84706
BLAKE2b-256 4cffd8c476351efeb4bd50ec9e60e68f67878141587e5eed0184063298c79085

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bareasgi_graphql_next-5.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bc052e3dfa2010af68e99fb9a999eed8ea55822ab487dcf82908d8d5c039334e
MD5 c4b00ba1335c81e061b3f53ee887c84d
BLAKE2b-256 a2e484df991ec4927b83dfdb0583e3b36ca49c734b8989f8b3513bd140f81d14

See more details on using hashes here.

Supported by

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