# script-runner **Repository Path**: mirrors_getsentry/script-runner ## Basic Information - **Project Name**: script-runner - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-14 - **Last Updated**: 2026-03-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # script-runner A tool for defining python functions, triggering their execution and displaying results via a user interface. Used at Sentry to allow specific users to run predefined Python scripts on production data. ## Deployment modes Multi-region deployments enable aggregating results across multiple "regions" or "silos", whilst still enabling script execution to be performed in a single region. - set `mode: main` for the central region - set `mode: region` for each instance of the application deployed in each regions For a single deployment in one region use `mode:combined`. Currently we only use this for dev and testing. ## Writing custom scripts Scripts are standard python functions organized into groups. All of the arguments to a function must be annotated with one of the supported parameter types. The currently supported ones are: - Text - Textarea - Integer - Number - Autocomplete - DynamicAutocomplete Example: ```python def print_value(input: Text) -> None: """ for short text, renders in the ui """ print(input.value) def print_long_value(input: TextArea) -> None: """ multiline text, renders