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
    • TODO: not yet implemented

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.


Get Started 🚀


pip install sleepyconvert
pip install --upgrade sleepyconvert

python -m sleepyconvert data data.csv data.parquet --compress
python -m sleepyconvert --help

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 selfie.jpg selfie.png

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.

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-0.1.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

sleepyconvert-0.1.1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sleepyconvert-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3ea497caea262332157ce002e5d3219b208263e313f66bf7c5a84030b1b2d0d7
MD5 4dbdec6f3d254e9d3921cad20a471f00
BLAKE2b-256 3b193fe91bd1282f623a65b845e3ef66c11f5416494e727b9d36beec10e7f962

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sleepyconvert-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d253e60dd4c66722767750146cfa0a4f15616a490a803bec863cbd8b60e37cb0
MD5 a74713b6f1b3c1c1037189a9ae12f8df
BLAKE2b-256 ef2313b5f0aaf02773d102a6b4d0b42340052430f76e1a39a1734341c3810439

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