Skip to main content

Convert data files, images, and documents between formats from a single terse CLI.

Project description

sleepyconvert

sleepyconvert is a succinct Typer-based CLI that converts data files, images, and documents between formats, inferring intent solely from the input and output extensions.

Supported conversions

  • Data: csv, parquet, json, pkl, xlsx
  • Images: png, jpg, jpeg
  • Documents: html, pdf, md

Formats can only be converted within the same category.

Install

Install the CLI globally with uv:

uv tool install sleepyconvert

Usage

sleepyconvert <input_path> <output_path>

The tool takes exactly two arguments — there is no subcommand. Both paths are resolved relative to the current working directory, and their extensions must belong to the same category.

sleepyconvert data.csv data.parquet
sleepyconvert report.md report.pdf
sleepyconvert photo.png photo.jpg
sleepyconvert --help

Development

Create the environment and install in editable mode with uv:

uv venv
uv pip install -e ".[dev]"

Then run uv run pytest, or ./tools/test.sh to exercise the CLI end to end. Tear down with rm -rf .venv.

Configuration

sleepyconvert 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 key:

  • convert_output_archive_dir — when set to a directory, every conversion also writes a dated copy of its output there as <archive_dir>/<yyyy>_<mm>_<dd>_<output_filename>. Leave as null to disable.

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

sleepyconvert-2.2.0.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

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

sleepyconvert-2.2.0-py3-none-any.whl (42.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sleepyconvert-2.2.0.tar.gz
  • Upload date:
  • Size: 34.0 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 sleepyconvert-2.2.0.tar.gz
Algorithm Hash digest
SHA256 1e330f9ab7a5148ac57a670862bff4887bde8e717162d0da0b6da48b7005498d
MD5 02909a870b13c31d8a1e3be86bd88188
BLAKE2b-256 bcd106b4ef46c141960c123fa5c0d220f806110d5945cd53631a6bd785918f80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sleepyconvert-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 42.8 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 sleepyconvert-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38f088129207a617d81264ea179dc38599cb8204ee56d3171e984653c5179bc1
MD5 4a6777a63b71073c1a23a6e376978cb3
BLAKE2b-256 7e4f411c8a42d3a32ef8c62c431df928002ae0b4a763c5e38d3d0254a4cd3f2c

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