Skip to main content

graphql-codegen powered by pydantic

Project description

turms

codecov PyPI version

DEVELOPMENT

Inspiration

Turms is a pure python implementation of the awesome graphql-codegen library, following a simliar extensible design. It makes heavy use of pydantic and its serialization capablities and provides fully typed querys, mutations and subscriptions

Supports

  • Documents
  • Fragments
  • Enums
  • Query Functions

Features

  • Fully Modular (agnostic of graphql engine)
  • Specify type mixins, baseclasses...
  • Fully Support type hints for variables (Pylance)

Installation

pip install turms

Usage

Open your workspace (create a virtual env), in the root folder

turms init

This creates a configuration file in the working directory, edit this to reflect your settings (see Configuration)

turms gen

Generate beautifully typed Operations, Enums,...

Why Turms

In Etruscan religion, Turms (usually written as 𐌕𐌖𐌓𐌌𐌑 Turmś in the Etruscan alphabet) was the equivalent of Roman Mercury and Greek Hermes, both gods of trade and the messenger god between people and gods.

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

turms-0.1.7.tar.gz (14.1 kB view hashes)

Uploaded Source

Built Distribution

turms-0.1.7-py3-none-any.whl (24.0 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