Skip to content
/ ods2md Public
forked from kennytm/ods2md

Convert LibreOffice Calc Spreadsheets (*.ods) into Markdown tables.

Notifications You must be signed in to change notification settings

cthtuf/ods2md

 
 

Repository files navigation

ods2md

License: MIT Build Status codecov Maintainability

Convert LibreOffice Calc Spreadsheets (*.ods) into Markdown tables

Sample output

Install

  1. Get Python 3.7+

  2. Install poetry

    pip install poetry
  3. Install packages

    poetry install --no-dev

Usage

To stdout

ods2md --in-file=source.ods

To file

ods2md --in-file=source.ods --out-file=output.md

Use in own code

from ods2md import OdsConverter

# Get result to variable
result: StringIO = OdsConverter('source.ods').convert()

# Save result to file
OdsConverter('source.ods').convert('output.md')

Limitations

  • This program disregards all formats. Currencies and percentages will be displayed as plain numbers.
  • Merged cells are not supported, the content will be shown at the first cell (this is actually a limitation of GFM table)

About

Convert LibreOffice Calc Spreadsheets (*.ods) into Markdown tables.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.2%
  • Shell 13.8%