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

Add CSVY importer/exporter #248

Open
nichtich opened this issue May 4, 2016 · 0 comments
Open

Add CSVY importer/exporter #248

nichtich opened this issue May 4, 2016 · 0 comments

Comments

@nichtich
Copy link
Member

nichtich commented May 4, 2016

Support of CSVY would add no new dependencies, so it could be part of Cartmandu core. The CSVY importer could be used as general CSV importer as well if we assume no normal CSV file matches /^---\s*$/. If so, buffer all lines until /^(---|\.\.\.)\s*$/ or EOF and use this as YAML header, read by YAML importer. The rest is normal CSV. The metadata could be used for validating as table schema (see #207) but also as independent document. Note that the YAML header contains order of fields which is not preserved by normal CSV importer! The CSV importer could automatically generate a fields field to be used for exporting tabular format with fields in the same order.

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

No branches or pull requests

1 participant