OS Manuals

/usr/bin/hashin

Helps you write your requirements.txt with hashes so you can install with pip install --require-hashes -r ...

From py3-hashin 1.0.5-r13 (enterprise-packages), captured 2026-11-09 by running hashin --help (exit 0). permalink

usage: hashin [-h] [-r REQUIREMENTS_FILE] [-a ALGORITHM] [-v] [--include-prereleases]
              [-p PYTHON_VERSION] [--version] [-d] [-u] [-i] [--synchronous]
              [--index-url INDEX_URL]
              [packages ...]

positional arguments:
  packages              One or more package specifiers (e.g. some-package or some-package==1.2.3)

options:
  -h, --help            show this help message and exit
  -r, --requirements-file REQUIREMENTS_FILE
                        requirements file to write to (default requirements.txt)
  -a, --algorithm ALGORITHM
                        The hash algorithm to use: one of sha256, sha384, sha512
  -v, --verbose         Verbose output
  --include-prereleases
                        Include pre-releases (off by default)
  -p, --python-version PYTHON_VERSION
                        Python version to add wheels for. May be used multiple times.
  --version             Version of hashin
  -d, --dry-run         Don't touch requirements.txt and just show the diff
  -u, --update-all      Update all mentioned packages in the requirements file.
  -i, --interactive     Ask about each possible update. Only applicable together with --update-
                        all/-u.
  --synchronous         Do not download from pypi in parallel.
  --index-url INDEX_URL
                        alternate package index url (default https://pypi.org/)
Options (12)
OptionDescriptionSource
-h, --helpshow this help message and exithelp
-r, --requirements-file REQUIREMENTS_FILErequirements file to write to (default requirements.txt)help
-a, --algorithm ALGORITHMThe hash algorithm to use: one of sha256, sha384, sha512help
-v, --verboseVerbose outputhelp
--include-prereleasesInclude pre-releases (off by default)help
-p, --python-version PYTHON_VERSIONPython version to add wheels for.help
--versionVersion of hashinhelp
-d, --dry-runDon't touch requirements.txt and just show the diffhelp
-u, --update-allUpdate all mentioned packages in the requirements file.help
-i, --interactiveAsk about each possible update.help
--synchronousDo not download from pypi in parallel.help
--index-url INDEX_URLalternate package index url (default https://pypi.org/)help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.