Skip to main content

No project description provided

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

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for excel_schema_engine-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37689ecfbcbcdbc57edf39738354e700656b94bd4722ada2f4c6645e9ccdf8b8
MD5 11b8dac8768014792d5fca965ea2c7e9
BLAKE2b-256 bc644826a37968a71b94718a6e78eb526a7698e047dc2e48668d4780e2339f1f

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