Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write CSV? Write JSON #16

Open
Quafadas opened this issue Feb 10, 2025 · 2 comments
Open

Write CSV? Write JSON #16

Quafadas opened this issue Feb 10, 2025 · 2 comments

Comments

@Quafadas
Copy link
Owner

No description provided.

@PredictiveManish
Copy link

PredictiveManish commented Feb 27, 2025

What does this issue means??
Please elaborate a little

@Quafadas
Copy link
Owner Author

Quafadas commented Feb 27, 2025

Yes - this was a rather terse reminder to myself in a rush. The point is that as things stand, the library can read CSV files easily.

def csv : CsvIterator[("col1", "col2", "col3")] = CSV.resource("simple.csv")

However, it offers no help writing CSV files from (this) Named Tuple form. Such ability would be self evidently useful - read a CSV, enrich it with data, store it is not an uncommon workflow.

The design of it is interesting. There's the obvious approach... but it may also be worth investigating the design of Kantan.csv, which had a source / sink sort of concept if I recall correctly.

The final point, is that the data may be useful to translate to other formats. JSON is an obvious one. The library currently offers no path to writing data back out.

These could (probably) be treated as seperate issues in the first instance, although a particulaly cunning design may be able to solve both JSON and CSV write out at once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants