ð
Composable
Chain any number of steps in any order. The output of each step is the input to the next.
Read from files or stdin. Transform through ordered steps. Write to files or stdout.
# customer-intake.yaml
id: customer-intake
input:
format: csv
steps:
- normalize:
fields:
first_name: capitalize
last_name: capitalize
email: lower
- filter:
field: country
equals: AU
- redact:
fields: [credit_card]
strategy: mask
- select:
fields: [first_name, last_name, email, plan, credit_card]
output:
format: jsonlpipectl run customer-intake.yaml < customers.csv{"first_name":"Alice","last_name":"Smith","email":"alice@example.com","plan":"pro","credit_card":"****************"}
{"first_name":"Bob","last_name":"Jones","email":"bob@example.com","plan":"free","credit_card":"****************"}