Skip to main content

Tools for reading yaml headers from markdown files

Project description

YAML Header Tools

A python package to manage yaml header in markdown document

YAML-Headers for markdown documents are described in: https://pandoc.org/MANUAL.html#extension-yaml_metadata_block

They are used by many systems to include metadata in markdown documents.

This python package can be installed using pip, e.g.:

pip install --user .

Usage

The following example loads a yaml header from a markdown file.

from yaml_header_tools import *

header = get_header_from_file("testfile.md")

Running the tests

After installation of the package run (within the project folder):

pytest

Contributers

The original authors of this package are:

  • Alexander Schlemmer
  • Daniel Hornung
  • Timm Fitschen

License

Copyright (C) 2019-2022 Research Group Biomedical Physics, Max Planck Institute for Dynamics and Self-Organization Göttingen.

All files in this repository are licensed under a GNU Affero General Public License (version 3 or later).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yaml-header-tools-0.2.1.tar.gz (16.2 kB view hashes)

Uploaded Source

Built Distribution

yaml_header_tools-0.2.1-py3-none-any.whl (17.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page