Skip to main content

Library for reading tabular data from excel in a very forgiving manner.

Project description

Overview

EXCELerator is high-level, very configurable library for reading tabular data from Excel worksheets. It is a wrapper around the excellent openpyxl library

Yet another library for reading from Excel!?

Yes. At the time of this library's authoring, excel readers fell into two camps:

  • lower-level libraries like openpyxl and xlrd, which offer high functionality. But as a frequent Excel user, I found myself often rewriting the same code to perform the same tasks.
  • simple libraries like excel2dict and excel2json
  • middleware like django-excel and pyexcel whose focus is reading from and writing to excel.

The use case that none of these helped with was reading tabular data from excel forms that have been filled out by your coworkers. You know how this works. They're given a form to fill out, and by the time it gets back to you, it's been modified, even if slightly. Sometimes the header row gets displaced a few rows down or a few columns to the right. Sometimes a header is changed slightly - perhaps a whitespace was added to the end or a newline was inserted to make the header look nicer to the user.

Either way, by the time it got back to you, it changed just enough to throw a wrench into the pandas, openpyxl, or xlrd script you wrote.

Up until now, you were forced to simply normalize each of these forms before reading the data. But now you can let EXCELerator do the heavy lifting.

Future

The library current has a sparse set of features. But more are coming quickly.

Tutorial

pip install EXCELerator
from excelerator import TableReader

path = r'path\to\excel\sheet.xlsx'
sheetname = 'worksheet name'
tr = TableReader()
my_table_as_dict = tr.get_fields(path, sheetname)

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

EXCELerator-0.5.tar.gz (39.8 kB view hashes)

Uploaded Source

Built Distribution

EXCELerator-0.5-py3-none-any.whl (22.3 kB view hashes)

Uploaded Python 3

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