A simple package to read openpyxl worksheets like a csv DictReader
Project description
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 dictreader
reader = dictreader.DictReader("names.xlsx", worksheet="Sheet1")
for row in reader:
print(row["First Name"], row["Last Name"])
Output:
Boris Johnson Donald Trum Mark Rutte
Acknowledgements
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
Built Distribution
Close
Hashes for openpyxl-dictreader-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07c31b5a2b8520f014acc256e9351b1b638c4d97cfd5c363031603f06b364034 |
|
MD5 | a049b286da1deb3626f3b5ba2dcee8ed |
|
BLAKE2b-256 | 3a36c7f181f4e79151a28d7ac82860287539420b585a12889758b3aa4bd299b2 |
Close
Hashes for openpyxl_dictreader-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f30c53536983faa77a349dcc10154b7e85467d82972e472e971400a2e4e20de |
|
MD5 | 16452c7e0b9a577bc7166875fb43db73 |
|
BLAKE2b-256 | 89dd3c55bc0fec876765d56767b26620800a4fc6bcbce0e278e2670ff8c5a6c3 |