Skip to main content

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)

Metadata

Release files for xlsx-dict-reader 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xlsx-dict-reader 0.4.0
File Size Uploaded Provenance Actions
xlsx_dict_reader-0.4.0.tar.gz 2.9 kB Without provenance Details for xlsx_dict_reader-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xlsx-dict-reader 0.4.0
File Interpreter ABI Platform Actions
xlsx_dict_reader-0.4.0-py3-none-any.whl Python 3 none any Details for xlsx_dict_reader-0.4.0-py3-none-any.whl

Total release size: 6.3 kB

Release files / xlsx_dict_reader-0.4.0.tar.gz

Download URL xlsx_dict_reader-0.4.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
08d8085f68cce42f899580a9345802e6c8879416130bdfda2af1baabef9e246b
BLAKE2b-256 checksum
How to use checksums
ac30c89cd023985da1425cf30776947274daea3ae15fe641034e097eafb89841
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.12 Darwin/24.6.0

Release files / xlsx_dict_reader-0.4.0-py3-none-any.whl

Download URL xlsx_dict_reader-0.4.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36ae09ddebeda9a3ba7517b348a63bdf5dcd5a655a42a8247bfdf849bed31dc3
BLAKE2b-256 checksum
How to use checksums
e80194eb01285b513591ceea415e853cd54605aeef34e2b1550d96fd2366b339
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.12 Darwin/24.6.0

Security for xlsx-dict-reader 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page