Add a CSV file

Just a simple CSV Parse Node

November 18, 20251 min read

Just make a CSV parsing node

That's a really simple task isn't is.

Simple CSV in, parsing, strusctured data out

And it is true, that wasn't so hard to do. Now to test it.

How to get a CSV file?

Luckily one of the first things I wrote was an UrlNode, that will fetch a given URL and return the response text of that URL.

This meant that I could fetch any URL from the web that contains CSV data. Luckily those aren't hard to find, you can grab some for yourself.

Quickly put together a workflow

Workflow with a CSV node

Execute it. And it works. Hurrah!

Technically I was done

But I wanted also create a loop node. Because what do you do with a CSV? Exactly, you loop over the records.

However, this looping might be harder that I thought. Because of the way the system is set up.

It is a queueing service, and each node is put on the queue with the output of the precious node.

Let's see how well that is playing out.

  • A node knows nothing about its environment.

  • The task only know the Workflow, and the Node it's executing

Now we run into a CSV Parse node, no problem, the node gets a CSV file and outputs a list of lists.

But what happens?

  • Let's have an imaginary Loop node there

  • The loop nodes get a lists of lists offered correctly

  • But then? What is it going to return?

Another list, so the tasks after is get...... The same list?

Something about me

Noë

Something about me

LinkedIn logo icon
Instagram logo icon
Back to Blog