pipenv_pipes package

Submodules

pipenv_pipes.cli module

pipenv_pipes.core module

class pipenv_pipes.core.Environment(envpath, envname, project_name, binpath)

Bases: tuple

binpath

Alias for field number 3

envname

Alias for field number 1

envpath

Alias for field number 0

project_name

Alias for field number 2

pipenv_pipes.core.delete_directory(envpath)[source]

Deletes the enviroment by its path

pipenv_pipes.core.delete_project_dir_file(envpath)[source]
pipenv_pipes.core.find_binary(envpath)[source]

Finds the python binary in a given environment path

pipenv_pipes.core.find_environments(pipenv_home)[source]

Returns Environment NamedTuple created from list of folders found in the Pipenv Environment location

pipenv_pipes.core.get_binary_version(envpath)[source]

Returns a string indicating the Python version (Python 3.5.6)

pipenv_pipes.core.read_project_dir_file(envpath)[source]
pipenv_pipes.core.write_project_dir_project_file(envpath, project_dir)[source]

pipenv_pipes.environment module

Pipes: Pipenv Shell Switcher

class pipenv_pipes.environment.EnvVars[source]
validate_environment()[source]

pipenv_pipes.pipenv module

pipenv_pipes.pipenv.PipedPopen(cmds, **kwargs)[source]

Helper Piped Process for drier code

pipenv_pipes.pipenv.call_pipenv_shell(cwd, envname='pipenv-shell', timeout=None)[source]

Calls pipenv shell` from a given envname

pipenv_pipes.pipenv.call_pipenv_venv(project_dir, timeout=10)[source]

Calls pipenv --venv from a given project directory

pipenv_pipes.pipenv.call_python_version(pybinpath)[source]

pipenv_pipes.utils module

Pipes: Pipenv Shell Switcher

pipenv_pipes.utils.collapse_path(path)[source]

Replaces Home and WorkOn values in a path for their variable names

pipenv_pipes.utils.get_index_from_query(query)[source]

Index should be passed as 1:

pipenv_pipes.utils.get_project_dir_filepath(envpath)[source]

Returns .project filepath from an environment path

pipenv_pipes.utils.get_project_name(folder_name)[source]

Returns name of a project given a Pipenv Environment folder

pipenv_pipes.utils.get_query_matches(environments, query)[source]

Returns matching environments from an Environment list and a query

Module contents

Pipes: Pipenv Shell Switcher