Skip to main content

A command-line tool for viewing CSV files with aligned columns

Project description

ViewCSV

A command-line tool for viewing CSV files with aligned columns. It automatically adjusts column widths based on content, making CSV files easier to read in the terminal.

Features

  • Automatically aligns columns based on content width
  • Supports CJK (Chinese, Japanese, Korean) characters
  • Cross-platform compatibility (Windows, Linux, macOS)
  • Header row highlighting
  • Configurable display options

Installation

pip install viewcsv

Usage

viewcsv data.csv                 # View entire CSV file
viewcsv data.csv -n 10          # View first 10 rows
viewcsv data.csv --no-header    # View without header row

Examples

Input CSV:

Name,Age,City
John Smith,25,New York
张三,30,Beijing

Output:

Name       | Age | City
-----------------------
John Smith | 25  | New York
张三       | 30  | Beijing

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

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

viewcsv-1.0.0.tar.gz (41.3 kB view details)

Uploaded Source

Built Distribution

viewcsv-1.0.0-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file viewcsv-1.0.0.tar.gz.

File metadata

  • Download URL: viewcsv-1.0.0.tar.gz
  • Upload date:
  • Size: 41.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for viewcsv-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d0d8873e11747b3570856beddcc7f8caa79dc8d8423b563db42dd03d76d92a85
MD5 bf7777f88e3a292ebae8e615a060d80c
BLAKE2b-256 929b5842e35b7868d5c6e3f235e937e4601062c3c4ce449e3c484b61cc4d4feb

See more details on using hashes here.

File details

Details for the file viewcsv-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: viewcsv-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 28.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for viewcsv-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99fe2deff550b0316d4552b251757172337a7cb0b17a80101a3217a8350dbef9
MD5 7fee12fa426cb08612addd9df9cba82d
BLAKE2b-256 66ba17829b28df18cfa69f26925b7d0e285173aaa9b31145eea2b417e44b12a8

See more details on using hashes here.

Supported by

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