Skip to main content

Ariadne Codegen Field Fix Plugin

This plugin aims to fix a really annoying issue with ariadne-codegen, where the original fieldname (from the provided graphql schema) isn't used when creating custom field calls. This disparity causes queries to break if the graphql API cannot handle snake-case, but you want generated field names to use snake-case.

Installation

All you have to do to install the plugin is run

pip install ariadne-codegen-field-fix

Then just add the plugin to your ariadne config.

Usage

To use this plugin simply add "ariadne_codegen_field_fix" to your plugins list.

Example

[tool.ariadne-codegen]
schema_path = "schema.graphql"
enable_custom_operations = true
convert_to_snake_case = true
plugins = ["ariadne_codegen_field_fix"]

Under the hood

Under the hood the actual ariadne-codegen plugin class does nothing (due to poor hook support), the real magic happens when the plugin module gets loaded and the client_generators.custom_fields.CustomFieldsGenerator class gets monkey patched (via client_generators.package.CustomFieldsGenerator).

Metadata

Release files for ariadne-codegen-field-fix 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ariadne-codegen-field-fix 0.1.0
File Size Uploaded
ariadne_codegen_field_fix-0.1.0.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ariadne-codegen-field-fix 0.1.0
File Interpreter ABI Platform
ariadne_codegen_field_fix-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.6 kB

Release files / ariadne_codegen_field_fix-0.1.0.tar.gz

Download URL ariadne_codegen_field_fix-0.1.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a51b34f4b54f245e43a16d3f85195ae21a947eaf66e0ebb75270e02c824990bd
BLAKE2b-256 checksum
How to use checksums
f352ffe5fd28e846ddaed6e0790f6846d00a5383f5599e9d19a1555bfface730
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2025.

Transparency log

Release files / ariadne_codegen_field_fix-0.1.0-py3-none-any.whl

Download URL ariadne_codegen_field_fix-0.1.0-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9304213d105519d572760844643948cf5193c14f842d7f8464901a3ba2b0e7f
BLAKE2b-256 checksum
How to use checksums
523f53525f72deae07539b8c14a3b30d7130d33b0e5ffdc2661e903ba1f83523
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page