MiniMindsLab YAML Front Matter
A tiny, dependency-free Python library for parsing and emitting simple YAML front matter blocks in text content.
Features
- Parses front matter only when text begins with a delimiter line exactly equal to
---. - Supports simple scalar metadata values (
string,int,float,bool,null). - Preserves content by returning original text as body when front matter is absent or malformed.
- Emits deterministic output with sorted metadata keys.
- Pure standard library, Python 3.11+.
Example
from minimindslab_yaml_front_matter import parse_front_matter, emit_front_matter
text = """---
title: Hello
draft: false
count: 3
---
Body text\n"""
result = parse_front_matter(text)
print(result.metadata) # {'title': 'Hello', 'draft': False, 'count': 3}
print(result.body) # 'Body text\n'
rendered = emit_front_matter(result.metadata, result.body)
print(rendered)
Metadata
Release files for minimindslab-yaml-front-matter 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| minimindslab_yaml_front_matter-0.1.0.tar.gz | 4.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| minimindslab_yaml_front_matter-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / minimindslab_yaml_front_matter-0.1.0.tar.gz
| Download URL | minimindslab_yaml_front_matter-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c4574d65bf7f7431941e0b31b586d927f074e7bd6a52878dccb95ab30f9d24b
|
|
BLAKE2b-256 checksum How to use checksums |
40a7eb7e37cdacf7e1ea64322d98ab73f746cd89390c5693a36c1e3a4df02e57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
n8n
|
Release files / minimindslab_yaml_front_matter-0.1.0-py3-none-any.whl
| Download URL | minimindslab_yaml_front_matter-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
140ac78fe9c2d6f631aba52c6009525a10620e05d17deb89e204eb87ff52db6e
|
|
BLAKE2b-256 checksum How to use checksums |
cdb8ba34b2b7e4a6c212a65a1dfe415454304022b4fef7a22328dda5acc415e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
n8n
|
Security for minimindslab-yaml-front-matter 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.