Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

requirements.txt validator

Project description


$ [sudo] pip install requirements-validator


function __doc__
requirements_validator.check(requirements) return a list of invalid requirements

Executable modules

usage __doc__
python -m requirements_validator path validate requirements.txt file

Scripts usage

usage: requirements-validator [path]


import requirements_validator
invalid = requirements_validator.check(["requests", "sqlalchemy"])
if invalid:

exit with non-zero status code on invalid requirements

$ python -m requirements_validator requirements.txt
$ cat requirements.txt | python -m requirements_validator
$ requirements-validator requirements.txt
$ cat requirements.txt | requirements-validator


Project details

Download files

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

Files for requirements-validator, version 2019.4.13
Filename, size File type Python version Upload date Hashes
Filename, size requirements-validator-2019.4.13.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page