Skip to main content

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

mds_core-0.17.4.tar.gz (51.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mds_core-0.17.4-py3-none-any.whl (55.0 kB view details)

Uploaded Python 3

File details

Details for the file mds_core-0.17.4.tar.gz.

File metadata

  • Download URL: mds_core-0.17.4.tar.gz
  • Upload date:
  • Size: 51.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mds_core-0.17.4.tar.gz
Algorithm Hash digest
SHA256 9cd3754320bd618ae998314bb82aeaa4ac0b39f9c14cb0ceb7e5122dc3ffbde0
MD5 26189ef8f0a06cbf9797ee50c7edb616
BLAKE2b-256 355c15aef7f03442da41837205eb1f7ced4393a82d8cdf493cec2cc330357302

See more details on using hashes here.

Provenance

The following attestation bundles were made for mds_core-0.17.4.tar.gz:

Publisher: publish.yml on sommelo1/mds

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mds_core-0.17.4-py3-none-any.whl.

File metadata

  • Download URL: mds_core-0.17.4-py3-none-any.whl
  • Upload date:
  • Size: 55.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mds_core-0.17.4-py3-none-any.whl
Algorithm Hash digest
SHA256 215beb51ba120dd0a6bff11211d7c0f2f2d4fa2c502590db20660fe1691f9aa1
MD5 690f749469cd006d598c5c9a8fc01d3b
BLAKE2b-256 d3f31f80f15985523dcc9fb8a857d051f5e51307d090d6157e00aa5feafabdb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mds_core-0.17.4-py3-none-any.whl:

Publisher: publish.yml on sommelo1/mds

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.17.6

2 files

0.17.5

2 files

This release

0.17.4 This release

2 files

0.17.0

2 files

0.16.0

2 files

0.15.2

2 files

0.15.1

2 files

0.14.0

2 files

0.13.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page