CSV Explorer by Tomas Gonzalez - A CLI tool for exploring CSV files
Project description
csvex - CSV Explorer CLI
by Tomas Gonzalez
A simple CLI tool for exploring CSV files, built by Tomas Gonzalez.
Installation
# Create virtual environment
python3 -m venv .venv
source .venv/bin/activate
pip install pandas
# Run
.venv/bin/python csvex.py <file> [command]
Or make it executable and add to PATH:
chmod +x csvex.py
ln -s $(pwd)/csvex.py /usr/local/bin/csvex
Usage
# Preview (default shows first 10 rows)
csvex data.csv
csvex data.csv head -n 20
# Filter rows
csvex data.csv filter age > 30
csvex data.csv filter city == "New York"
csvex data.csv filter name contains "John"
# Select columns
csvex data.csv select name email
csvex data.csv select name,age,salary
# Statistics
csvex data.csv stats
# Unique values
csvex data.csv unique country
Commands
| Command | Description |
|---|---|
head [-n N] |
Display first N rows (default: 10) |
filter <col> <op> <val> |
Filter by column value |
select <cols...> |
Select specific columns |
stats |
Show statistics for numeric columns |
unique <col> |
List unique values in a column |
Filter Operators
- Comparison:
==,!=,>,<,>=,<= - String:
contains,startswith,endswith
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
csvex-1.0.0.tar.gz
(3.5 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
csvex-1.0.0-py3-none-any.whl
(3.8 kB
view details)
File details
Details for the file csvex-1.0.0.tar.gz.
File metadata
- Download URL: csvex-1.0.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4187dde2a56909f94cde959f26536c2dd0212895cb4f7ed08352363f6579404b
|
|
| MD5 |
0da9a07711add4d637ae707391af6506
|
|
| BLAKE2b-256 |
875cbf5d2204439465c21e01bc21bd23ab80a9ae8dc556c02c5cd115068696ce
|
File details
Details for the file csvex-1.0.0-py3-none-any.whl.
File metadata
- Download URL: csvex-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90f19e5277784800f42aac646321d0683e20a6550890b8c5fb7c15b1e80ae51c
|
|
| MD5 |
558e508da3fcbee68080bb4f41a0802d
|
|
| BLAKE2b-256 |
c5947f73d6fe62d644397efdfa99778ed8cc33f3b1fbb2dffe0f11b1f2504df1
|