Grebes
๐ต๏ธโโ๏ธ Grebes โ A lightweight, nature-inspired data quality auditor for structured datasets.
๐ Features
- Fast, zero-config audit of CSV, Excel (
.xls/.xlsx), JSON and JSON-Lines files - Rich CLI output with colored panels, sparklines, and warnings (powered by Rich)
- Key data quality checks:
- Missing value counts & percentages
- Unique-value ratio & (optional) samples
- Numeric statistics (mean, std, min, max) & IQR-based outlier counts
- Inline histograms (sparklines) for numeric distributions
- Date-range for datetime columns
- Top-N frequencies for low-cardinality text/categorical columns
- Mixed-type detection & duplicate-row warnings
- Two modes:
- CLI:
grebes data.csvโ instant terminal report - Python API: import
GrebesAuditorinto notebooks or scripts
- CLI:
๐พ Installation
# From PyPI (when published)
pip install grebes
# Or install your local copy in editable mode for development
git clone https://github.com/yourusername/grebes.git
cd grebes
pip install -e .
Requires Python โฅ 3.7 and the following packages:
pandas,numpy,openpyxl(for Excel), andrich.
โก CLI Usage
# Basic audit of a CSV file
grebes data.csv
# Audit an Excel sheet
grebes report.xlsx
# Audit a JSON-Lines file
grebes records.jsonl
# Show help / available options
grebes --help
Sample Output
Click to expand
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ๐ง GREBES DIAGNOSTIC REPORT โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Rows: 1,000 Cols: 5 Mem: 180.21 KB โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโโโโ id โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Type int64 โ
โ Missing 0 (0.0%) โ
โ Unique 1000 โ
โ Stats ฮผ=500.5,ฯ=288.8,min=1.0,max=1000.0,out=0 โ
โ Dist โโโโโโ
โโโ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโโโ amount โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Type float64 โ
โ Missing 0 (0.0%) โ
โ Stats ฮผ=495.4,ฯ=289.2,min=14.6,max=999.7,out=0 โ
โ Dist โโโโ
โโโโ
โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โฆ and so on for each column โฆ
๐ฆ Python API
import pandas as pd
from grebes.auditor import GrebesAuditor
df = pd.read_csv("data.csv")
auditor = GrebesAuditor(df)
auditor.print_report()
๐ How It Works
-
Reads your file (CSV, Excel, JSON(.l)) into a
pandas.DataFrame. -
Computes column-wise metrics:
- Missing values
- Unique ratio (and optional sample values for low-cardinality columns)
- Descriptive stats & outlier count for numerics
- Date ranges for datetimes
- Top frequencies for text/categorical
-
Renders an interactive, colorized report with:
- Panels per column
- Sparklines for quick distribution glance
- Warnings for mixed-type columns & duplicates
-
Zero external calls โ all local, so safe on private data.
๐ค Contributing
- Fork the repo
- Create a feature branch:
git checkout -b feat/my-awesome-feature - Commit your changes:
git commit -m "Add feature X" - Push to your branch:
git push origin feat/my-awesome-feature - Open a Pull Request
Please follow the existing code style and add tests for new functionality.
๐ License
MIT License ยฉ Your Name See LICENSE for details.
Built with ๐ and inspired by natureโs graceโlight as air, sharp as a grebeโs dive.
Metadata
Release files for grebes 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 | Provenance | Actions |
|---|---|---|---|---|
| grebes-0.1.1.tar.gz | 7.1 kB | Without provenance | Details for grebes-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| grebes-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for grebes-0.1.1-py3-none-any.whl |
Total release size: 14.7 kB
Release files / grebes-0.1.1.tar.gz
| Download URL | grebes-0.1.1.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62cea7f8923390763391cdf8fd1a58d0951755b5e6d234e11127331f6384443f
|
|
BLAKE2b-256 checksum How to use checksums |
a383b8edfd9105e74c63d97a5fc6efe402c9d0e1e5937be832b73edf649ce53d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / grebes-0.1.1-py3-none-any.whl
| Download URL | grebes-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2571225014cdc21b82ad3d602d3f42d5747fc16e056eea8645f206c1c4138464
|
|
BLAKE2b-256 checksum How to use checksums |
bed4de1bd04125739510d3b03409e7c622549f77a28ad32a7d261705dfe4773c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for grebes 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.