Skip to content

NLeSC/graphene-data-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graphene+Flask+SQLAlchemy

Setup


Create a virtual environment

virtualenv venv
source venv/bin/activate

Install the dependencies:

pip install -r requirements.txt

Setup the database, and start the server:

./app.py

Now open http://127.0.0.1:5000/graphql and run queries!

Example queries

Example-1


{
  allDatasets {
    edges {
      node {
        id
        name
        description
        raw
      }
    }
  }
}

Example-2


query Dataset($id: ID!){
  dataset(id: $id) {
    id
    name
     data{
      columns
    }
  }
}

variables:

{
  "id": "RGF0YXNldDox"
}

Example-3


{
  dataset (id:"RGF0YXNldDox") {
    id
    name
    data {
      columns
    }
  }
}

Example-4


{
  dataset (id:"RGF0YXNldDox") {
    id
    name
    raw
    data {
      columns
      columnNames
      columnTypes
    }
    histograms {
      bins
      freq
    }
  }
}

About

Graphene+Flask+SQLAlchemy stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages