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

Function parse_opam

src/packagedcode/opam.py:168–175  ·  view source on GitHub ↗

Return a mapping of package data collected from the opam OCaml package manifest file at ``location``.

(location)

Source from the content-addressed store, hash-verified

166
167
168def parse_opam(location):
169 """
170 Return a mapping of package data collected from the opam OCaml package
171 manifest file at ``location``.
172 """
173 with open(location) as od:
174 text = od.read()
175 return parse_opam_from_text(text)
176
177
178def parse_opam_from_text(text):

Callers 1

parseMethod · 0.85

Calls 2

parse_opam_from_textFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected