Skip to main content

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

Project description

pip-lock

https://img.shields.io/pypi/v/pip-lock.svg https://img.shields.io/travis/YPlan/pip-lock/master.svg

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

Install

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
check_requirements('requirements.txt')
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')

History

  • New notes here

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.1.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

pip_lock-1.0.1-py2.py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page