Sync CSV files with Python every 5 minutes
Recipe ToolsMarketingData ParserUtilitiesDeveloper Tool
What it does
When the clock triggers every 5 minutes, this automation composes CSV batches and runs Python code to combine them. The result is a consolidated CSV file ready for downstream use.
Who it's for
Data and analytics teams who need to merge CSV files on a regular schedule without manual work.
How teams use this
Merge daily transaction files automatically
Combine multiple CSV exports from different sources every 5 minutes so transaction data stays current without manual consolidation. The team accesses one file instead of many.
Feed a data warehouse pipeline
Run this automation to merge CSV batches and send the output to a data warehouse or analytics platform. Only the downstream destination changes while the merge logic stays the same.
Add filtering before the merge
Extend the Python code to filter rows by date, status, or other conditions before combining the CSV files. This requires only a condition added to the Python step.
How it works
- Start on a 5-minute schedule. The automation runs every 5 minutes to keep CSV data current and consolidated.
- Compose first CSV batch. Csv Parser gathers and formats the first set of CSV data into a structured batch ready for the combine step.
- Compose second CSV batch. Csv Parser gathers and formats the second set of CSV data into a structured batch for merging with the first.
- Combine CSV files with Python. Py Eval runs Python code that merges both CSV batches into a single consolidated file with all rows and columns intact.
- Parse the combined CSV. Csv Parser structures the merged output so the data is ready for downstream systems or analytics platforms.