{"categories":[{"label":"Markup","url":"https://skillfed.io/packages/category/text-processing-markup"}],"enrichment":{"capability":"Parses and manages text files with YAML (or JSON, TOML) front matter, separating structured metadata from document content for easy access and manipulation.","skillfed_tags":["metadata-extraction","static-site-generation","yaml-parsing"],"use_cases":["Parse Jekyll or Hugo blog posts that use YAML front matter for metadata like title, date, and tags","Extract and modify document metadata in static site generators or documentation pipelines","Build content management workflows where metadata and body are stored together in plain text","Process Markdown files with structured headers for automation or indexing","Strip and rewrite front matter in batch document transformations"],"what_it_does":"Python Frontmatter is a lightweight parser for documents that combine structured metadata (front matter) with body content, separated by delimiters. It reads files or text containing YAML (or other format) metadata blocks followed by content, and exposes them as separate, easily accessible objects\u2014metadata as a dictionary and content as a string. The package handles common workflows: loading from files or file-like objects, parsing raw text, accessing metadata fields as dictionary keys, modifying metadata, and writing the combined document back to text or file format.\n\nIt's built for static site generators, documentation systems, and any workflow where you need to attach structured metadata to plain-text documents. The single runtime dependency is pyyaml, and it supports Python 3.10 and later. The package is actively maintained and has been stable since its early releases.","worth_installing":"Yes. Low install friction, no security vulnerabilities, MIT license, active maintenance, and a single stable dependency make this a safe choice. Install it if you work with front-matter-delimited documents (Jekyll posts, static site content, or similar). Skip it only if your workflow doesn't involve parsing metadata-prefixed text files."},"id":"python-frontmatter","links":{"html":"https://skillfed.io/packages/python-frontmatter","md":"https://skillfed.io/packages/python-frontmatter.md","pypi":"https://pypi.org/project/python-frontmatter/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-20","license_spdx":"MIT","license_treatment":"permissive","name":"python-frontmatter","python_support":"supports_current","summary":"Parse and manage posts with YAML (or other) frontmatter"},"popularity":{"monthly_downloads":19580081,"position":1060,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.3.0"}
