Skip to main content

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 and list queries, and create, update, and delete 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


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.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

flask_magql-1.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file flask_magql-1.1.0.tar.gz.

File metadata

  • Download URL: flask_magql-1.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for flask_magql-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e8ac015029f820db43b78f07f5ca5aad41bb3fe98335fac9ac42b2395d783116
MD5 ee36470ed34dee641015c11dd6031eca
BLAKE2b-256 c55f7430573b4bc2b37ea72a4b2e65dbcc89030ee072150d4cb90c0222378085

See more details on using hashes here.

File details

Details for the file flask_magql-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: flask_magql-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for flask_magql-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57c3f9deb244e11b856116841c6757477ea3f94474debed1db158b912242182e
MD5 3803ede8f307ef0d4e3d07df3150e9d0
BLAKE2b-256 abd9e501386ae4ef9fc6ce17f7889ec7038dc0bf2afd5861a86552ee11087b24

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page