> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keephq.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Python

> Python provider allows executing Python code snippets.

## In workflows

This provider can be used in workflows.

As "step" to query data, example:

```yaml theme={null}
steps:
    - name: Query python
      provider: python
      config: "{{ provider.my_provider_name }}"
      with:
        code: {value}  
        imports: {value}  
```

Check the following workflow examples:

* [bash\_example.yml](https://github.com/keephq/keep/blob/main/examples/workflows/bash_example.yml)
* [mustache-paths-example.yml](https://github.com/keephq/keep/blob/main/examples/workflows/mustache-paths-example.yml)

## Limitations

* The Python provider is currently disabled for cloud execution. This means that Python scripts cannot be executed in a cloud environment.
* Users must ensure that the scripts are compatible with the local execution environment.

## Usefull Links

-[Python Documentation](https://docs.python.org/3/)
