Awesome Open Source
Awesome Open Source

Python GraphQL server, built with Falcon and Graphene

To install dependencies:

python3 -m venv PYTHON3_ENV
source PYTHON3_ENV/bin/activate
pip3 install --upgrade pip
pip3 install -r requirements.txt

To run:

gunicorn -c server_config.py falcon_graphql_server:graphQL_api

To use, POST as application/json with query, variables, & operationName args:

curl -H 'Content-Type: application/json' \
  -d '{"query":"query RollDice($dice: Int!, $sides: Int){rollDice(dice:$dice,sides:$sides)}","variables":"{\"dice\": 8,\"sides\":9}","operationName":"RollDice"}' \
  "http://localhost:4004/graphql"

You can also use the GraphiQL dashboard:

open "http://localhost:4004/graphiql"

To exit the virtual env, run deactivate.



Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Python (888,324
Python3 (888,315
Server (65,689
Dashboard (16,509
Graphql (16,374
Env (7,192
Graphql Server (1,135
Falcon (807
Graphiql (713
Graphene (469