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

Method parse

src/packagedcode/freebsd.py:111–119  ·  view source on GitHub ↗

Yield one or more Package manifest objects given a file ``location`` pointing to a package archive, manifest or similar.

(cls, location, package_only=False)

Source from the content-addressed store, hash-verified

109
110 @classmethod
111 def parse(cls, location, package_only=False):
112 """
113 Yield one or more Package manifest objects given a file ``location`` pointing to a
114 package archive, manifest or similar.
115 """
116 with io.open(location, encoding='utf-8') as loc:
117 yaml_data = saneyaml.load(loc)
118
119 yield cls._parse(yaml_data, package_only)
120
121 @staticmethod
122 def get_license_detections_and_expression(package_data):

Callers

nothing calls this directly

Calls 3

openMethod · 0.45
loadMethod · 0.45
_parseMethod · 0.45

Tested by

no test coverage detected