Skip to main content

Python binding for Rust's library for reading excel and odf file - calamine

Project description

python-calamine

Python binding for beautiful Rust's library for reading excel and odf file - calamine.

Is used

Installation

Currently, whl's builds are provided only for linux.

pip install python-calamine

Example

from python_calamine import get_sheet_data, get_sheet_names


get_sheet_names("file.xlsx")
# ['Page1', 'Page2']

get_sheet_data("file.xlsx")
# [
# ['1',  '2',  '3',  '4',  '5',  '6',  '7'],
# ['1',  '2',  '3',  '4',  '5',  '6',  '7'],
# ['1',  '2',  '3',  '4',  '5',  '6',  '7'],
# ]

Also, you can use monkeypatch for pandas for use this library as engine in read_excel().

from pandas import read_excel
from python_calamine.pandas import pandas_monkeypatch


pandas_monkeypatch()

read_excel("file.xlsx", engine="calamine")
#            1   2   3   4   5   6   7
# 0          1   2   3   4   5   6   7
# 1          1   2   3   4   5   6   7

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

python_calamine-0.0.2.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distributions

python_calamine-0.0.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (540.1 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.5+ x86-64

python_calamine-0.0.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (540.1 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

python_calamine-0.0.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (540.1 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

python_calamine-0.0.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (540.1 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page