Skip to main content

Convert Excel to Wiki while maintaining formatting

Project description

ExcelToWiki

Use is trivial as shown below:

from exceltowiki import exceltowiki
e2w = excelToWiki("./test.xlsx")
# print sheet names in the excel workbook
print e2w.sheetnames
# print wiki text for sheet named Sheet1
print e2w.getSheet("Sheet1")
# print wiki text for entire workbook
print e2w.getWorkbook()

Options are:

exceltowiki(excelworkbook, [list of sheet names to process], caption foreground color, caption background color)

Where caption is set from the sheet name (no way to currently modify this).

Features

exceltowiki can capture:

  • Font styling: bold, underline, strikethrough

  • Cell styling: foregroudn color, background color

  • Sheet features: merged cells are captured, sheet name is captured as caption to the wiki table

exceltowiki currently cannot capture anything more complex than the above list. Features such as ‘format as table’, conditional formatting, and other advanced items are not inspected or captured. For these, only the data value in the cells will be captured.

Release Notes: 0.1.7

Cleaner output of wiki text.

  • Common cell styles across the row are boiled up to row style.

  • Common row style items are boiled up to table.

Release Notes: 0.1.6

Minor: black was being ignored for bg color as well. Instead of only the fg color

Release Notes: 0.1.5

  • Added border as default.

  • Removed font color from markup when color is black

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

exceltowiki-0.1.7.tar.gz (38.3 kB view details)

Uploaded Source

File details

Details for the file exceltowiki-0.1.7.tar.gz.

File metadata

  • Download URL: exceltowiki-0.1.7.tar.gz
  • Upload date:
  • Size: 38.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for exceltowiki-0.1.7.tar.gz
Algorithm Hash digest
SHA256 09cff9a723547597a5234ff8d16e76211bc32038e13b1becec9c8c34da522908
MD5 a36ac1f4453cb74a4446698df0be58cf
BLAKE2b-256 25423412e6caf58894ecbdb89d8a0af8201498e86cfb2d186504da1a540c227b

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