An interface similar to csv.DictReader for openpyxl WorkSheet objects
Project description
XLSX DictReader
This is a simple Python module that takes an openpyxl Worksheet
object and returns a list of dictionaries. Each dictionary represents a row in the Excel file. The keys of the dictionary are the column names and the values are the cell values.
I've recently found myself, several times, wanting a thing like csv.DictReader
for specific ranges of cells in Excel files. This does the job for me so far.
Sample Usage:
from openpyxl import load_workbook
from xlsx_dictreader import DictReader
wb = load_workbook('sample.xlsx', data_only=True)
ws = wb.active
reader = DictReader(ws, skip_blank=True)
for row in reader:
print(row)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xlsx_dict_reader-0.1.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for xlsx_dict_reader-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1abc885f7396f50010759d6f9478789e7b979eaeb837b15b8b82f0e1fe9af0e9 |
|
MD5 | e5affcc6b6e7a90e47b6a28cd7c6b5b3 |
|
BLAKE2b-256 | 9415f4fb3be91eba8a2853d7c85b82838254c1584a07d317453862cfd46dc666 |