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.1.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.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minexcel-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 9a571b707c45329274579853b2335d514db6b463fa5fcdab221100726c2e8047
MD5 7bccd133be0df621b8eae5caf4282531
BLAKE2b-256 b2f57f854281d58ffa7677912433fbfb86de43fefda379b14580430463fbd689

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: minexcel-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed2f040fcd04ce5729f69a2c0261b8d08dc759874217f0eb039c6474748a2d46
MD5 48b2457e93e4c8dc843f347cade5c683
BLAKE2b-256 ff2582d0b76ef36c67e53fb44d9d2fb9eac70e2cc3a90f424b8d801185a57c18

See more details on using hashes here.

Provenance

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