$npx skillfedfor your agent

ariadne-codegen

Generate fully typed GraphQL client from schema, queries and mutations!

Worth itPyPI Python ModulesReleased Mar 20261.7M downloads / moBSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — ariadne_codegen-0.18.0-py3-none-any.whl
v0.18.0 · released 2026-03-13 · Python >=3.10 · 6 runtime deps: click, graphql-core, httpx, pydantic, ruff, toml

Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and solves a real problem—eliminating manual GraphQL client boilerplate while ensuring type safety. It's well-suited for any Python project consuming GraphQL APIs. The permissive BSD-3-Clause license poses no obstacle. Consider it if you want to avoid hand-writing pydantic models and client methods for GraphQL operations.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; for subscription support, install the optional websockets dependency via pip install ariadne-codegen[subscriptions].
  • Installs cleanly with low friction; depends on common, well-maintained packages (click, graphql-core, httpx, pydantic, ruff, toml).
  • Actively maintained with recent commits and no known vulnerabilities.

License · maintenance · safety

BSD-3-Clause (permissive) — BSD-3-Clause is permissive; you can use this package in commercial and proprietary projects with minimal restrictions, provided you include the license notice.

last release 2026-03-13 (154 days) · last repo commit 2026-08-07 · 407 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,706,340 downloads/mo, #3,633 on PyPI

Verify before relying

pip install ariadne-codegen

# Add to pyproject.toml:
[tool.ariadne-codegen]
schema_path = "schema.graphql"
queries_path = "queries.graphql"

# Run:
ariadne-codegen
  • Whether the generated client works seamlessly with all GraphQL server implementations.
  • Performance characteristics and overhead of the generated async client under load.
  • Compatibility and stability of the plugin system for custom code generation.
  • How the custom operation builder integrates with the generated code in practice.
Same gist for agents: .md · .json

What it is and what it does

Ariadne Code Generator is a command-line tool that reads a GraphQL schema and operation definitions (queries, mutations, subscriptions) and outputs a complete, type-safe Python package. It generates pydantic models for all schema types, inputs, and enums, plus a fully async client class with each operation available as a typed method. You configure it via pyproject.toml, point it at your schema (local file or remote introspection endpoint) and your operations, and it produces a ready-to-import package.

The generated code is fully typed, so your IDE and type checker can catch errors before runtime. It supports both async and sync clients, optional OpenTelemetry tracing, and a custom operation builder for constructing complex queries programmatically. The tool integrates with ruff for code formatting and can be extended via plugins. It's aimed at Python developers building GraphQL-based applications who want to eliminate boilerplate and gain type safety without manual model definition.

Use it for

  • Generate a typed Python client for a public GraphQL API to avoid manual model writing.
  • Automate client code generation in a CI/CD pipeline whenever your GraphQL schema changes.
  • Build a service that consumes a GraphQL backend with full type checking and IDE autocomplete.
  • Create subscription-based real-time clients by generating async methods with websocket support.
  • Use the custom operation builder to construct complex, nested GraphQL queries in pure Python.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, installs with low friction, and solves a real problem—eliminating manual GraphQL client boilerplate while ensuring type safety. It's well-suited for any Python project consuming GraphQL APIs. The permissive BSD-3-Clause license poses no obstacle. Consider it if you want to avoid hand-writing pydantic models and client methods for GraphQL operations.

Install

ariadne-codegen on PyPI

Before you install

Installs cleanly with low friction; depends on common, well-maintained packages (click, graphql-core, httpx, pydantic, ruff, toml). Actively maintained with recent commits and no known vulnerabilities.

Requires Python 3.10 or later; for subscription support, install the optional websockets dependency via pip install ariadne-codegen[subscriptions].

License in practice

BSD-3-Clause is permissive; you can use this package in commercial and proprietary projects with minimal restrictions, provided you include the license notice.

Quickstart

pip install ariadne-codegen

# Add to pyproject.toml:
[tool.ariadne-codegen]
schema_path = "schema.graphql"
queries_path = "queries.graphql"

# Run:
ariadne-codegen

Verify before relying

  • Whether the generated client works seamlessly with all GraphQL server implementations.
  • Performance characteristics and overhead of the generated async client under load.
  • Compatibility and stability of the plugin system for custom code generation.
  • How the custom operation builder integrates with the generated code in practice.

Package facts

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
6 packages
clickgraphql-corehttpxpydanticrufftoml
MaintenanceActively maintained 154 days since the last release
Last repo commit
First released
Downloads1,706,340 / month, #3,633 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python Modules

Evidence: ariadne_codegen-0.18.0-py3-none-any.whl

Tags

Capabilities
graphql client code generatorpython graphql codegentyped graphql clientasync graphql pythongraphql schema to pythonpydantic graphql modelsgraphql query client generator
Topics
graphqlcode-generationasync-client

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “graphql client code generator”

  • ariadne-codegenGenerates fully typed, asynchronous Python GraphQL clients from a…
  • graphql-queryBuilds GraphQL query strings programmatically in Python using a…
  • graphene-pydanticConverts Pydantic models into GraphQL object types and input types…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also ariadne · graphql-query · gql · python-graphql-client · sgqlc · strawberry-graphql-django · graphene-pydantic · graphql-core · graphqlclient · hypothesis-graphql