Multiple file converters


Keywords
base64-encoding, converter, csv, images, jpeg, pdf, png, python, raw, tiff, xlsx
License
MIT
Install
pip install flconverters==1.0.0

Documentation

flconverters

A Python module containing multiple file converters.

Authors

CSynodinos

Installation

Via pip:

  pip install flconverters

This is my first attempt at creating a library. This library allows for the conversion of files into other formats (both as a single file and as a batch). It relies on pillow, opencv, XLSXWriter and docx for most conversions. The rest are done by default python libraries. Currently, installation is available through pip, but in the future conda installation will be possible.

Example

    >>> from flconverters import txtconvert
    >>> convert = txtconvert(__file__ = path/to/file/or/directory, __d__ = path/to/output/directory)
    >>> convert.txt_docx()

Features

  • Convert Text Documents to .docx

    • Convert to .ods
  • Convert Image files to other formats:

    • images to pdf.
    • image to base64 text file (UTF-8 encryption).
    • images to binary.
    • multiple compressed/raw image formats to .jpeg and .png.
  • Convert spreadsheet files (.xlsx, .csv, .tsv) into .xlsx, .csv or .tsv.

    • Convert to .ods
    • Convert to .html