Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leplusorg/docker-csv
Docker container to run CSV manipulation utitilies (csvkit...).
https://github.com/leplusorg/docker-csv
csv csv-manipulation-utitilies csvkit csvsql docker docker-container dockerfile
Last synced: about 20 hours ago
JSON representation
Docker container to run CSV manipulation utitilies (csvkit...).
- Host: GitHub
- URL: https://github.com/leplusorg/docker-csv
- Owner: leplusorg
- License: apache-2.0
- Created: 2019-12-04T22:59:12.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-23T04:03:41.000Z (3 days ago)
- Last Synced: 2024-12-23T05:18:38.042Z (3 days ago)
- Topics: csv, csv-manipulation-utitilies, csvkit, csvsql, docker, docker-container, dockerfile
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/leplusorg/csv
- Size: 308 KB
- Stars: 5
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# CSV
Docker container to run CSV manipulation utitilies (csvkit...).
[![Dockerfile](https://img.shields.io/badge/GitHub-Dockerfile-blue)](https://github.com/leplusorg/docker-csv/blob/main/csv/Dockerfile)
[![Docker Build](https://github.com/leplusorg/docker-csv/workflows/Docker/badge.svg)](https://github.com/leplusorg/docker-csv/actions?query=workflow:"Docker")
[![Docker Stars](https://img.shields.io/docker/stars/leplusorg/csv)](https://hub.docker.com/r/leplusorg/csv)
[![Docker Pulls](https://img.shields.io/docker/pulls/leplusorg/csv)](https://hub.docker.com/r/leplusorg/csv)
[![Docker Version](https://img.shields.io/docker/v/leplusorg/csv?sort=semver)](https://hub.docker.com/r/leplusorg/csv)## Example not using the filesystem
Let's say that you have a CSV file `foo.csv` and that you want to extract the column named `bar`:
**Mac/Linux**
```bash
cat foo.csv | docker run --rm -i --net=none leplusorg/csv csvsql --table foo --query "select bar from foo"
```**Windows**
```batch
type foo.csv | docker run --rm -i --net=none leplusorg/csv csvsql --table foo --query "select bar from foo"
```## Example using the filesystem
Same thing, assuming that you have a CSV file `foo.csv` and that you want to extract the column named `bar`:
**Mac/Linux**
```bash
docker run --rm -t --user="$(id -u):$(id -g)" --net=none -v "$(pwd):/tmp" leplusorg/csv csvsql --query "select bar from foo" /tmp/foo.csv
```**Windows**
In `cmd`:
```batch
docker run --rm -t --net=none -v "%cd%:/tmp" leplusorg/csv csvsql --query "select bar from foo" /tmp/foo.csv
```In PowerShell:
```pwsh
docker run --rm -t --net=none -v "${PWD}:/tmp" leplusorg/csv csvsql --query "select bar from foo" /tmp/foo.csv
```## Help
To know more command-line options of one of the csvtk command:
```bash
docker run --rm --net=none leplusorg/csv csvsql -h
```## Request new tool
Please use [this link](https://github.com/leplusorg/docker-csv/issues/new?assignees=thomasleplus&labels=enhancement&template=feature_request.md&title=%5BFEAT%5D) (GitHub account required) to request that a new tool be added to the image. I am always interested in adding new capabilities to these images.