uv
dev_tool.services.python.package.uv
log = logging.getLogger(__name__)
module-attribute
WindowsUvPackageManager
Bases: PackageManager
A Windows-specific implementation of the uv package manager.
This class provides methods for managing Python packages using uv on Windows.
create_virtual_environment
A method that creates a virtual environment using uv.
Returns:
-
bool–True if the creation was successful, False otherwise.
Source code in dev_tool/services/python/package/uv.py
install_from_pyproject
A method that installs dependencies from pyproject.toml using uv.
Parameters:
Returns:
-
bool–True if the installation was successful, False otherwise.
Source code in dev_tool/services/python/package/uv.py
install_from_requirements
A method that installs dependencies from a requirements file using uv.
Parameters:
-
requirements(Path) –The path to the requirements file.
Returns:
-
bool–True if the installation was successful, False otherwise.
Source code in dev_tool/services/python/package/uv.py
install_package
A method that installs a package using uv.
Parameters:
-
package(str) –The name of the package to install.
Returns:
-
bool–True if the installation was successful, False otherwise.
Source code in dev_tool/services/python/package/uv.py
install_package_manager
A method that installs uv if it is not already installed.
Returns:
-
bool–True if the installation was successful, False otherwise.
Source code in dev_tool/services/python/package/uv.py
is_available
A method that checks if uv is available on the system.
Returns:
-
bool–True if uv is available, False otherwise.
Source code in dev_tool/services/python/package/uv.py
list_installed_packages
A method that lists all installed packages using uv.
Returns:
Source code in dev_tool/services/python/package/uv.py
uninstall_package
A method that uninstalls a package using uv.
Parameters:
-
package(str) –The name of the package to uninstall.
Returns:
-
bool–True if the uninstallation was successful, False otherwise.
Source code in dev_tool/services/python/package/uv.py
upgrade_package_manager
Source code in dev_tool/services/python/package/uv.py
UnixUvPackageManager
Bases: PackageManager
A Unix-specific implementation of the uv package manager.
This class provides methods for managing Python packages using uv on Unix-like systems.
is_available
A method that checks if uv is available on the system.
Returns:
-
bool–True if uv is available, False otherwise.
Source code in dev_tool/services/python/package/uv.py
install_package
A method that installs a package using uv.
Parameters:
-
package(str) –The name of the package to install.
Returns:
-
bool–True if the installation was successful, False otherwise.
Source code in dev_tool/services/python/package/uv.py
install_package_manager
A method that installs uv if it is not already installed.
Returns:
-
bool–True if the installation was successful, False otherwise.
Source code in dev_tool/services/python/package/uv.py
create_virtual_environment
A method that creates a virtual environment using uv.
Returns:
-
bool–True if the creation was successful, False otherwise.
Source code in dev_tool/services/python/package/uv.py
install_from_requirements
A method that installs dependencies from a requirements file using uv.
Parameters:
-
requirements(Path) –The path to the requirements file.
Returns:
-
bool–True if the installation was successful, False otherwise.
Source code in dev_tool/services/python/package/uv.py
install_from_pyproject
A method that installs dependencies from pyproject.toml using uv.
Parameters:
Returns:
-
bool–True if the installation was successful, False otherwise.
Source code in dev_tool/services/python/package/uv.py
uninstall_package
A method that uninstalls a package using uv.
Parameters:
-
package(str) –The name of the package to uninstall.
Returns:
-
bool–True if the uninstallation was successful, False otherwise.
Source code in dev_tool/services/python/package/uv.py
upgrade_package_manager
A method that upgrades uv to the latest version.
Returns:
-
bool–True if the upgrade was successful, False otherwise.
Source code in dev_tool/services/python/package/uv.py
list_installed_packages
A method that lists all installed packages using uv.
Returns: