Skip to content
Chris edited this page Jun 13, 2022 · 8 revisions

Welcome to the pylamine wiki!

Goals

  1. Basic Calamine interopt from Python.
  2. [Undecided] Add methods for writing to Excel.
  3. Allow read-from-object for file object parameter values.
  4. Benchmarks

Basic usage

NOTE: pylamine is favoring iteration over API stability.

To read CalamineRows from Excel files in Python:

from pylamine import get_sheet_data

data = get_sheet_data("path.xlsx", sheet=0)

To read CalamineRows from Excel files in Python with sheet names:

from pylamine import get_sheet_data

data = get_sheet_data("path.xlsx", sheet="Sheet1")

To read sheet names from Excel files:

from pylamine import get_sheet_names

sheet_names = get_sheet_names("path.xlsx")

To read all sheets from Excel files:

from pylamine import get_sheets

sheets = get_sheets("path.xlsx")
sheets
[("Sheet1", [["a", "b", "c"]])

Note that v0.1.x focuses on CalamineRows. In future versions pylamine will use more columnar-friendly formats.

Clone this wiki locally