Skip to main content

Generate a Magql GraphQL API from SQLAlchemy models.

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

magql_sqlalchemy-1.0.0.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

magql_sqlalchemy-1.0.0-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file magql_sqlalchemy-1.0.0.tar.gz.

File metadata

  • Download URL: magql_sqlalchemy-1.0.0.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for magql_sqlalchemy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3aac38003ddc6624f8f86f52b7b04bbbcb36263d01b2842b0730e43934796fec
MD5 559ee6b47172c8f0881f314e355ac43a
BLAKE2b-256 523913e5b0a8bb0a2417859b0e775e1be7286ebbb92d1ddd9e53e0cdedf6973a

See more details on using hashes here.

File details

Details for the file magql_sqlalchemy-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for magql_sqlalchemy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 993c509b694a3a3a186333cf8157511d28e389e12229711f96140abec0a9192f
MD5 bcc2ce85483b2e67009140e51cea90bd
BLAKE2b-256 b85c027cd116a5f6f353d22d611d6a11a0f996e8c560c868988c115b1a88df2d

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