Skip to main content

Check for differences between requirements.txt files and your environment.

Project description


Check for differences between requirements.txt files and your environment.


Install with pip:

pip install pip-lock

Example usage

from pip_lock import check_requirements

# Check requirements and exit with exit code 1 if there are mismatches
from pip_lock import get_mismatches

# Get mistmatches as a dictionary of tuples (expected, actual)
# e.g. {'django': ('1.10.2', None), 'requests': ('2.11.1', '2.9.2')}
mismatches = get_mismatches('requirements.txt')


  • New notes here

1.0.2 (2016-10-28)

  • Fix relative paths for all environments

1.0.1 (2016-10-28)

  • Support relative requirements.txt paths

1.0.0 (2016-10-27)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pip-lock-1.0.2.tar.gz (5.0 kB view hashes)

Uploaded source

Built Distribution

pip_lock-1.0.2-py2.py3-none-any.whl (4.4 kB view hashes)

Uploaded 2 7

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page