// This file is autogenerated, DO NOT EDIT
// scripting/using.asciidoc:489

[source, python]
----
resp = client.ingest.put_pipeline(
    id="my_test_scores_pipeline",
    description="Calculates the total test score",
    processors=[
        {
            "script": {
                "source": "ctx.total_score = (ctx.math_score + ctx.verbal_score)"
            }
        }
    ],
)
print(resp)
----
