Package: hashsum
HomePage:https://github.com/avalentino/hashsumCopyright:2016-2021 Antonio Valentino <antonio dot valentino at tiscali dot it>Usageusage: hashsum [-h] [-a] [--tag] [-b | -t] [-c | -l] [--quiet]
               [--status] [--strict] [-w] [-m] [--version]
               [FILE [FILE ...]]

Compute and check message digest with different hash algorithms.
The sums are computed as described in [1].
When checking, the input should be a former output of this program.
The default mode is to print a line with checksum, a character
indicating input mode ('*' for binary, space for text), and name
for each FILE.

[1] https://docs.python.org/3/library/hashlib.html

positional arguments:
  FILE                  name of file to process. If not specified,
                        or set to -, data are read form the
                        standard input

optional arguments:
  -h, --help            show this help message and exit
  -a , --algorithm      specify the hashing algorithm
                        (default: 'md5')
  --tag                 create a BSD-style checksum
  -b, --binary          read input data in binary mode
  -t, --text            read input data in text mode (default)
  -c, --check           read checksum(s) form FILE and check them
  -l, --list-algorithms
                        list available hashing algorithms
  -m, --multi-thread    perform I/O and hash computation in separate threads
                        (default=False). Can speed-up computation on large
                        files while it is not recommended for small files.
  --version             show program's version number and exit

check:
  Options that are useful only when verifying checksums

  --quiet               don't print OK for each successfully
                        verified file
  --status              don't output anything, status code shows
                        success
  --strict              exit non-zero for improperly formatted
                        checksum lines
  -w, --warn            warn about improperly formatted checksum
                        linesPackage testingThe recommended way to test the package is to usepytest:$ python3 -m pytest -v

========================== test session starts ==========================
platform linux -- Python 3.9.5, pytest-6.0.2, py-1.10.0, pluggy-0.13.0
hashsum version:      1.4.0.dev0
Platform:             Linux-5.11.0-24-generic-x86_64-with-glibc2.33
Byte-ordering:        little
Default encoding:     utf-8
Default FS encoding:  utf-8
Default locale:       ('it_IT', 'UTF-8')
rootdir: /home/antonio/projects/hashsum, configfile: setup.cfg
plugins: hypothesis-5.43.3, remotedata-0.3.2, doctestplus-0.9.0,
        openfiles-0.5.0, flake8-1.0.6, filter-subpackage-0.1.1, cov-2.10.1
collected 26 items

tests/test_hashsum.py::ComputeSumTestCase::test_binary PASSED       [  3%]
tests/test_hashsum.py::ComputeSumTestCase::test_binary_auto PASSED  [  7%]

[...]

tests/test_hashsum.py::ThreadedCheckTestCase::test_text PASSED      [100%]

========================== 26 passed in 0.29s ===========================Please note that some basic system information that can be sued for bug
reporting are also printed on the screen.The default configuration for “pytest” is stored into thesetup.cfgfile in the root directory of the source package:[tool:pytest]
addopts = -p no:warnings -p no:loggingAlternatively it is possible to use:$ python3 -m unittest -v tests/test_hashsum.pyLicenseThehashsumsoftware is distribute under the terms of the
“3-Clause BSD License” seeLICENSE.txtfile for details.hashsum changeloghashsum v1.4.1 (18/07/2021)Fix the wheel generation: generated wheel are not universal,
they only work with Python 3.6 and higherhashsum v1.4.0 (18/07/2021)Drop support for Python < 3.6.Switch to GitHub Actions for CI.Fix verification of checksums in text mode on Windows.Re-factorize and simplify the test code.Add buildsystem support (pyproject.toml)Switch to declarative setup configuration (setup.cfg).hashsum v1.3.0 (25/08/2019)hashsum.VERSION renamed into hashsum.__version__added test utility functionsprefer lowercase names for hash functionsimprove robustness against unknown/unavailable hash functions in
threaded checksum computationnew–failfastoption added to the test CLIimproved benchmark scriptman page updatedimproved compatibility withpytesthashsum v1.2.2 (15/11/2016)Fix compatibility with the windows operating systemhashsum v1.2.1 (24/08/2016)Minor packaging fixeshashsum v1.2.0 (24/08/2016)Improved compatibility with the OpenSSL command line toolBetter iteration on data blocksOptional threaded hash computationRefactoring: the entire code has been re-organized in toolsDrop allgettextrelated fileshashsum v1.1.1 (30/01/2016)Include man pages in the tarballhashsum v1.1 (30/01/2016)Fixed IncrementalNewlineDecoder.decoder signatureAlways call decode with final=True when reading in text modeFactorized code for checksum computationAllExceptionsare now trapped in themainfunctionAdded unit testingCode cleanupAddedNEWS.rstfileAdded man pageImproved command line help (also fixed some typos)Enabled automatic testing with travis-cihashsum v1.0 (04/01/2016)Initial release