generate default graphene schema from sqlalchemy model base on [graphene-sqlalchemy](https://github.com/graphql-python/graphene-sqlalchemy.git)
Project description
generate default graphene schema from sqlalchemy model base on graphene-sqlalchemy
Installation
just run
pip install graphene_sqlalchemy_auto
How To Use
example :
from graphene_sqlalchemy_auto import QueryObjectType,MutationObjectType
from sqlalchemy.ext.declarative import declarative_base
import graphene
Base = declarative_base()
class Query(QueryObjectType):
class Meta:
declarative_base = Base
class Mutation(MutationObjectType):
class Meta:
declarative_base = Base
# include_object = [UserCreateMutation, UserUpdateMutation]
schema = graphene.Schema(query=Query, mutation=Mutation)
now you can use schema everywhere.some like flask,fastapi also more example you can find in example
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for graphene-sqlalchemy-auto-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a70e9ab30ce4214a5caa763880d45da52cfc23a8a8d2e84958b3f7d0b4483f5 |
|
MD5 | fd7c180a08428cecca2f5d3d29ac642d |
|
BLAKE2b-256 | 315d0e3601256e432a227543f200390c4cc8281f5af0d2ae1acc71edb374d450 |
Close
Hashes for graphene_sqlalchemy_auto-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e2fbf7013aba50b040a37d85af9f510c4d68ea3283b5d587d5f6562d43e0e71 |
|
MD5 | 0ef4ca7428121f152149e68a5bd2dfc3 |
|
BLAKE2b-256 | 9c075936e5abb1f55725a125bf25312998411bb9f2f05de74e6b2f511252f5d2 |