MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / dumps_frontmatter

Function dumps_frontmatter

src/licensedcode/frontmatter.py:145–149  ·  view source on GitHub ↗

Create a string and return the text from `content` and `metadata`.

(content, metadata, handler=SaneYAMLHandler(), **kwargs)

Source from the content-addressed store, hash-verified

143
144
145def dumps_frontmatter(content, metadata, handler=SaneYAMLHandler(), **kwargs):
146 """
147 Create a string and return the text from `content` and `metadata`.
148 """
149 return handler.format(content, metadata, **kwargs)

Callers 2

dumpMethod · 0.90
dumpMethod · 0.90

Calls 2

SaneYAMLHandlerClass · 0.85
formatMethod · 0.45

Tested by

no test coverage detected