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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ariadne_codegen_field_fix-0.1.0.tar.gz | 2.0 kB | With provenance | Details for ariadne_codegen_field_fix-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ariadne_codegen_field_fix-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ariadne_codegen_field_fix-0.1.0-py3-none-any.whl |
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 logRelease 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 logSecurity for ariadne-codegen-field-fix 0.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ariadne_codegen_field_fix-0.1.0.tar.gz
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 logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.