Metadata-Version: 2.1
Name: frontmatter
Version: 2.1.0
Summary: YAML Front Matter parser
Home-page: https://github.com/jonbeebe/frontmatter
Author: Jonathan Beebe
Author-email: me@jonbeebe.net
License: UNKNOWN
Keywords: yaml frontmatter front-matter markdown blogging
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: ISC License (ISCL)
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
Requires-Dist: PyYAML (==3.13)

frontmatter
============

A very simple Python package for parsing YAML Front Matter from a text file. Written for Python 3, but works for 2.

Usage
------

```
import frontmatter

# assuming 'testfile.md' exists
post = frontmatter.parse('testfile.md')

print(post['metadata']) # Dictionary
print(post['content'])  # String
```

The output would be:

```
{'foo': 'bar', 'num': 3, 'list': ['first', 'second', 'third']}

This is the actual post content
This is a second line
```

In the above example, the contents of **testfile.md** is:

```
---
foo: bar
num: 3
list:
- first
- second
- third
---

This is the actual post content
This is a second line
```

LICENSE
--------

ISC (see [LICENSE](./LICENSE) file).


