All Projects → Getmrahul → Flask Graphene Sqlalchemy

Getmrahul / Flask Graphene Sqlalchemy

A demo project for Flask + GraphQL (With Graphene & SQLAlchemy)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Flask Graphene Sqlalchemy

Flask Graphene Sqlalchemy
⚗️Project template to build a GraphQL API in Python
Stars: ✭ 109 (-6.84%)
Mutual labels:  graphql, sqlalchemy, flask
Flask Whooshee
Customizable Flask - SQLAlchemy - Whoosh integration
Stars: ✭ 66 (-43.59%)
Mutual labels:  sqlalchemy, flask
Graphql Server
This is the core package for using GraphQL in a custom server easily
Stars: ✭ 65 (-44.44%)
Mutual labels:  graphql, flask
Flask Graphql
Adds GraphQL support to your Flask application.
Stars: ✭ 1,188 (+915.38%)
Mutual labels:  graphql, flask
Python crawler
It's designed to be a simple, tiny, pratical python crawler using json and sqlite instead of mysql or mongdb. The destination website is Zhihu.com.
Stars: ✭ 45 (-61.54%)
Mutual labels:  sqlalchemy, flask
Hobbit Core
A flask project generator.
Stars: ✭ 49 (-58.12%)
Mutual labels:  sqlalchemy, flask
Indico
Indico - A feature-rich event management system, made @ CERN, the place where the Web was born.
Stars: ✭ 1,160 (+891.45%)
Mutual labels:  sqlalchemy, flask
Flask Bones
An example of a large scale Flask application using blueprints and extensions.
Stars: ✭ 849 (+625.64%)
Mutual labels:  sqlalchemy, flask
Flask Tutorial
这个项目已经很久很久了, 不推荐看, 不过倒是可以进群叨逼叨一下. 🚗 交流群:630398887
Stars: ✭ 91 (-22.22%)
Mutual labels:  sqlalchemy, flask
Markbj
一个开放的知识社区
Stars: ✭ 94 (-19.66%)
Mutual labels:  sqlalchemy, flask
Flask movie site
用Flask构建一个微电影视频网站
Stars: ✭ 97 (-17.09%)
Mutual labels:  sqlalchemy, flask
Python Api Development Fundamentals
Develop a full-stack web application with Python and Flask
Stars: ✭ 44 (-62.39%)
Mutual labels:  sqlalchemy, flask
Flask Jwt Router
Flask JWT Router is a Python library that adds authorised routes to a Flask app.
Stars: ✭ 43 (-63.25%)
Mutual labels:  sqlalchemy, flask
Best Of Web Python
🏆 A ranked list of awesome python libraries for web development. Updated weekly.
Stars: ✭ 1,118 (+855.56%)
Mutual labels:  graphql, flask
Ecache
👏👏 Integrate cache(redis) [flask etc.] with SQLAlchemy.
Stars: ✭ 28 (-76.07%)
Mutual labels:  sqlalchemy, flask
Ziggurat foundations
Framework agnostic set of sqlalchemy classes that make building applications that require permissions an easy task.
Stars: ✭ 67 (-42.74%)
Mutual labels:  sqlalchemy, flask
Flask Sqlalchemy Booster
Collection of utilities and decorators which add extensive querying and serializing capabilities to Flask SQLalchemy models
Stars: ✭ 5 (-95.73%)
Mutual labels:  sqlalchemy, flask
Databook
A facebook for data
Stars: ✭ 26 (-77.78%)
Mutual labels:  sqlalchemy, flask
Spacy Graphql
🤹‍♀️ Query spaCy's linguistic annotations using GraphQL
Stars: ✭ 81 (-30.77%)
Mutual labels:  graphql, flask
Booklibrary
📚Simple Book library application written on flask with SQLite database.
Stars: ✭ 98 (-16.24%)
Mutual labels:  sqlalchemy, flask

Python-Flask & Graphene-SQLAlchemy(GraphQL) Example

This is an example project for using GraphQL with Flask using Graphene-SQLAlchemy.

Installing Requirements

Use Virtualenv and install the packages.

pip install -r requirements.txt

Running Flask Server

Go to the root dir and run the below line in the terminal.

python app.py

Creating a new Database

Create a database(Used SQLite) with the table structure mentioned in struct.sql and update the database name in database.py file.

database.py

# Replace 'sqlite:///rfg.db' with your path to database

engine = create_engine('sqlite:///rfg.db', convert_unicode=True)

Testing GraphQL

Go to http://localhost:5000/graphql to try GraphQL. Below are the example queries for adding a new user, getting all users, searching for a user with username and updating username with email id.

Adding a New User

mutation {
  createUser(name: "abc", email: "[email protected]", username: "abc") {
    user {
      id,
      name,
      email,
      username
    }
    ok
  }
}

Getting All Users List

{
  allUsers {
    edges {
      node {
        name,
        email,
        username
      }
    }
  }
}

Finding a User with Username

{
  findUser(username: "rahulmfg") {
    id,
    name,
    email
  }
}

Updating Username With Email ID

mutation {
  changeUsername(email: "[email protected]", username:"newabc") {
    user {
      name,
      email,
      username
    }
  }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].