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.5.tar.gz (51.4 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.5-py3-none-any.whl (55.2 kB view details)

Uploaded Python 3

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

Hashes for mds_core-0.17.5.tar.gz
Algorithm Hash digest
SHA256 7ef9dccd25525339031ccb86fca4bb897fb2670f0808317e09dd021dcb493919
MD5 e836c0526b171fdca7d64f1d60df1cbd
BLAKE2b-256 64621847c4af294b9a95fe729d4e4e1ae8ab5cedb8ca61ab8a22e86fe08c79a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for mds_core-0.17.5.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.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

Hashes for mds_core-0.17.5-py3-none-any.whl
Algorithm Hash digest
SHA256 da2c68dfd87f8373d2b0fc135eca6c71a3bdc3f543edfb49e68b5107977c3fd8
MD5 453a3c8e4704cf73655b0bd3deed0109
BLAKE2b-256 ac987fed2cf12586aeeea5d736a68538a2d37ae4e647c848ed104afc006bcf1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mds_core-0.17.5-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

This release

0.17.5 This release

2 files

0.17.4

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