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-engine

or

poetry add excel-schema-engine

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for excel_schema_engine-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d98e4d3926c2757c573b1f66f462619da8a2e2037c17176fc8ba760f357d6245
MD5 d2aab14978cee44e8835c71f4187abbb
BLAKE2b-256 16598e6c11822d9ff94abf538166c75fb50563844862567f42b3c3c8c6b7e8fe

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