Metadata-Version: 2.4
Name: mds-core
Version: 0.15.2
Summary: MDS - Markdown Document Schema: validate Markdown against .mds contracts from files, strings or streams - deterministic structure, types and constraints plus LLM-readable expectations and structured diagnostics.
Author-email: Lorenz Sommer <59441867+sommelo1@users.noreply.github.com>
License: MIT
Project-URL: Homepage, https://github.com/sommelo1/mds
Project-URL: Repository, https://github.com/sommelo1/mds
Project-URL: Issues, https://github.com/sommelo1/mds/issues
Keywords: markdown,schema,validation,llm,ai,document,contract,gfm
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Text Processing :: Markup :: Markdown
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# mds-core (Python)

MDS — Markdown Document Schema: reference validator, CLI and library.
Validates Markdown documents against `.mds` contracts with native semantic
expectations (`expect:`). Byte-identical to the npm package `mds-core` on
all conformance fixtures.

```bash
pip install mds-core        # or: pipx install mds-core (CLI only)
mds validate doc.md doc.mds
```

```python
from mds import validate_document

r = validate_document(doc_text=doc, schema_text=schema,
                      doc_name="doc.md", schema_name="doc.mds")
print(r["exitCode"], r["stream"])
```

See the repository root README and the normative specification for details,
the zero-config extension contract (`mds-ext-*` / entry-point group
`mds_ext`) and conformance fixtures.
