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

Class PackageWithResources

src/packagedcode/models.py:1914–1928  ·  view source on GitHub ↗

A Package with Resources.

Source from the content-addressed store, hash-verified

1912
1913@attr.attributes(slots=True)
1914class PackageWithResources(Package):
1915 """
1916 A Package with Resources.
1917 """
1918
1919 resources = List(
1920 item_type=Resource,
1921 label='List of Resources',
1922 help='List of Resources for this package.',
1923 )
1924
1925 def to_dict(self):
1926 package_data = super().to_dict()
1927 package_data['resources'] = [resource.to_dict() for resource in self.resources]
1928 return package_data
1929
1930
1931def get_files_for_packages(codebase):

Callers

nothing calls this directly

Calls 1

ListFunction · 0.90

Tested by

no test coverage detected