{"id":20690709,"url":"https://github.com/welbornprod/requirementz","last_synced_at":"2025-04-22T16:58:49.953Z","repository":{"id":57461385,"uuid":"84030515","full_name":"welbornprod/requirementz","owner":"welbornprod","description":"Check pip requirements against installed versions, and other related tools.","archived":false,"fork":false,"pushed_at":"2020-03-18T00:51:05.000Z","size":161,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-04-15T07:18:57.241Z","etag":null,"topics":["library","pip","python","python3","requirements","requirements-management"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/Requirementz","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/welbornprod.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.txt","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-06T04:40:30.000Z","updated_at":"2020-07-17T00:46:45.000Z","dependencies_parsed_at":"2022-09-17T08:00:28.398Z","dependency_job_id":null,"html_url":"https://github.com/welbornprod/requirementz","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welbornprod%2Frequirementz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welbornprod%2Frequirementz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welbornprod%2Frequirementz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welbornprod%2Frequirementz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/welbornprod","download_url":"https://codeload.github.com/welbornprod/requirementz/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250284819,"owners_count":21405295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["library","pip","python","python3","requirements","requirements-management"],"created_at":"2024-11-16T23:14:01.949Z","updated_at":"2025-04-22T16:58:49.919Z","avatar_url":"https://github.com/welbornprod.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Requirementz\n\n* Checks `requirements.txt` against installed packages, or latest versions available on PyPi.\n\n* Shows latest package information from PyPi (for `requirements.txt` or any package).\n\n* Searches `requirements.txt` for text/regex patterns.\n\n* Sorts `requirements.txt` lines in place.\n\n* Finds duplicate entries in `requirements.txt`.\n\n## Installation\n\nThis tool is installable with `pip`:\n```bash\npip install requirementz\n```\n\nThe command is called `requirementz`.\n\n## Dependencies\n\nRequirementz has several python dependencies, all installable with `pip`.\nA `requirements.txt` is provided, for easy installation.\n\n* [colr](https://github.com/welbornprod/colr) - Terminal colors.\n* [docopt](https://github.com/docopt/docopt) - Argument parsing.\n* [formatblock](https://github.com/welbornprod/fmtblock) - Text wrapping (like `textwrap`).\n* [printdebug](https://github.com/welbornprod/printdebug) - Easily disabled debug printing.\n* [requirements-parser](https://github.com/davidfischer/requirements-parser) - Parses `requirements.txt`.\n\nIf you've cloned the repo, you can run `pip install -r requirements.txt` to install all of them. Otherwise, `pip install requirementz`\nshould install all dependencies for you.\n\n## Usage\n\n```\nUsage:\n    requirementz (-h | -v) [-D] [-n]\n    requirementz [-c | -C] [-e] [-L | -r] [-f file] [-D] [-n]\n    requirementz [-a line... | -d]        [-f file] [-D] [-n]\n    requirementz -l [-L | -r]             [-f file] [-D] [-n]\n    requirementz (-P | -S)                [-f file] [-D] [-n]\n    requirementz -p [-L]                            [-D] [-n]\n    requirementz -s pat [-i]              [-f file] [-D] [-n]\n    requirementz PACKAGE...                         [-D] [-n]\n\nOptions:\n    PACKAGE              : Show pypi info for package names.\n    -a line,--add line   : Add a requirement line to the file.\n                           The -a flag can be used multiple times.\n    -C,--checklatest     : Check installed packages and latest versions\n                           from PyPi against requirements.\n    -c,--check           : Check installed packages against requirements.\n    -D,--debug           : Print some debug info while running.\n    -d,--duplicates      : List any duplicate entries.\n    -e,--errors          : Only show packages with errors when checking.\n    -f file,--file file  : Requirements file to parse.\n                           Default: ./requirements.txt\n    -h,--help            : Show this help message.\n    -i,--ignorecase      : Case insensitive when searching.\n    -L,--location        : When listing, sort by location instead of name.\n                           When checking, show the package location.\n    -l,--list            : List all requirements.\n    -n,--nocolor         : Force plain text, with no color codes.\n    -P,--pypi            : Show pypi info for all packages in\n                           requirements.txt.\n    -p,--packages        : List all installed packages.\n    -r,--requirement     : Print name and version requirement only for -c.\n                           Useful for use with -e, to get a list of\n                           packages to install or upgrade.\n    -S,--sort            : Sort the requirements file by package name.\n    -s pat,--search pat  : Search requirements for text/regex pattern.\n    -v,--version         : Show version.\n\n```\n\n## Examples\n\n### Check (installed packages)\n\nCheck `requirements.txt` against installed package versions.\n```bash\nrequirementz\n```\n\nHere you can see that the `colr \u003e= 0.7.6` requirement was not satisfied, because `0.7.5` is installed:\n\n![Output](http://imgur.com/nbzLv7X.png)\n\nShow package location while checking:\n```bash\nrequirementz -L\n```\n\n![Output](http://imgur.com/szaquw9.png)\n\n### Check (latest pypi version)\n\nCheck `requirements.txt` against installed package versions, and the latest\npypi version.\n```bash\nrequirementz -C\n```\n\n![Output](http://imgur.com/FEiyEgU.png)\n\nShow package location while checking:\n```bash\nrequirementz -C -L\n```\n\n![Output](http://imgur.com/h7TgJ0u.png)\n\n### Show pypi info for packages.\n\n`-P` will show pypi information for all packages in `requirements.txt`:\n```bash\nrequirementz -P\n```\n\n![Output](http://imgur.com/nxjGyK7.png)\n\nYou can do this for any package, whether it's installed or not:\n```bash\nrequirementz antigravity\n```\n\n![Output](http://imgur.com/hFXbf8C.png)\n\nYou can use more than one package name.\n\n### Find duplicate requirements\n\nAny duplicate entries will be listed by name, with a count of duplicates.\n```bash\nrequirementz -d\n```\n\n## Notes\n\nThis hasn't been tested very well with CVS or local requirements. Any help in\nthat area would be appreciated, as I haven't had to use those requirement types.\n\n## Contributions\n\nFile an issue or create a pull request. Contributions are welcome.\n\nhttps://github.com/welbornprod/requirementz\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwelbornprod%2Frequirementz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwelbornprod%2Frequirementz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwelbornprod%2Frequirementz/lists"}