Let us walk on the 3-isogeny graph
|
Public Member Functions | |
"BaseEnvironment" | default (cls) |
"BaseEnvironment" | from_paths (cls, Optional[List[str]] paths) |
Optional["BaseDistribution"] | get_distribution (self, str name) |
Iterator[BaseDistribution] | iter_all_distributions (self) |
Iterator[BaseDistribution] | iter_installed_distributions (self, bool local_only=True, Container[str] skip=stdlib_pkgs, bool include_editables=True, bool editables_only=False, bool user_only=False) |
Protected Member Functions | |
Iterator["BaseDistribution"] | _iter_distributions (self) |
|
protected |
Iterate through installed distributions. This function should be implemented by subclass, but never called directly. Use the public ``iter_distribution()`` instead, which implements additional logic to make sure the distributions are valid.
Reimplemented in Environment, and Environment.
Definition at line 601 of file base.py.
References i.
Referenced by BaseEnvironment.iter_all_distributions().
"BaseEnvironment" default | ( | cls | ) |
Reimplemented in Environment, and Environment.
Definition at line 586 of file base.py.
References i.
"BaseEnvironment" from_paths | ( | cls, | |
Optional[List[str]] | paths | ||
) |
Reimplemented in Environment, and Environment.
Definition at line 590 of file base.py.
References i.
Optional["BaseDistribution"] get_distribution | ( | self, | |
str | name | ||
) |
Given a requirement name, return the installed distributions. The name may not be normalized. The implementation must canonicalize it for lookup.
Reimplemented in Environment, and Environment.
Definition at line 593 of file base.py.
References i.
Referenced by DistributionPath.get_file_path().
Iterator[BaseDistribution] iter_all_distributions | ( | self | ) |
Iterate through all installed distributions without any filtering.
Definition at line 610 of file base.py.
References BaseEnvironment._iter_distributions(), Environment._iter_distributions(), and i.
Referenced by Environment._search_distribution(), Environment.get_distribution(), and BaseEnvironment.iter_installed_distributions().
Iterator[BaseDistribution] iter_installed_distributions | ( | self, | |
bool | local_only = True , |
||
Container[str] | skip = stdlib_pkgs , |
||
bool | include_editables = True , |
||
bool | editables_only = False , |
||
bool | user_only = False |
||
) |
Return a list of installed distributions. This is based on ``iter_all_distributions()`` with additional filtering options. Note that ``iter_installed_distributions()`` without arguments is *not* equal to ``iter_all_distributions()``, since some of the configurations exclude packages by default. :param local_only: If True (default), only return installations local to the current virtualenv, if in a virtualenv. :param skip: An iterable of canonicalized project names to ignore; defaults to ``stdlib_pkgs``. :param include_editables: If False, don't report editables. :param editables_only: If True, only report editables. :param user_only: If True, only report installations in the user site directory.
Definition at line 631 of file base.py.
References i, and BaseEnvironment.iter_all_distributions().