Skip to main content

bareASGI-graphql

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

If you wish to install with the grapheme option:

pip install 'bareasgi-graphql[graphene]'

Usage

You can register the graphql controller with the add_graphql function.

from bareasgi import Application
from bareasgi_graphql import add_graphql
import graphql

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

import uvicorn

app = Application()
add_graphql(app, schema)

uvicorn.run(app, port=9009)

Development

To develop with the graphene optional package:

poetry install --extras graphene

Metadata

Release files for bareASGI-graphQL 5.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bareASGI-graphQL 5.0.0
File Size Uploaded
bareasgi_graphql-5.0.0.tar.gz 18.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bareASGI-graphQL 5.0.0
File Interpreter ABI Platform
bareasgi_graphql-5.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 42.8 kB

Release files / bareasgi_graphql-5.0.0.tar.gz

Download URL bareasgi_graphql-5.0.0.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5f5cbac0a204ebf937163218d5beeea37099d21c3b1983d697285359e4bc7ae4
BLAKE2b-256 checksum
How to use checksums
b700c6c436e2fc8fe0cd3665ad9de6cc36002ec8382254389abe13a1ad75484b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / bareasgi_graphql-5.0.0-py3-none-any.whl

Download URL bareasgi_graphql-5.0.0-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24f90c8e9a96a5861737b17d63ac76d74fd1f85e42cb2fa3c63480a518e1b448
BLAKE2b-256 checksum
How to use checksums
f3b2a3079ff2763ab2c1bc68ec1d1f8c05b033ee5465378a52fbc6ac04e531ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

5.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page