Read CSV files and display as formatted tables in the terminal
Project description
csv-table-cli
Read CSV files and display them as beautifully formatted tables in the terminal — with borders, aligned columns, and zero external dependencies.
Install
pip install csv-table-cli
Usage
# Read from file
csv-table data.csv
# Pipe from stdin
cat data.csv | csv-table
# Custom delimiter (TSV)
csv-table data.tsv --delimiter $'\t'
# No headers (treat all rows as data)
csv-table data.csv --headers false
# Limit rows
csv-table data.csv --max-rows 10
# JSON output
csv-table data.csv --output json
# CSV output (re-encode)
csv-table data.csv --output csv
Options
| Option | Default | Description |
|---|---|---|
| --delimiter | , | CSV field delimiter |
| --headers | true | Treat first row as headers (false to disable) |
| --max-rows | ∞ | Limit number of rows displayed |
| --output | table | Output format: table, json, csv |
| --help | Show help message |
License
MIT © Major126
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
csv_table_cli-1.0.0.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file csv_table_cli-1.0.0.tar.gz.
File metadata
- Download URL: csv_table_cli-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd07fb38a145ebace72fa88096e7e89846446cd36b28fa56bd7a189ed3130190
|
|
| MD5 |
eef0dd1442c8ef4224220d3f1393f0c1
|
|
| BLAKE2b-256 |
6307e9eb7bccb188653aec45c0477aa405bf41bf907b5454b487bfe61e33b86e
|
File details
Details for the file csv_table_cli-1.0.0-py3-none-any.whl.
File metadata
- Download URL: csv_table_cli-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12bac0ea0e6f58f5dadad0eda439742454d390b3f8ff1a2a72ef0a203ab9ed5d
|
|
| MD5 |
b61bec0b7d5afed1d85f419aef93f5e2
|
|
| BLAKE2b-256 |
88c28ec346acb5a4d4db3ba258d2148f94f547574bdb15b99003482ca7ba660c
|