tablib icon indicating copy to clipboard operation
tablib copied to clipboard

commandline wrapper around tablib

Open philadams-zz opened this issue 11 years ago • 3 comments

So, I'd be very interested in accessing tablib's functionality from the command line, particular in concert with csvkit or my own cut for csv, pluckr.

Is this something you've considered? Is it not something you see the tablib project itself including? Would a separate project that wraps and exposes tablib from the command line be better?

If a commandline interface to tablib is something that makes sense to you as part of this project, I'd be interested in contributing. Thoughts from everyone / @kennethreitz?

philadams-zz avatar Feb 10 '14 16:02 philadams-zz

Hi, a sidenote -- a while ago, I wrote a bunch of commandline scripts that convert in and out of TSV formats: https://github.com/brendano/tsvutils

I personally find them very useful. However, I wrote them before tablib was around (or before I knew about it), and I suspect that tablib might make for a more robust foundation.

brendano avatar Mar 18 '14 17:03 brendano

The first step would be to define the look&feel of such a CLI tool, e.g.

tablib from ‹in.ext› to ‹out.ext›
foobar_yaml | tablib read yaml filter ‹condition› write json
…

Using Click or Cliff the implementation is then quite easy.

jhermann avatar Apr 08 '15 15:04 jhermann

Is https://github.com/kennethreitz/records what you are asking for?

vlcinsky avatar Apr 28 '18 21:04 vlcinsky