ResourceBuilt-in resource
kdeps-resource-python
v3.6.0The `python` component runs a Python script in a managed virtualenv and returns its stdout, parsed as JSON when possible and as raw text otherwise.
Usage
Built into kdeps: no install. Add it to a resource under the python: key.
# resources/my-step.yaml
actionId: myStep
python:
# options below
Documentation
python component
The python component runs a Python script in a managed virtualenv and returns its stdout, parsed as JSON when possible and as raw text otherwise.
# resources/analyze.yaml
actionId: analyze
name: Analyze Data
component:
name: python # from the components asset set
with:
script: | # inline Python; print JSON for structured output
import json
print(json.dumps({"rows": 3}))
timeout: 120s # hard stop; the call fails after it, no retry
Read next
- python component reference - every key, option and detail
- exec component - shell command execution
- Inline resources -
component:inbefore:/after:
Versions
| Version | Published | Status | Source |
|---|---|---|---|
| 3.6.0 | 11/27/2026 | active | GitHub v3.6.0 |
| 3.5.1 | 11/25/2026 | active | GitHub v3.5.1 |
| 3.5.0 | 11/24/2026 | active | GitHub v3.5.0 |
| 3.4.0 | 11/23/2026 | active | GitHub v3.4.0 |
| 3.3.0 | 11/21/2026 | active | GitHub v3.3.0 |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 3.6.0
- Published
- 11/21/2026
Links
Tags
kdepsresourcepython