[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#995617: ITP: csvquote -- smart and simple CSV processing on the command line



Hi Jonas,

03/10/2021 13:01, Jonas Smedegaard :
> Quoting Romain Porte (2021-10-03 12:22:46)
>> Package: wnpp
>> Severity: wishlist
>> Owner: Romain Porte <debian@microjoe.org>
>> X-Debbugs-Cc: debian-devel@lists.debian.org, debian-science@lists.debian.org, debian@microjoe.org
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA512
>>
>> * Package name    : csvquote
>>   Version         : 0.0~20180528
>>   Upstream Author : Dan Brown <danbrown@gmail.com>
>> * URL             : https://github.com/dbro/csvquote
>> * License         : Expat
>>   Programming Lang: C
>>   Description     : smart and simple CSV processing on the command line
>>
>> This tool can be used to escape problematic characters from
>> CSV file using a pipe. Then, the CSV entries can be processed
>> by regular UNIX tools like awk. Finally, calling `csvquote -u`
>> reverts the escaping codes in order to create back the CSV data.
>>
>> I plan to release this tool in the debian-science team, or if no
>> answer from this team under my own name.
> Please mention in long description how this tool is different from 
> seemingly similar tools csvtool, csvkit, textql, and ffe.

I think the provided long description is clear: the tool is only capable
of escaping characters, and is thus very minimalistic. All of the
processing power proposed by {csvtool,csvkit,textql,ffe} is not
available in this tool because the purpose is completly different. The
processing can be made using regular coreutil tools like awk, cut, head,
tail, etc.. and then the data can be escaped back to proper CSV format
by calling the tool again with another option.

The tool is very simple and is composed of a single C source file,
making it both small and "doing one thing and one thing well". As it can
be composed with coreutil tools which are very likely to be installed,
the total footprint is minimal for trivial CSV manipulations — like
printing the third row with `csvquote | awk -f, '{print $3}' | csvquote
-u` — instead of having to use a full-featured tool/framework.

Please extend your request if I misunderstood it.

Best regards.


Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: