Serve a Magql GraphQL API with Flask.
Project description
Magql-SQLAlchemy
Magql is a GraphQL framework for Python. It's pronounced "magical", and it is! This extension allows generating a complete API from SQLAlchemy database models. After the schema is generated, it can be modified to add, remove, or change any behavior. Here's some of the features Magql-SQLAlchemy provides:
item
andlist
queries, andcreate
,update
, anddelete
mutations for each model.- Database queries are efficient, using SQLAlchemy's relationship loading techniques to eagerly load relationships that are present anywhere in the operation structure.
- The list query can be filtered using multiple rules. Attributes can be filtered across relationships. Rules can be grouped and joined using AND and OR. Lists can be sorted by any column and paginated.
- The create mutation recognizes null and default column values. The update mutation allows updating any field independently.
- The create and update mutations validate unique constraints.
- A universal
search
query to search all string columns of all models. - A
check_delete
query to check the effects of deleting a row before doing so.
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
flask_magql-1.1.1.tar.gz
(6.6 kB
view details)
Built Distribution
File details
Details for the file flask_magql-1.1.1.tar.gz
.
File metadata
- Download URL: flask_magql-1.1.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76800c480f70d8adbf65b9449dc48c9afe59f6b311c734cccddd3acfd14beacd |
|
MD5 | a69a2d0793ae988cd7dfccf50e78ea41 |
|
BLAKE2b-256 | 1849b939de6be27dcb526f536f10907f91d5fe4ea4624eec790802c45324dca1 |
File details
Details for the file flask_magql-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: flask_magql-1.1.1-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d523bd32271186e56611ee5a0a7f64b54eaa0e069e1aad0e70626dfb292572f |
|
MD5 | 891c26568764add9c8da7ee7b5841f4b |
|
BLAKE2b-256 | 91c5c392a59b911bc8daeb3bf1c3253c5668c069bb234b9eb1e963174329dafa |