MCPcopy Index your code
hub / github.com/python/cpython / files

Function files

Lib/importlib/metadata/__init__.py:1128–1134  ·  view source on GitHub ↗

Return a list of files for the named package. :param distribution_name: The name of the distribution package to query. :return: List of files composing the distribution.

(distribution_name: str)

Source from the content-addressed store, hash-verified

1126
1127
1128def files(distribution_name: str) -> list[PackagePath] | None:
1129 """Return a list of files for the named package.
1130
1131 :param distribution_name: The name of the distribution package to query.
1132 :return: List of files composing the distribution.
1133 """
1134 return distribution(distribution_name).files
1135
1136
1137def requires(distribution_name: str) -> list[str] | None:

Callers 6

test_filesMethod · 0.90
test_filesMethod · 0.90
test_read_textMethod · 0.90
test_file_hash_reprMethod · 0.90
test_files_dist_infoMethod · 0.90
test_files_egg_infoMethod · 0.90

Calls 1

distributionFunction · 0.85

Tested by 6

test_filesMethod · 0.72
test_filesMethod · 0.72
test_read_textMethod · 0.72
test_file_hash_reprMethod · 0.72
test_files_dist_infoMethod · 0.72
test_files_egg_infoMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…