PyDocs

Nav

Importing Modules

DistributionFinder.Context

  • DistributionFinder.Context(**kwargs)
Keyword arguments presented by the caller to
``distributions()`` or ``Distribution.discover()``
to narrow the scope of a search for distributions
in all DistributionFinders.

Each DistributionFinder may expect any parameters
and should attempt to honor the canonical
parameters defined below when appropriate.

This mechanism gives a custom provider a means to
solicit additional details from the caller beyond
"name" and "path" when searching distributions.
For example, imagine a provider that exposes suites
of packages in either a "public" or "private" ``realm``.
A caller may wish to query only for distributions in
a particular realm and could call
``distributions(realm="private")`` to signal to the
custom provider to only include distributions from that
realm.
Members of DistributionFinder.Context

n

name
Specific name for which a distribution finder should match.

p

path
The sequence of directory path that a distribution finder should search.
0 Examples
No examples for importlib.metadata/DistributionFinder.Context.
See Also
No see-alsos for importlib.metadata/DistributionFinder.Context
0 Notes
No notes for DistributionFinder.Context