Skip to main content

Qt framework for building graphql driven QML applications

Project description

Qt framework for building graphql driven QML applications

PyPI - Python Version PyPI GitHub Workflow Status (with branch) Codecov Discord

Disclaimer

This project is currently under development, and it is not production ready, You can play-around and tell us what is wrong / missing / awesome :smile:.

Visit the docs for more info

Features

  • object types, for each field there is a corresponding Property
  • enums
  • custom scalars
  • Unions
  • Garbage collection
  • Type-safe Mutation handlers
  • Type-safe Query handlers: queries your server when a component uses this query (or imperatively fetched).
  • Query updates: fetch the same query multiple times would not instantiate everything from scratch it would compare the current data with data received and emit only the signals that are needed.
  • Native-Qt client implementation of "graphql-transport-ws" protocol (supports subscriptions) - You can provide your own network layer though.
  • Mutations.
  • Fully typed input variables.

Helpers

  • generic models that get created from dictionaries (with update, pop, insert implemented by default)
  • Property classes that are accessible from QML, with dataclasses syntax (using attrs)
  • @slot - decorator to be replaced with QtCore.Slot() that get types from type hints.

TODO

  • Subscriptions
  • Migrate to C++
  • Fragments?

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

qtgql-0.113.3.tar.gz (31.9 kB view hashes)

Uploaded Source

Built Distribution

qtgql-0.113.3-py3-none-any.whl (41.2 kB view hashes)

Uploaded Python 3

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