A CLI tool to summarize CSV files with basic stats
Project description
CSV Summary CLI Tool
A command-line tool to summarize CSV files with basic statistics. Lightweight, fast, and extensible.
Features
- Count total rows and columns
- Extract column names
- Infer data types (
intorstr) - For numeric columns:
- Mean
- Std deviation
- Min/Max
- Median
Installation
git clone https://github.com/MadhurDixit13/csv_summary_cli.git
pip install csv-summary-cli
Recommended
pip install pipx
pipx install csv-summary-cli
Once installed, run it using:
csv-summary data.csv
Sample Output
Future Scope
- Float support
- Missing value counts
-
--numeric-onlyoption - Handle malformed rows
- Tabular formatting (
tabulate) - Colored terminal output (
rich,colorama) - Column filters (
--columns age,salary) - Export summary to JSON
Sample Input
Name,Age,Department,Salary,StartDate
Alice,29,Engineering,85000,2019-08-01
Bob,34,Marketing,62000,2018-03-15
Charlie,25,Engineering,73000,2021-06-30
Diana,45,HR,54000,2010-10-01
Evan,38,Engineering,,2017-01-12
Fay,30,Marketing,66000,2020-09-20
Grace,,HR,58000,2015-07-25
License
MIT © [Madhur Dixit]
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_summary_cli-0.1.0.tar.gz
(3.4 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_summary_cli-0.1.0.tar.gz.
File metadata
- Download URL: csv_summary_cli-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e35545b663dcfe5fad14c6096758688e6ed3df42acf14996652c5b5b1cc2f752
|
|
| MD5 |
b202aea05ae0dda76d9f3c76ba03d6df
|
|
| BLAKE2b-256 |
7fa2f581a6b508468559348e9cb0da49e103ed9e9309a6c296a9fd7a5ee14cf2
|
File details
Details for the file csv_summary_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: csv_summary_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
369aa3d4757d4d4e71e09936a819093f57891c7fbb54ae48a4696fa0ff9cfecd
|
|
| MD5 |
c8bad2b86d7d6005bee0d2db79fee1ff
|
|
| BLAKE2b-256 |
d124d49a7bac0a421e4c3a818c07ae9a9142ec91888662f9526766702e97182d
|