csv-inspector
csv-inspector is a Python package that reads a CSV file and gives a structured report covering:
- Table title — derived from the file name
- Column headers — every column found in row 1
- Row counts per column — total rows, non-empty rows, empty rows, and fill-rate %
Installation
pip install csv-inspector-tool
Requires Python 3.8 or higher. No third-party dependencies — standard library only.
Quick start
Command line
csv-inspector students.csv
Output:
============================================================
Table : students
File : /home/user/data/students.csv
Rows : 120
Columns: 4
Headers & row counts:
'student_id' total=120 non-empty=120 empty=0 fill=100.0%
'name' total=120 non-empty=118 empty=2 fill=98.33%
'grade' total=120 non-empty=120 empty=0 fill=100.0%
'email' total=120 non-empty=95 empty=25 fill=79.17%
============================================================
Python API
from csv_inspector import inspect
report = inspect("students.csv")
print(report.title) # "students"
print(report.headers) # ['student_id', 'name', 'grade', 'email']
print(report.total_rows) # 120
for stat in report.column_stats:
print(f"{stat.name}: {stat.fill_rate}% complete")
# Or print the full formatted report:
print(report)
Release files for csv-inspector-tool 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| csv_inspector_tool-0.1.1.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| csv_inspector_tool-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / csv_inspector_tool-0.1.1.tar.gz
| Download URL | csv_inspector_tool-0.1.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e4108622b403dc746149f9bb393af67588a2b414b48d19a0f80721cd0052f8b
|
|
BLAKE2b-256 checksum How to use checksums |
c81b9ac229dce29885ec9c3526d96d2d3afbe48417bb5ff56243f85f72e24e34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / csv_inspector_tool-0.1.1-py3-none-any.whl
| Download URL | csv_inspector_tool-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
812bf4a75a8b27293aac2df2c4e0be8ad17926165d8a8863c397a6ececfe56ae
|
|
BLAKE2b-256 checksum How to use checksums |
0a25a561e218181d6886bd228d8112be1ff2f94d787cd7ec060e8b6289c8a12a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|