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.0.tar.gz (51.0 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.0-py3-none-any.whl (55.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mds_core-0.17.0.tar.gz
  • Upload date:
  • Size: 51.0 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.0.tar.gz
Algorithm Hash digest
SHA256 bdc7c427c0182dfc816f708f0121c07c2f868076ce90bc24f3d460869d780989
MD5 17cb920a6750488bb6e91d99ecc57a44
BLAKE2b-256 d01d551f7b1711bd4b396647247de5f01d5021e50d62161fef5a0597b2f8e82e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mds_core-0.17.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: mds_core-0.17.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a92750fc52c066e57e1659d8eab2eecb5209eeddd3c8c5639d8efab8dbab1bcb
MD5 ad38e012a51946561ca56c7d22eb1614
BLAKE2b-256 3c34cab2c4a6f43c65e8d7388b9ad917550d3890a86d5ca1c4144a9b46dbf443

See more details on using hashes here.

Provenance

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

0.17.4

2 files

This release

0.17.0 This release

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