๐ sleepydatapeek
Peek at local data files fast โ instant summaries and pretty markdown/PDF reports.
sleepydatapeek is a Typer CLI for taking a quick look at tabular data files โ print a tidy overview + schema + sample of any csv/parquet/json/pkl/xlsx (and metadata for pdf/images), or generate a shareable markdown + PDF report with charts.
Install
uv tool install sleepydatapeek # or: pipx install sleepydatapeek
Native libraries: PDF reports use WeasyPrint, which needs pango/cairo/gdk-pixbuf. On macOS: brew install pango. On Debian/Ubuntu: apt install libpango-1.0-0 libpangocairo-1.0-0 libgdk-pixbuf-2.0-0. See the WeasyPrint docs for other platforms.
Configure
sleepydatapeek is a sleepy util and reads its settings from the shared ~/sleepyconfig/params.yml, using the datapeek_ key prefix. If the file is absent it writes only its own section (below) and says so; if a value it needs is missing it prints this snippet and asks you to verify your config.
# sleepydatapeek
datapeek_sample_size: 5 # rows shown in the sample table
datapeek_table_style: rounded_grid # any tabulate style (simple, github, โฆ)
Supported files
| Kind | Extensions |
|---|---|
| Data (schema + sample) | csv, parquet, json, pkl, xlsx |
| Metadata (file facts) | pdf, png, jpg, jpeg |
Commands
| Command | What it does |
|---|---|
summary |
Print an overview, schema, and sample of a file |
report |
Write a markdown + PDF report with charts |
summary
Print a concise overview, schema, and sample of a data file. Table style + sample size come from your config.
$ sleepydatapeek summary sales.csv
โญโโโโโโโโโโโโโโฌโโโโโโโโโโโโฎ
โ File โ sales.csv โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโค
โ File size โ 1.02 MB โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโค
โ Rows โ 15230 โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโค
โ Columns โ 6 โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโค
โ Index โ index โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโค
โ Index dtype โ int64 โ
โฐโโโโโโโโโโโโโโดโโโโโโโโโโโโฏ
Schema
โญโโโโโโโโโโโโโฌโโโโโโโโโโฎ
โ order_id โ int64 โ
โโโโโโโโโโโโโโผโโโโโโโโโโค
โ region โ object โ
โโโโโโโโโโโโโโผโโโโโโโโโโค
โ product โ object โ
โโโโโโโโโโโโโโผโโโโโโโโโโค
โ quantity โ int64 โ
โโโโโโโโโโโโโโผโโโโโโโโโโค
โ revenue โ float64 โ
โโโโโโโโโโโโโโผโโโโโโโโโโค
โ ordered_at โ object โ
โฐโโโโโโโโโโโโโดโโโโโโโโโโฏ
Sample (5 rows)
โญโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฎ
โ โ order_id โ region โ product โ quantity โ revenue โ ordered_at โ
โโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโโโค
โ 0 โ 1001 โ us-west-2 โ Widget โ 3 โ 59.97 โ 2026-01-04 โ
โโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโโโค
โ 1 โ 1002 โ eu-west-1 โ Gizmo โ 1 โ 12.5 โ 2026-01-04 โ
โโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโโโค
โ 2 โ 1003 โ us-west-2 โ Sprocket โ 5 โ 210 โ 2026-01-05 โ
โโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโโโค
โ 3 โ 1004 โ ap-south-1 โ Widget โ 2 โ 39.98 โ 2026-01-05 โ
โโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโโโค
โ 4 โ 1005 โ eu-west-1 โ Cog โ 4 โ 8 โ 2026-01-06 โ
โฐโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโโโโฏ
Point it at a pdf or image instead and it prints that file's metadata (dimensions, page count, EXIF, โฆ) in the same style. When a table is too wide, extra columns are elided with a โ ๏ธ too wide note.
report
Generate a markdown report + rendered PDF + summary charts for a data file. The PDF is copied to your clipboard (macOS) so it's ready to paste. --groupby <column> adds a grouped row-count table; the output folder defaults to <file>_report.
$ sleepydatapeek report sales.csv --groupby region
Report folder: /Users/dingus/work/sales_report
Relative path: sales_report
markdown: sales.md
pdf: sales.pdf
PDF copied to clipboard โ ready to paste.
Open with Zed: zed /Users/dingus/work/sales_report
Open with VS Code: code /Users/dingus/work/sales_report
Open PDF: open /Users/dingus/work/sales_report/sales.pdf
Reveal in Finder: open -R /Users/dingus/work/sales_report/sales.pdf
The folder gets the markdown, the PDF, and chart PNGs (null-counts and distinct-counts per column). report only accepts data files.
Development
uv venv
uv pip install -e ".[dev]"
uv run pytest # or ./tools/test.sh
Documentation
- Specification โ what the tool does
- Project outline โ repository layout
- Test drive โ setup, testing, and CLI usage
- Adding a command โ how to extend the CLI
- Publishing โ release to PyPI
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 sleepydatapeek-2.3.1.tar.gz.
File metadata
- Download URL: sleepydatapeek-2.3.1.tar.gz
- Upload date:
- Size: 27.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.13.5 Darwin/25.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
637ae1f4b2ee2b5af50cbc0833dc07639bad6e9a24b2e0396fff338250be1700
|
|
| MD5 |
00a9c2da335bcca827354404b2eb98c1
|
|
| BLAKE2b-256 |
9396cd6e632d23128a2d14c08400fe4b4fb349495adc5484276a76ece3d20a04
|
File details
Details for the file sleepydatapeek-2.3.1-py3-none-any.whl.
File metadata
- Download URL: sleepydatapeek-2.3.1-py3-none-any.whl
- Upload date:
- Size: 31.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.13.5 Darwin/25.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0731b8740027219a6ac375c64e57362aac789f5d362c8a980e54837c1ba942d4
|
|
| MD5 |
ac459601189a291dc6a7d16743a0021c
|
|
| BLAKE2b-256 |
926862956e60313c8bd543a92b6caee984e2f63f5ba8560e2d01feb9465fa816
|