├── .github ├── FUNDING.yml └── workflows │ ├── publish.yml │ └── test.yml ├── .gitignore ├── LICENSE ├── MANIFEST.in ├── README.md ├── docs ├── Makefile ├── api.rst ├── conf.py ├── handlers.rst ├── index.rst └── make.bat ├── examples ├── __init__.py ├── content │ ├── pandoc.txt │ ├── reversed.txt │ └── sorted.txt ├── pandoc.py ├── reversed.py └── sorted.py ├── frontmatter ├── __init__.py ├── conftest.py ├── default_handlers.py ├── py.typed └── util.py ├── mypy.ini ├── requirements.txt ├── setup.py └── tests ├── empty ├── empty-frontmatter.result.json ├── empty-frontmatter.txt ├── no-frontmatter.result.json └── no-frontmatter.txt ├── json ├── hello-json.md └── hello-json.result.json ├── stub_tests.py ├── test_docs.py ├── test_files.py ├── toml ├── hello-toml.md └── hello-toml.result.json ├── unit_test.py └── yaml ├── chinese.result.json ├── chinese.txt ├── extra-dash.result.json ├── extra-dash.txt ├── extra-space.result.json ├── extra-space.txt ├── hello-markdown.md ├── hello-markdown.result.json ├── hello-world.result.json ├── hello-world.txt ├── network-diagrams.md ├── network-diagrams.result.json ├── unpretty.md └── unpretty.result.json /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: eyeseast 2 | -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/README.md -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/api.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/docs/api.rst -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/docs/conf.py -------------------------------------------------------------------------------- /docs/handlers.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/docs/handlers.rst -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/docs/index.rst -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/docs/make.bat -------------------------------------------------------------------------------- /examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/content/pandoc.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/examples/content/pandoc.txt -------------------------------------------------------------------------------- /examples/content/reversed.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/examples/content/reversed.txt -------------------------------------------------------------------------------- /examples/content/sorted.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/examples/content/sorted.txt -------------------------------------------------------------------------------- /examples/pandoc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/examples/pandoc.py -------------------------------------------------------------------------------- /examples/reversed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/examples/reversed.py -------------------------------------------------------------------------------- /examples/sorted.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/examples/sorted.py -------------------------------------------------------------------------------- /frontmatter/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/frontmatter/__init__.py -------------------------------------------------------------------------------- /frontmatter/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/frontmatter/conftest.py -------------------------------------------------------------------------------- /frontmatter/default_handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/frontmatter/default_handlers.py -------------------------------------------------------------------------------- /frontmatter/py.typed: -------------------------------------------------------------------------------- 1 | # Marker file for PEP 561. This package uses inline types. 2 | -------------------------------------------------------------------------------- /frontmatter/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/frontmatter/util.py -------------------------------------------------------------------------------- /mypy.ini: -------------------------------------------------------------------------------- 1 | [mypy] 2 | strict = True 3 | exclude = setup.py|venv*|build|docs|examples|tests 4 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | PyYAML 2 | pyaml 3 | toml 4 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/setup.py -------------------------------------------------------------------------------- /tests/empty/empty-frontmatter.result.json: -------------------------------------------------------------------------------- 1 | { 2 | "content": "I have frontmatter but no metadata." 3 | } -------------------------------------------------------------------------------- /tests/empty/empty-frontmatter.txt: -------------------------------------------------------------------------------- 1 | --- 2 | --- 3 | 4 | I have frontmatter but no metadata. -------------------------------------------------------------------------------- /tests/empty/no-frontmatter.result.json: -------------------------------------------------------------------------------- 1 | { 2 | "content": "I have no frontmatter." 3 | } -------------------------------------------------------------------------------- /tests/empty/no-frontmatter.txt: -------------------------------------------------------------------------------- 1 | I have no frontmatter. -------------------------------------------------------------------------------- /tests/json/hello-json.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/json/hello-json.md -------------------------------------------------------------------------------- /tests/json/hello-json.result.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/json/hello-json.result.json -------------------------------------------------------------------------------- /tests/stub_tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/stub_tests.py -------------------------------------------------------------------------------- /tests/test_docs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/test_docs.py -------------------------------------------------------------------------------- /tests/test_files.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/test_files.py -------------------------------------------------------------------------------- /tests/toml/hello-toml.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/toml/hello-toml.md -------------------------------------------------------------------------------- /tests/toml/hello-toml.result.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/toml/hello-toml.result.json -------------------------------------------------------------------------------- /tests/unit_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/unit_test.py -------------------------------------------------------------------------------- /tests/yaml/chinese.result.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/yaml/chinese.result.json -------------------------------------------------------------------------------- /tests/yaml/chinese.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Let's try unicode" 3 | language: 中文 4 | --- 5 | 6 | 欢迎来到大连水产学院! -------------------------------------------------------------------------------- /tests/yaml/extra-dash.result.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/yaml/extra-dash.result.json -------------------------------------------------------------------------------- /tests/yaml/extra-dash.txt: -------------------------------------------------------------------------------- 1 | ---- 2 | test: bob 3 | else: kate 4 | ---- 5 | 6 | Here's some content. -------------------------------------------------------------------------------- /tests/yaml/extra-space.result.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/yaml/extra-space.result.json -------------------------------------------------------------------------------- /tests/yaml/extra-space.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/yaml/extra-space.txt -------------------------------------------------------------------------------- /tests/yaml/hello-markdown.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/yaml/hello-markdown.md -------------------------------------------------------------------------------- /tests/yaml/hello-markdown.result.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/yaml/hello-markdown.result.json -------------------------------------------------------------------------------- /tests/yaml/hello-world.result.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/yaml/hello-world.result.json -------------------------------------------------------------------------------- /tests/yaml/hello-world.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/yaml/hello-world.txt -------------------------------------------------------------------------------- /tests/yaml/network-diagrams.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/yaml/network-diagrams.md -------------------------------------------------------------------------------- /tests/yaml/network-diagrams.result.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/yaml/network-diagrams.result.json -------------------------------------------------------------------------------- /tests/yaml/unpretty.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/yaml/unpretty.md -------------------------------------------------------------------------------- /tests/yaml/unpretty.result.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eyeseast/python-frontmatter/HEAD/tests/yaml/unpretty.result.json --------------------------------------------------------------------------------