1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30id: pip_namespace_files
namespace: company
inputs:
- id: date
type: STRING
defaults: 12/24/2024
displayName: Delivery Date
tasks:
- id: sync_code_to_kestra
type: io.kestra.plugin.git.SyncNamespaceFiles
namespace: "{{ flow.namespace }}"
gitDirectory: .
url: https://github.com/anna-geller/python-in-kestra
branch: main
username: anna-geller
password: "{{ kv('GITHUB_ACCESS_TOKEN') }}"
- id: python
type: io.kestra.plugin.scripts.python.Script
namespaceFiles:
enabled: true
beforeCommands:
- pip install .
script: |
import etl.utils as etl
out = etl.standardize_date_format("12/24/2024")
print(out)