Metadata-Version: 2.4
Name: minimindslab-yaml-front-matter-check
Version: 0.1.0
Summary: Parse a text blob for YAML-style front matter and verify it is present, properly delimited, and minimally well-formed without depending on a YAML parser.
Author: MiniMindsLab
License: MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# MiniMindsLab YAML Front Matter Check

A tiny, deterministic, stdlib-only checker for YAML-style front matter in text blobs.

## What it checks

- Front matter must start at the very first line of the text.
- Opening delimiter must be exactly `---`.
- Closing delimiter must be exactly `---` or `...` on its own line.
- At least one content line must exist between delimiters.
- Content lines must look like simple YAML metadata lines:
  - `key: value`
  - list item lines like `- item`
  - comments (`# ...`) and blank lines are allowed inside front matter.

This package does **not** parse YAML. It only performs a minimal structural preflight check.

## Usage

```python
from minimindslab_yaml_front_matter_check import check_front_matter

text = """---
title: Example
tags:
  - demo
---
# Body
"""

result = check_front_matter(text)
print(result.is_valid)        # True
print(result.has_front_matter) # True
print(result.reason)          # "ok"
```
