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
    • TODO: not yet implemented
  • 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 function convert, print the help message:

convert --help
convert data data.csv data.parquet

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.0.1.tar.gz (15.4 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.0.1-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sleepyconvert-0.0.1.tar.gz
  • Upload date:
  • Size: 15.4 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.0.1.tar.gz
Algorithm Hash digest
SHA256 64942a58843ada82831210c3c07ec795c901f6f961d617d5a239e3bc7024b3a0
MD5 f415ef2f5423a389b3368065bd60fd9c
BLAKE2b-256 f50d42300949d93e443d3949d19cbea15ec412cf25d74556813a803140b6daf3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sleepyconvert-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.8 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c04be07c4f594fcdbbf7269e6efd5c7956fa844f1a02711ab6e418f67d3a916
MD5 1847b6d1993f5f206d67b50405e59bb4
BLAKE2b-256 5beb5e6c826d03256903718cd2724b07ce614ec28bc598e5ee0d9eaca796215e

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