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.6.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.6-py3-none-any.whl (55.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mds_core-0.17.6.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.6.tar.gz
Algorithm Hash digest
SHA256 f4a15d6feda004f46bdd02aad21289a2eab0c066427d61671525ae97b2d00f92
MD5 4ba7c04e3b55cc2dc7a8c76edd83508d
BLAKE2b-256 e01bbdc2e6f9282e6fbdeba1cf34aaf4de350dc5c8136b28cd36d658e449acef

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mds_core-0.17.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 af1bfd154993565ef248bd7b42f954dd744dcaf18c1c4be9d3506b4f3604c4ea
MD5 107c1fe3b97cffdbb682e964968fe563
BLAKE2b-256 c17506a4d444c471cc19b96c5c50a58a2a3ea9e6ef7a060001efd5bc5d32c5ae

See more details on using hashes here.

Provenance

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

This release

0.17.6 This release

2 files

0.17.5

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