Skip to main content

openpyxl-dictreader

Description

A module that maps the information in each row in an openpyxl worksheet to a dict whose keys are given by the optional fieldnames parameter, similar to Python's native csv.DictReader.

Installing

pip install openpyxl-dictreader

Examples

Input:

import openpyxl_dictreader

reader = openpyxl_dictreader.DictReader("names.xlsx", "Sheet1")
for row in reader:
    print(row["First Name"], row["Last Name"])

Output:

Boris Johnson
Donald Trump
Mark Rutte

load_workbook keyword arguments

The openpyxl load_workbook method takes several optional keyword arguments. These can be passed into the openpyxl_dictreader.DictReader constructor as keyword arguments:

reader = openpyxl_dictreader.DictReader("names.xlsx", "Sheet1", read_only=False, keep_vba=False, data_only=False, keep_links=True)

Acknowledgements

Metadata

Release files for openpyxl-dictreader 0.1.9

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

Built distribution (wheel)

Table of built distributions (wheels) for openpyxl-dictreader 0.1.9
File Interpreter ABI Platform
openpyxl_dictreader-0.1.9-py3-none-any.whl Python 3 none any Details

Release files / openpyxl_dictreader-0.1.9-py3-none-any.whl

Download URL openpyxl_dictreader-0.1.9-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf10dd1fbe05ef900e79f2661bdbaa1e2f58d445a7964162453b068434331041
BLAKE2b-256 checksum
How to use checksums
6b9785b8a07895630686f6f2807b7b2b1361e5696b2e56ca8505d40c501549e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.7

Release history Release notifications | RSS feed

This release

0.1.9 This release

1 release file

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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