Metadata-Version: 2.4
Name: doxtr-data-core
Version: 0.1.0
Summary: Shared data foundation for Doxtr extensions (multi-format tabular readers, dynamic period calendars, safe AST queries, boolean tag filters, and xlink resolution).
Author: Jens Frey
License: MIT
Project-URL: Homepage, https://github.com/doxtr/doxtr-data-core
Classifier: Programming Language :: Python :: 3
Classifier: Framework :: Sphinx :: Extension
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: openpyxl>=3.1
Requires-Dist: odfpy>=1.4
Requires-Dist: docutils>=0.18
Provides-Extra: sphinx
Requires-Dist: sphinx>=5.0; extra == "sphinx"
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0; extra == "dev"
Requires-Dist: sphinx>=5.0; extra == "dev"
Requires-Dist: docutils>=0.18; extra == "dev"
Dynamic: license-file

# doxtr-data-core

Shared data foundation for the Doxtr Sphinx documentation ecosystem.

## Features

- **Canonical `TableModel`** intermediate representation with merged-cell unmerging, header slugification, and index/name column resolution.
- **Multi-format tabular readers** (`.csv`, `.tsv`, `.xlsx`, `.xlsm`, `.ods`, `.fods`, and RST `grid`, `simple`, `list` tables).
- **Dynamic period & calendar engine** supporting CSV, XLSX, ODS, FODS, and RST period calendars, calendar math (`current-year`, `current-quarter`, `current-month`, `current-week`), relative date expressions (`now() - 63 businessdays`), `@<period>` references, sibling `@start()`/`@end()` arithmetic, and custom resolver hooks.
- **Restricted AST query & expression evaluator** (`evaluate_query` and `evaluate_expr`) with no `eval()`, attribute access, or arbitrary call exposure.
- **Boolean & nested tag filtering** with `!` / `not` negation, `and`/`or`, grouping parentheses, globs, and regex matching, integrating seamlessly with `doxtr-xlink`.
- **XLink cell resolver** resolving `:xlink:`id`` role syntax, `Label <id>`, and bare IDs via `doxtr-xlink` or `.xlink` files.
