Core functionality (core)#

Classes:

VirtualEnvPathAndLink(path, link)

Class to handle virtual environment with link

Functions:

get_invalid_symlinks(workon_home)

Get iterator of paths to invalid symlinks under a given path

get_virtualenv_paths(workon_home)

Get iterator of virtual environment paths under a given path.

uv_run(venv_path, *args[, dry_run])

Construct and run command under uv

is_fish_shell()

Whether current shell is fish shell.

generate_shell_config()

Generate bash/zsh file for shell config.

Bases: object

Class to handle virtual environment with link

Methods:

create_symlink([resolve, dry_run])

Create the symlink.

from_paths_and_workon(paths, workon_home, ...)

Get iterable of objects from paths

Create the symlink.

classmethod from_paths_and_workon(paths, workon_home, venv_patterns, names=None)[source]#

Get iterable of objects from paths

Get iterator of paths to invalid symlinks under a given path

uv_workon.core.get_virtualenv_paths(workon_home)[source]#

Get iterator of virtual environment paths under a given path.

uv_workon.core.uv_run(venv_path, *args, dry_run=False)[source]#

Construct and run command under uv

uv_workon.core.is_fish_shell()[source]#

Whether current shell is fish shell.

uv_workon.core.generate_shell_config()[source]#

Generate bash/zsh file for shell config.