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

Method parse

src/packagedcode/pypi.py:95–105  ·  view source on GitHub ↗

Parse package data from a PKG-INFO file and other manifests present in neighboring files as needed when an installed layout is found.

(cls, location, package_only=False)

Source from the content-addressed store, hash-verified

93
94 @classmethod
95 def parse(cls, location, package_only=False):
96 """
97 Parse package data from a PKG-INFO file and other manifests present in
98 neighboring files as needed when an installed layout is found.
99 """
100 yield parse_metadata(
101 location=location,
102 datasource_id=cls.datasource_id,
103 package_type=cls.default_package_type,
104 package_only=package_only,
105 )
106
107 @classmethod
108 def assign_package_to_resources(cls, package, resource, codebase, package_adder):

Callers

nothing calls this directly

Calls 1

parse_metadataFunction · 0.85

Tested by

no test coverage detected