mds-core (Python)
MDS — Markdown Document Schema: validate Markdown against .mds contracts from files, strings or streams with deterministic structure, types, constraints and LLM-readable semantic expectations.
Install
pip install mds-core # or: pipx install mds-core (CLI only)
mds validate doc.md doc.mds
Coding examples
# Files
from mds import validate_files
r = validate_files("doc.md", "doc.mds")
print(r["exitCode"], r["stream"])
# Strings
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"])
# Streams
import io
from mds import validate_streams
r = validate_streams(io.StringIO(doc_text), io.StringIO(schema_text))
print(r["exitCode"], r["stream"])
Skills for agents
mds skills install
This installs four skills for agent integration (Claude Code, Hermes, Kilo):
| Skill | Purpose |
|---|---|
mds-validate |
Validate a document against a contract, repair until clean |
mds-write |
Generate a document from a contract, then validate |
mds-draft |
Derive a starter contract from an existing document (mds draft) |
mds-install |
Resolve or install the mds CLI when none is available |
See the repository root README and the normative specification for details, the zero-config extension contract (entry-point group mds_ext) and conformance fixtures.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 mds_core-0.17.5.tar.gz.
File metadata
- Download URL: mds_core-0.17.5.tar.gz
- Upload date:
- Size: 51.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ef9dccd25525339031ccb86fca4bb897fb2670f0808317e09dd021dcb493919
|
|
| MD5 |
e836c0526b171fdca7d64f1d60df1cbd
|
|
| BLAKE2b-256 |
64621847c4af294b9a95fe729d4e4e1ae8ab5cedb8ca61ab8a22e86fe08c79a0
|
Provenance
The following attestation bundles were made for mds_core-0.17.5.tar.gz:
Publisher:
publish.yml on sommelo1/mds
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mds_core-0.17.5.tar.gz -
Subject digest:
7ef9dccd25525339031ccb86fca4bb897fb2670f0808317e09dd021dcb493919 - Sigstore transparency entry: 2607015658
- Sigstore integration time:
-
Permalink:
sommelo1/mds@f0dc41b882943e1870b45dc740b2e9fc8a757fe0 -
Branch / Tag:
refs/tags/v0.17.5 - Owner: https://github.com/sommelo1
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f0dc41b882943e1870b45dc740b2e9fc8a757fe0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mds_core-0.17.5-py3-none-any.whl.
File metadata
- Download URL: mds_core-0.17.5-py3-none-any.whl
- Upload date:
- Size: 55.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da2c68dfd87f8373d2b0fc135eca6c71a3bdc3f543edfb49e68b5107977c3fd8
|
|
| MD5 |
453a3c8e4704cf73655b0bd3deed0109
|
|
| BLAKE2b-256 |
ac987fed2cf12586aeeea5d736a68538a2d37ae4e647c848ed104afc006bcf1d
|
Provenance
The following attestation bundles were made for mds_core-0.17.5-py3-none-any.whl:
Publisher:
publish.yml on sommelo1/mds
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mds_core-0.17.5-py3-none-any.whl -
Subject digest:
da2c68dfd87f8373d2b0fc135eca6c71a3bdc3f543edfb49e68b5107977c3fd8 - Sigstore transparency entry: 2607016338
- Sigstore integration time:
-
Permalink:
sommelo1/mds@f0dc41b882943e1870b45dc740b2e9fc8a757fe0 -
Branch / Tag:
refs/tags/v0.17.5 - Owner: https://github.com/sommelo1
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f0dc41b882943e1870b45dc740b2e9fc8a757fe0 -
Trigger Event:
push
-
Statement type: