minexcel
minexcel is a Python package designed for processing complex Excel tables and extracting structured data blocks from formatted layouts.
pip install minexcel
Reading Formatted Data Blocks in Excel
Formatted data blocks in Excel are often challenging to parse, especially when merged cells are involved. minexcel abstracts the cells in data block into distinct components and supports simplified markup for configuration.
To define a template, you can create a new .xlsx file and structure your data block as follows:
-
[tablemeta]: Table metadata. Each block can have multiple table metadata entries, but each entry must contain a single value. -
[rowmeta]: Row metadata. Represents row-wise extended information, including traditional rownames. -
[colmeta]: Column metadata. Represents column-wise extended information including traditional colnames. -
Leave empty: Core data area. This region should contain no rowname or colname.
-
[ignore]: Cells to skip during parsing. Note: The original cell containing the metadata name must be marked as[ignore].
Use minexcel to parse the data:
import minexcel as mxl
tmpl = mxl.parse_template("template.xlsx")
res = mxl.read_block_excel("data.xlsx", tmpl)
This returns structured data matching the template's design:
Metadata
Release files for minexcel 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| minexcel-0.2.2.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| minexcel-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / minexcel-0.2.2.tar.gz
| Download URL | minexcel-0.2.2.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
139642b4a790e0382abeb310731c61ac42c7bf72bdb8ce3ad88e1b93e4cc0ec6
|
|
BLAKE2b-256 checksum How to use checksums |
6effa080bdb0b19d2e544016592c6184162f2c2b0e55ad5e10b318ed931d8897
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2025.
Transparency logRelease files / minexcel-0.2.2-py3-none-any.whl
| Download URL | minexcel-0.2.2-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06148199c097ed7e9c80e71d36d47bc4ffca4ec44e211114009890c3f85dda5f
|
|
BLAKE2b-256 checksum How to use checksums |
b59369526a6ff5856e9c0c209ec934c626394fd52c312fbccaaf90d78b2dffbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2025.
Transparency log