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 with uv:

uv venv
uv 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

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.2.0.tar.gz (37.7 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.2.0-py3-none-any.whl (42.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sleepydatapeek-2.2.0.tar.gz
  • Upload date:
  • Size: 37.7 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.2.0.tar.gz
Algorithm Hash digest
SHA256 a77643292885ded160cee58d3004e057662a25ef085b47b8c23ad732f1571eb9
MD5 403c9a90ec7a8d66c614d5ff6377662a
BLAKE2b-256 75ba46f4f73c3c1d50b173012932d351957ffa85f5ea5d6dd3cdd55d0689243e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sleepydatapeek-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 42.6 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1927bc5342cb4d42069b5648011295ca0851ce92c0af41a094e9ca2e5feb22e7
MD5 1092552e413e00be66d678b51bd02242
BLAKE2b-256 a229e91a34108ba13608aa36122ee14164a742f7b3d49adbbb81988393d3cda5

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