Python library for defining and styling Excel table ranges as objects, built on top of openpyxl.
Project description
ExcelTableKit
A declarative abstraction layer over openpyxl that simplifies styling Excel tables in .xlsx files. Define cell ranges as table objects and apply colors, fonts, borders, and alignment without touching PatternFill, Border, Side, or any other low-level openpyxl construct directly.
Installation
pip install exceltablekit
Requirements: Python >= 3.10
Quick start
Python
from exceltablekit.excel import ExcelManager, ExcelStyle
excel = ExcelManager("report.xlsx")
excel.set_table("A1", "D10")
excel.define_header(rows=1)
styles = ExcelStyle(excel)
styles.set_background("E8F4FD")
styles.set_font(type="Arial", size=11)
styles.set_alignment(horizontal="center", vertical="center")
styles.set_border()
styles.set_header_background("1F4E79")
styles.set_header_font(bold=True, hex_color="FFFFFFFF")
styles.set_header_border()
styles.auto_fit_columns()
CLI
# Apply default styling to a table range
exceltablekit style report.xlsx --start A1 --end D10 --header-rows 1
# Custom colors and border style
exceltablekit style report.xlsx --start A1 --end D10 \
--bg "E8F4FD" --header-bg "1F4E79" --border-style thin
# Show installed versions
exceltablekit info
Documentation
Full API reference and guides at exceltablekit.readthedocs.io (coming soon).
License
MIT — Angyee Marin
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 exceltablekit-2.0.1.tar.gz.
File metadata
- Download URL: exceltablekit-2.0.1.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9aaf6ace1c9036c959d9f23f40315bca9afa0692ceee7fbd8b927126be13a5ab
|
|
| MD5 |
a98298e66e12776d0a00e2e2c2ddbee3
|
|
| BLAKE2b-256 |
3f7cf927abafad846d0bd93ec5801a04502c21d20d5334eb71d761d8fd42b6aa
|
Provenance
The following attestation bundles were made for exceltablekit-2.0.1.tar.gz:
Publisher:
publish.yml on xanv754/ExcelTableKit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
exceltablekit-2.0.1.tar.gz -
Subject digest:
9aaf6ace1c9036c959d9f23f40315bca9afa0692ceee7fbd8b927126be13a5ab - Sigstore transparency entry: 2032472079
- Sigstore integration time:
-
Permalink:
xanv754/ExcelTableKit@17cbcfb199ccf47f6ac71212322fce419a3e7879 -
Branch / Tag:
- Owner: https://github.com/xanv754
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@17cbcfb199ccf47f6ac71212322fce419a3e7879 -
Trigger Event:
release
-
Statement type:
File details
Details for the file exceltablekit-2.0.1-py3-none-any.whl.
File metadata
- Download URL: exceltablekit-2.0.1-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5003d6af9a99e3faaacc141e33184d9c183b6023029c7e65cdb9efd1988d2690
|
|
| MD5 |
92b5ec5bd033acae324e9323957f2d63
|
|
| BLAKE2b-256 |
4714cd2354deeec80996917948f110df9f4cc0da42d449bb379174036d5e4d60
|
Provenance
The following attestation bundles were made for exceltablekit-2.0.1-py3-none-any.whl:
Publisher:
publish.yml on xanv754/ExcelTableKit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
exceltablekit-2.0.1-py3-none-any.whl -
Subject digest:
5003d6af9a99e3faaacc141e33184d9c183b6023029c7e65cdb9efd1988d2690 - Sigstore transparency entry: 2032472843
- Sigstore integration time:
-
Permalink:
xanv754/ExcelTableKit@17cbcfb199ccf47f6ac71212322fce419a3e7879 -
Branch / Tag:
- Owner: https://github.com/xanv754
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@17cbcfb199ccf47f6ac71212322fce419a3e7879 -
Trigger Event:
release
-
Statement type: