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.

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.0.tar.gz (5.4 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.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for minexcel-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4e3b5be5678dd93f907a1b9fab561847cb6b2736dd1b174cd792c33c2bdc3f28
MD5 129478af1884706a911932e17c59813b
BLAKE2b-256 becf4d8828f8287c2c52d144ff33555d315fdb6b7c7d9367019459ebebb09500

See more details on using hashes here.

Provenance

The following attestation bundles were made for minexcel-0.2.0.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.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for minexcel-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfbf937c5b3f3a0db8df692df091a463bf89ab867c3c4e130ef02c345277406a
MD5 4305ade07d760ffb3608ad4ab9a2e577
BLAKE2b-256 f29d74296182615e6673dd6e551b90303eed29a2a2c67317c7f9264455c9e1f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for minexcel-0.2.0-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