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

Method get_headers

src/commoncode/resource.py:802–807  ·  view source on GitHub ↗

Return a serialized headers composed only of native Python objects suitable for use in outputs.

(self)

Source from the content-addressed store, hash-verified

800 return files_count
801
802 def get_headers(self):
803 """
804 Return a serialized headers composed only of native Python objects
805 suitable for use in outputs.
806 """
807 return [le.to_dict() for le in (self.headers or [])]
808
809 def exists(self, resource):
810 """

Callers 4

process_codebaseMethod · 0.80
write_resultsFunction · 0.80
get_resultsFunction · 0.80
from_codebaseMethod · 0.80

Calls 1

to_dictMethod · 0.45

Tested by

no test coverage detected