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
pip 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
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
Then run pytest, or ./tools/test.sh to exercise the CLI end to end. Tear down with deactivate && 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 asnullto disable.
Documentation
- Specification — what the tool does
- Project outline — repository layout
- Test drive — setup, testing, and CLI usage
- Publishing — release to PyPI with Poetry
Project details
Release history Release notifications | RSS feed
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 sleepyconvert-2.1.0.tar.gz.
File metadata
- Download URL: sleepyconvert-2.1.0.tar.gz
- Upload date:
- Size: 33.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 |
c6d023f54df3bf7d8184807672e97b22fdac434fa60365feb7e08f7f2dc1fa4c
|
|
| MD5 |
7c382c253b458cf8d977a5562d5fd39b
|
|
| BLAKE2b-256 |
1c9dc7a2a7916880242b657c679a82daca15274f06bc278605f1c0204ad5de1f
|
File details
Details for the file sleepyconvert-2.1.0-py3-none-any.whl.
File metadata
- Download URL: sleepyconvert-2.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
176c6a750d4327200dcf4fe4176197abc1a2a32d7dc661bc18fcda9c00e900d8
|
|
| MD5 |
fc6882cd7bb201aecbd658046f100755
|
|
| BLAKE2b-256 |
4fd9e5a1c97a53362affeb99a3b5e696e6c0f6dd0943a419081585f3f1cd251d
|