Skip to main content

Add your description here

Project description

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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minexcel-0.2.2.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

minexcel-0.2.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file minexcel-0.2.2.tar.gz.

File metadata

  • Download URL: minexcel-0.2.2.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for minexcel-0.2.2.tar.gz
Algorithm Hash digest
SHA256 139642b4a790e0382abeb310731c61ac42c7bf72bdb8ce3ad88e1b93e4cc0ec6
MD5 ba9a79991d47596ff923c0c09aeba27e
BLAKE2b-256 6effa080bdb0b19d2e544016592c6184162f2c2b0e55ad5e10b318ed931d8897

See more details on using hashes here.

Provenance

The following attestation bundles were made for minexcel-0.2.2.tar.gz:

Publisher: release.yaml on william-swl/minexcel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file minexcel-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: minexcel-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for minexcel-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 06148199c097ed7e9c80e71d36d47bc4ffca4ec44e211114009890c3f85dda5f
MD5 fbb750992f213e363f0dbf40aec20d64
BLAKE2b-256 b59369526a6ff5856e9c0c209ec934c626394fd52c312fbccaaf90d78b2dffbf

See more details on using hashes here.

Provenance

The following attestation bundles were made for minexcel-0.2.2-py3-none-any.whl:

Publisher: release.yaml on william-swl/minexcel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page