Pipenv Functions

pipenv_functions.bsh

Functions for working with pipenv files

get_pipfile_hash

Print the hash of a Pipfile

Reproduces what pipenv internally calculates for the hash of a Pipfile.

Arguments:

$1 - Pipfile filename

Output:

stdout - hex sha256 sum of Pipfile data

Uses:

Requires python with pipenv

Note

Need to be run in the python environment (virtualenv)

get_pipfile_lock_hash

Print the hash stored in a Pipfile.lock

Arguments:

$1 - Pipfile.lock filename

Output:

stdout - hex sha256 sum of Pipfile data

Uses:

Requires python

See also

get_pipfile_hash

get_pipenv_virtualenv_location

Print the virtualenv location for a given Pipefile

Arguments:

$1 - pipenv project root directory (directory and Pipfile do not need to exist)

Output:

stdout - Location where the virtualenv would be.

Uses:

Requires python