Skip to content

A Graphene / Tornado integration for easy GraphQL APIs with Websocket Subscriptions in Python

License

Notifications You must be signed in to change notification settings

miketout/tornadoql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Tornado boilerplate for Graphene with subscriptions.

A very easy to use, fully extensible Tornado Web Server Integration with Graphene to make serving GraphQL APIs, including Websocket subscriptions, as easy as defining your schema.

With TornadoQL, exposing a graphene schema as a GraphQL API takes two imports and one line of code. You can also make that API part of a larger application by simply adding to the GraphQL endpoints and Tornado application settings before calling start. Getting your own API-only server up is as simple as defining a Graphene schema and the following code:

from tornadoql.tornadoql import TornadoQL
from my_schema import my_schema

TornadoQL.start(my_schema)

This will start a server with /graphql, /graphiql, and /subscriptions endpoints, supporting optional arguments for port and application settings. TornadoQL includes an extended version of graphiql GraphQL browser that supports subscriptions as well as queries and mutations.

About

A Graphene / Tornado integration for easy GraphQL APIs with Websocket Subscriptions in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 74.0%
  • HTML 26.0%