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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file yaml-header-tools-0.2.1.tar.gz
.
File metadata
- Download URL: yaml-header-tools-0.2.1.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47c33f5f02622a70f442d42a8cf479a9a2c95cf74086d99dbc2e7d233d8cf321 |
|
MD5 | 596a8f430e84649cbffa7c8dcf01b817 |
|
BLAKE2b-256 | ddd594cf5e4b95be61f8b85178274678a35b68308faab954521bc0773a57f467 |
File details
Details for the file yaml_header_tools-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: yaml_header_tools-0.2.1-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f9b3563a4e1b526a53a146dabe331156563c55130472500ebeb4da7b732a673 |
|
MD5 | bdadafcbcbec576db6cb847c33274b1e |
|
BLAKE2b-256 | 70e6d6859b0b4b095ce257e5a3338f23399573a29b06946407dbecb12ddd1f3c |