From e35514dfde78182ff914aa2e48ad04f1edabf81a Mon Sep 17 00:00:00 2001 From: kev Date: Tue, 3 Dec 2024 14:24:20 +0800 Subject: [PATCH] add visidata --- README.md | 1 + visidata/Dockerfile | 15 +++++++++++++++ visidata/README.md | 21 +++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 visidata/Dockerfile create mode 100644 visidata/README.md diff --git a/README.md b/README.md index cfa194b..6a29f48 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,7 @@ A collection of delicious docker recipes. - [x] open-vmdk - [x] registry-cli - [x] tldextract +- [x] visidata ## Media diff --git a/visidata/Dockerfile b/visidata/Dockerfile new file mode 100644 index 0000000..9947081 --- /dev/null +++ b/visidata/Dockerfile @@ -0,0 +1,15 @@ +# +# Dockerfile for visidata +# + +FROM alpine:3 +MAINTAINER EasyPi Software Foundation + +RUN set -xe \ + && apk add --no-cache python3 py3-pip \ + && pip3 config set global.break-system-packages true \ + && pip3 install visidata \ + && visidata --version \ + && vd --version + +ENTRYPOINT ["vd"] diff --git a/visidata/README.md b/visidata/README.md new file mode 100644 index 0000000..199f85b --- /dev/null +++ b/visidata/README.md @@ -0,0 +1,21 @@ +visidata +======== + +[VisiData][1] is a terminal interface for exploring and arranging tabular data. +VisiData supports tsv, csv, sqlite, json, xlsx (Excel), hdf5, and many other formats. + +## Tutorial + +```bash +# Create an alias +$ alias vd='docker run --rm -u $(id -u):$(id -g) -v "$PWD:/data" -w /data vimagick/visidata' +$ alias visidata='docker run --rm -u $(id -u):$(id -g) -v "$PWD:/data" -w /data vimagick/visidata' + +# Create a csv file +$ echo -e 'a,b\n1,2\n3,4' > input.csv + +# View the csv file +$ vd input.csv +``` + +[1]: https://github.com/saulpw/visidata