Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

csv_table_cli-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

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

Hashes for csv_table_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dd07fb38a145ebace72fa88096e7e89846446cd36b28fa56bd7a189ed3130190
MD5 eef0dd1442c8ef4224220d3f1393f0c1
BLAKE2b-256 6307e9eb7bccb188653aec45c0477aa405bf41bf907b5454b487bfe61e33b86e

See more details on using hashes here.

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

Hashes for csv_table_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12bac0ea0e6f58f5dadad0eda439742454d390b3f8ff1a2a72ef0a203ab9ed5d
MD5 b61bec0b7d5afed1d85f419aef93f5e2
BLAKE2b-256 88c28ec346acb5a4d4db3ba258d2148f94f547574bdb15b99003482ca7ba660c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page