Skip to main content

Converts data files, images and documents to different formats

Project description

sleepyconvert

A quick way to convert file formats.


Welcome to sleepyconvert!

Do you find yourself bookmarking various online converters or having several tools to convert common file types? I did, and it didn't spark joy.

sleepyconvert is a tool that handles this in a minimal syntax.

Quickly convert file formats to and from:

  • data
    • csv
    • parquet
    • json
    • pkl
    • xlsx
  • img
    • png
    • jpg/jpeg
  • doc
    • html
    • pdf
    • md

For some data files, you can optionally compress (gzip) the output.

ℹ️ Note that this tool presumes format by file extension. If you leave out extensions, or give csv data a .json extension for funsies, then you're being silly.

ℹ️ Due to how document file formats vary, not all functionality can be preserved from one type to another, and formatting 1-1-ness may vary.


Get Started 🚀

pip install sleepyconvert
pip install --upgrade sleepyconvert

python -m sleepyconvert --help
python -m sleepyconvert data data.csv data.parquet --compress
python -m sleepyconvert img photo.png photo.jpg
python -m sleepyconvert doc photo.html photo.pdf

Usage ⚙

Set a function in your shell environment to run a script like:

alias convert='python -m sleepyconvert'

Presuming you've named said macro convert, print the help message:

convert --help
convert data data.csv data.parquet
convert img photo.png photo.jpg
convert doc photo.html photo.pdf

Technologies 🧰


Contribute 🤝

If you have thoughts on how to make the tool more pragmatic, submit a PR 😊.

To add support for more data/file types:

  1. append extension name to supported_<mode>_formats in sleepyconvert_toolchain.params.py
  2. add detection logic branch to the main function in sleepyconvert_toolchain/commands.py
  3. update this readme

License, Stats, Author 📜

example image tag

PyPI - License PyPI - Version GitHub repo size

See License for the full license text.

This package was authored by Isaac Yep.
👉 GitHub
👉 PyPI

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-1.0.5.tar.gz (30.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-1.0.5-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sleepyconvert-1.0.5.tar.gz
  • Upload date:
  • Size: 30.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.4.0

File hashes

Hashes for sleepyconvert-1.0.5.tar.gz
Algorithm Hash digest
SHA256 78e5452bc997aa3da7b90775fee5de07b510fb04ca5e1015ca78cd4b0ef72e62
MD5 9372713114d8dec93d3c0c06f86051ac
BLAKE2b-256 070416064e18301f8ac9a072e3a32a6f213a1a55a51f05e01755cac5c47ffca7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sleepyconvert-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 30.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.4.0

File hashes

Hashes for sleepyconvert-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5c5769a97c7f83d637e538cb2d4a7ac5c826fe66462f8bc0f40d771e8536fece
MD5 2a9b0fd289a423a671fea9f9614caeb9
BLAKE2b-256 1851ff4582c56c4a64ba2164f1c2f01c3cc58611159da95fe7e2c2aa1262b3b9

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