• Stars
    star
    114
  • Rank 298,037 (Top 7 %)
  • Language
    Python
  • License
    MIT License
  • Created about 7 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This is the core package for using GraphQL in a custom server easily

PyPI version Coverage Status

GraphQL-Server is a base library that serves as a helper for building GraphQL servers or integrations into existing web frameworks using GraphQL-Core.

Integrations built with GraphQL-Server

Server integration Docs
Flask flask
Sanic sanic
AIOHTTP aiohttp
WebOb (Pyramid, TurboGears) webob

Other integrations built with GraphQL-Server

Server integration Package
WSGI wsgi-graphql
Responder responder.ext.graphql

Other integrations using GraphQL-Core or Graphene

Server integration Package
Django graphene-django

Documentation

The graphql_server package provides these public helper functions:

  • run_http_query
  • encode_execution_results
  • load_json_body
  • json_encode
  • json_encode_pretty

NOTE: the json_encode_pretty is kept as backward compatibility change as it uses json_encode with pretty parameter set to True.

All functions in the package are annotated with type hints and docstrings, and you can build HTML documentation from these using bin/build_docs.

You can also use one of the existing integrations listed above as blueprint to build your own integration or GraphQL server implementations.

Please let us know when you have built something new, so we can list it here.

Contributing

See CONTRIBUTING.md

More Repositories

1

graphene

GraphQL framework for Python
Python
7,978
star
2

graphene-django

Build powerful, efficient, and flexible GraphQL APIs with seamless Django integration.
Python
4,235
star
3

gql

A GraphQL client in Python
Python
1,474
star
4

flask-graphql

Adds GraphQL support to your Flask application.
Python
1,316
star
5

graphene-sqlalchemy

Graphene SQLAlchemy integration
Python
971
star
6

graphql-core

A Python 3.6+ port of the GraphQL.js reference implementation of GraphQL.
Python
498
star
7

graphql-core-legacy

GraphQL base implementation for Python (legacy version – see graphql-core for the current one)
Python
375
star
8

graphene-mongo

Graphene MongoEngine integration
Python
285
star
9

graphql-ws

GraphQL websockets
Python
271
star
10

graphene-pydantic

Integrate GraphQL with your Pydantic models
Python
220
star
11

swapi-graphene

GraphQL Starwars API using Graphene and Django
Python
172
star
12

sanic-graphql

Adds GraphQL support to your Sanic app.
Python
149
star
13

graphql-relay-py

A library to help construct a graphql-py server supporting react-relay
Python
145
star
14

aiohttp-graphql

Adds GraphQL support to your aiohttp app.
Python
118
star
15

graphene-gae

GraphQL Support for Google AppEngine [DEPRECATED - Looking for maintainers]
Python
117
star
16

gql-next

A Python GraphQL Client library providing ability to validate and make type-safe GraphQL calls
Python
76
star
17

graphene-tornado

Python
52
star
18

graphene-federation

Federation implementation for Graphene.
Python
40
star
19

webob-graphql

GraphQL integration for WebOb based frameworks: Pyramid, Pylons...
Python
28
star
20

GraphQL-SublimeText

GraphQL language syntax for SublimeText
17
star
21

graphene-python.org

Graphene-Python.org official website
JavaScript
6
star