# python: decode_vars URL: https://generaltranslation.com/en-US/docs/python/api/decode-vars.mdx --- title: decode_vars description: API reference for the decode_vars function --- ## Overview `decode_vars` replaces GT variable markers in a string with their embedded values. ```python from gt_flask import decode_vars # or from gt_fastapi import decode_vars result = decode_vars(marked_string) ``` ## Reference ### Parameters ### Returns `str` — the string with GT variable markers replaced by their original values. --- ## Notes - Typically used with strings that were built using [`declare_var`](/docs/python/api/declare-var) or [`declare_static`](/docs/python/api/declare-static).