Metadata-Version: 2.1
Name: python-hashtools
Version: 0.0.4
Summary: Python hash tools.
Home-page: https://github.com/ChenyangGao/web-mount-packs/tree/main/python-module/python-hashtools
License: MIT
Keywords: file,hash,hashtools
Author: ChenyangGao
Author-email: wosiwujm@gmail.com
Requires-Python: >=3.12,<4.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: iterdir
Requires-Dist: python-filewrap (>=0.2.8)
Project-URL: Repository, https://github.com/ChenyangGao/web-mount-packs/tree/main/python-module/python-hashtools
Description-Content-Type: text/markdown

# Python hash tools.

## Installation

You can install from [pypi](https://pypi.org/project/python-hashtools/)

```console
pip install -U python-hashtools
```

## Usage

### Module

```python
import hashtools
```

### Command

```console
$ hashtools -h
usage: hashtools [-h] [-hs [hash ...]] [-s START] [-t STOP] [-v] [path ...]

calculate file hashes

positional arguments:
  path                  file path(s) to be downloaded, if omitted, read from stdin (one path per line)

options:
  -h, --help            show this help message and exit
  -hs [hash ...], --hashs [hash ...]
                        hash algorithms, default to 'md5'
  -s START, --start START
                        start from file offset, default to 0 (start of file)
  -t STOP, --stop STOP  stop until file offset, default to None (end of file)
  -v, --version         print the current version
```

