PackageInstaller
Sub classes¶
| Name | Children | Inherits |
|---|---|---|
| MicropipInstaller anyenv.package_install.micropip_install Package installer using micropip in Pyodide environments. |
||
| PipInstaller anyenv.package_install.pip_install Package installer using pip. |
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| ABC abc Helper class that provides a standard way to create an ABC using |
⋔ Inheritance diagram¶
graph TD
2807983507["base.PackageInstaller"]
925645236["abc.ABC"]
2751680898["builtins.object"]
925645236 --> 2807983507
2751680898 --> 925645236
🛈 DocStrings¶
Bases: ABC
Base class for package installer implementations.
Source code in src/anyenv/package_install/base.py
install
abstractmethod
async
¶
Install a package.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
package_name
|
str
|
Name of the package to install. |
required |
version
|
str | None
|
Optional version specifier. If provided without a comparison operator, '==' will be used. |
None
|
upgrade
|
bool
|
Whether to upgrade an existing package. |
False
|
Source code in src/anyenv/package_install/base.py
install_sync
¶
Synchronous version of install.