pip commands

class reemote.commands.pip.install.Install(packages: List[str], guard: bool = True, sudo: bool = False, su: bool = False)[source]

Bases: Command_install

Implements package installation using the pip package manager.

This class extends Command to execute the pip install command for installing Python packages.

packages

List of package names to be installed.

guard

A boolean flag indicating whether the operation should be guarded.

sudo

A boolean flag to specify if sudo privileges are required.

su

A boolean flag to specify if the operation should run as su.

Examples:

yield Install(packages=['requests', 'numpy'])
class reemote.commands.pip.remove.Remove(packages: List[str], guard: bool = True, sudo: bool = False, su: bool = False)[source]

Bases: Command_remove

Implements package removal using the pip package manager.

This class extends Command to execute the pip uninstall -y command for removing Python packages.

packages

List of package names to be removed.

guard

A boolean flag indicating whether the operation should be guarded.

sudo

A boolean flag to specify if sudo privileges are required.

su

A boolean flag to specify if the operation should run as su.

Examples:

yield Remove(packages=['requests', 'numpy'])