Skip to main content

Declarative Excel schema builder, reader and validator

Project description

Excel Schema Engine

A lightweight Python library for generating, validating, and reading Excel files using a declarative schema.

Define your Excel structure once and use it to:

  • generate Excel templates
  • validate uploaded files
  • read rows as structured data
  • highlight errors directly in Excel

Built on top of openpyxl.


Features

  • Declarative Excel schema
  • Multi-level headers
  • Cell styles and comments
  • Excel validation
  • Row parsing
  • Error highlighting
  • Column autosizing
  • Localization support

Localization

The validator supports multiple languages for error messages.

You can define your own translations by implementing a custom message mapper in your project.

If you'd like to add a new localization, feel free to open an issue, submit a pull request, or contact the author.

Example:

ValidatorErrComment.messages[Language.FR] = {
    "missing_column": "Colonne manquante: {column}"
}

Installation

pip install excel-schema

or

poetry add excel-schema

PyPI

License

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

excel_schema_engine-0.1.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file excel_schema_engine-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for excel_schema_engine-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99ef727956946fd19cd24461f5ab2f8bd8ce79d5790fb0aaef9bd54f6a516149
MD5 a83cc2f7911f9a8cc46c549a87ca9c00
BLAKE2b-256 d8d59072d588bf5770bd58fcf6f97bc295feb29fada5e1d363eeeaa05dee0ce0

See more details on using hashes here.

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