wireservice / csvkit

A suite of utilities for converting to and working with CSV, the king of tabular file formats.
https://csvkit.readthedocs.io
MIT License
6.03k stars 603 forks source link

Add non-CSV output #1162

Closed tewe closed 2 years ago

tewe commented 2 years ago

I have single-column CSV with quoting and escaping. As there are no newlines in the values, it is safe to remove both quoting and escaping. But I found no way to do it, except using csvpy.

for r in reader:
    print(r[0])

Please consider adding this to e.g. csvformat.

jpmckinney commented 2 years ago

Indeed, --out-quoting 3 (Quote None) yields Error: need to escape, but no escapechar set, and --out-escapechar cannot be empty. That said, csvkit's scope is to only output CSV, so this issue is wontfix.

tewe commented 2 years ago

Thanks for clarifying.