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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file excel_schema_engine-0.1.4-py3-none-any.whl.
File metadata
- Download URL: excel_schema_engine-0.1.4-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eea2fc4e90f9fc62c544c5730ebca4d73a99f4643243eb4a06fc26efdf9367dc
|
|
| MD5 |
b3a2ef4a6e28350b50e503ffbbaacb6f
|
|
| BLAKE2b-256 |
142f2e80af604b380da4bcfddabb82ac70a32eb12dac2b6d27461d57a75773ec
|