Sign inSign up

jtmotox/csvkit

By jtmotox

Updated 7 months ago

Lightweight 35mb multi-arch Docker image to convert xlsx, csv, sql, json, etc..

Image
0

1.6K

jtmotox/csvkit repository overview

GitHub: JtMotoX/docker-csvkit

This is a lightweight (~35mb compressed) Docker image that will convert files to/from xlsx, csv, sql, json, etc.. using csvkit.


Examples:

Get a list of all the command utilities:

docker run --rm -i jtmotox/csvkit

Convert the sample.xlsx file in ./directory/of/xlsx/files to sample.csv:

docker run --rm -i -v "./directory/of/xlsx/files:/data" jtmotox/csvkit sh -c "in2csv sample.xlsx >sample.csv"

Output to stdout instead of saving to csv file:

docker run --rm -i -v "./directory/of/xlsx/files:/data" jtmotox/csvkit sh -c "in2csv sample.xlsx"

Parse xlsx files using jq:

docker run --rm -i -v "./directory/of/xlsx/files:/data" jtmotox/csvkit sh -c "in2csv sample.xlsx | csvjson | jq -r '.'"

Tag summary

Content type

Image

Digest

sha256:eeb81d46b

Size

38.5 MB

Last updated

7 months ago

docker pull jtmotox/csvkit