A chainable worksheet iterator utility based on XlsxWriter.
Project description
worksheet-iterator
worksheet-iterator provides a WorkSheetIterator class based on XlsxWriter, which lets you write and format cells in a worksheet with chainable calls.
English
Installation
pip install worksheet-iterator
Usage example
The following example is the same as demo.py in the repository root. It shows how to use WorkSheetIterator to write data to a worksheet in a chainable way:
from worksheet_iterator import WorkSheetIterator
import xlsxwriter
wb = xlsxwriter.Workbook("demo.xlsx")
# Create a worksheet iterator that points to "Sheet1"
it = WorkSheetIterator(wb, "Sheet1")
# Write "ok" to the first cell, then move to the next column and write 42
it.set_value("ok").next_column().set_value(42)
wb.close()
Key features
- Utility for writing Excel worksheets based on XlsxWriter
- Supports chainable calls (such as
set_value().next_column().set_value()) - Makes it easier to organize and maintain complex Excel writing logic
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file worksheet_iterator-0.1.5.tar.gz.
File metadata
- Download URL: worksheet_iterator-0.1.5.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
580c6cbf4a8afc329aab2d24421e80c1d040d6e3dd25b3ae93a23922d3562113
|
|
| MD5 |
1a9467bf78065fbaebdbb978bca0a0d5
|
|
| BLAKE2b-256 |
f235bf9d5591fee2c8dc71666cc87f3092035ddcb179d55b3235eaec328077f9
|
File details
Details for the file worksheet_iterator-0.1.5-py3-none-any.whl.
File metadata
- Download URL: worksheet_iterator-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1adc8e5200c051b4ce2b1a5e7278a27d1454ba662db1ff1421902881d2b00411
|
|
| MD5 |
6d38ab381576c10a3cf7e76f8db831b3
|
|
| BLAKE2b-256 |
cc2e250ee2594d97fd615228b0dba31191863b02aa6d1595a13af4bc2376f565
|