Skip to main content

Peek at local datafiles fast!

Project description

sleepydatapeek

sleepydatapeek is a small Typer-based CLI for quickly inspecting tabular data files and generating markdown + PDF reports with summary charts.

Supported files

  • Data files: csv, parquet, json, pkl, xlsx
  • Metadata files: pdf, png, jpg, jpeg

Deploy

PDF report generation uses WeasyPrint, which depends on native libraries (pango, cairo, gdk-pixbuf). On macOS install them with Homebrew first:

brew install pango

On Debian/Ubuntu the equivalent is apt install libpango-1.0-0 libpangocairo-1.0-0 libgdk-pixbuf-2.0-0. See the WeasyPrint install docs for other platforms.

Then set up the project:

python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

Usage

sleepydatapeek summary path/to/data.csv
sleepydatapeek summary path/to/resume.pdf
sleepydatapeek report path/to/data.csv path/to/output_dir --groupby ProductName
sleepydatapeek report path/to/data.csv  # output folder defaults to ./<file>_report

The report command writes the markdown, rendered PDF, and chart images into the output folder, and copies the generated PDF onto the clipboard (macOS) so it is ready to paste. The output folder is optional; when omitted it defaults to <file>_report in the current working directory.

Teardown

deactivate
rm -rf .venv

Configuration

sleepydatapeek is a sleepy util and reads shared settings from ~/sleepyconfig/params.yml. On first run the file is created with defaults and a note is printed to the console. Relevant keys:

  • datapeek_sample_size — number of rows shown in the sample table.
  • datapeek_table_styletabulate table style used for the sample/detail tables (e.g. rounded_grid, github).

Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sleepydatapeek-2.1.0.tar.gz (37.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sleepydatapeek-2.1.0-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

Details for the file sleepydatapeek-2.1.0.tar.gz.

File metadata

  • Download URL: sleepydatapeek-2.1.0.tar.gz
  • Upload date:
  • Size: 37.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.13.5 Darwin/25.5.0

File hashes

Hashes for sleepydatapeek-2.1.0.tar.gz
Algorithm Hash digest
SHA256 0b6b11d68200ec06d369fcbc0fb8fb4a72312ab6f92b3ac991dbf62f8c65e5b6
MD5 042bcdc63aab3eacd9dfeda2ce4441d5
BLAKE2b-256 8407430f8dcedea1ee38cb576746c2b873b03b045fb075ad794c3bbf5ed747fb

See more details on using hashes here.

File details

Details for the file sleepydatapeek-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: sleepydatapeek-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 42.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

Hashes for sleepydatapeek-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e3671580f6313a5fd925da55be26cc7289b54d46bd0748bad6c580db71ce724
MD5 9698830b23e9f095208f6509fa36b719
BLAKE2b-256 1fb36d5d5e380d3502d5ddfc484fceee94e22d4a10174024368d715bc5833d84

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page