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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc56f9220d78e62220b82e87534e473d5c1118778a9762d019e11f76054d1bc7 |
|
MD5 | cd38b54654ef7f23bef600669a68c8f9 |
|
BLAKE2b-256 | 8140e308423076b8c2b6f9489e22fc95cb74ed271a7e688dfa52d56b15a3a78a |
Close
Hashes for openpyxl_dictreader-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a76da8ce56627546e50578df0790064bcabaad7bea5da3431c1f786ef4a0c74a |
|
MD5 | 8e2c748f2928e637d33eac29283f04e9 |
|
BLAKE2b-256 | b4b48e4d1b6a883d87f4ad143471a34ecc5c9084ef6b25228883710de303092d |