hashio 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hashio-0.0.1/PKG-INFO +92 -0
- hashio-0.0.1/README.md +71 -0
- hashio-0.0.1/lib/hashio/__init__.py +37 -0
- hashio-0.0.1/lib/hashio/cli.py +76 -0
- hashio-0.0.1/lib/hashio.egg-info/PKG-INFO +92 -0
- hashio-0.0.1/lib/hashio.egg-info/SOURCES.txt +10 -0
- hashio-0.0.1/lib/hashio.egg-info/dependency_links.txt +1 -0
- hashio-0.0.1/lib/hashio.egg-info/entry_points.txt +2 -0
- hashio-0.0.1/lib/hashio.egg-info/not-zip-safe +1 -0
- hashio-0.0.1/lib/hashio.egg-info/top_level.txt +1 -0
- hashio-0.0.1/setup.cfg +4 -0
- hashio-0.0.1/setup.py +76 -0
hashio-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: hashio
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Custom file and directory checksum tool
|
|
5
|
+
Home-page: http://github.com/rsgalloway/hashio
|
|
6
|
+
Author: Ryan Galloway
|
|
7
|
+
Author-email: ryan@rsgalloway.com
|
|
8
|
+
License: BSD 3-Clause License
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Requires-Python: >=3.6
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
hashio
|
|
23
|
+
======
|
|
24
|
+
|
|
25
|
+
Custom file and directory checksum tool.
|
|
26
|
+
|
|
27
|
+
## Features
|
|
28
|
+
|
|
29
|
+
- multiple hash algos: c4, md5, sha256, sha512, xxh64
|
|
30
|
+
- multiple export options (Default .json)
|
|
31
|
+
- recursively runs checksums on files in directory trees
|
|
32
|
+
- ignores predefined file name patterns
|
|
33
|
+
- optionally caches results for better performance
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## Installation
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
$ pip install -U hashio
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
Basic usage:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
hashio [-h] [--hash HASH [HASH ...]] [-t FILETYPE] [-o FILEPATH] [-a]
|
|
48
|
+
[-m] [-r] [--cache] [-v] [--version]
|
|
49
|
+
PATH [PATH ...]
|
|
50
|
+
|
|
51
|
+
positional arguments:
|
|
52
|
+
PATH one or more files or directories
|
|
53
|
+
|
|
54
|
+
optional arguments:
|
|
55
|
+
-h, --help show this help message and exit
|
|
56
|
+
--hash HASH [HASH ...]
|
|
57
|
+
checksum algorithm (c4|md5|sha256|sha512|xxh64)
|
|
58
|
+
-t FILETYPE, --filetype FILETYPE
|
|
59
|
+
PATH is of type file (f) or dir (d) or all (a)
|
|
60
|
+
-o FILEPATH, --outfile FILEPATH
|
|
61
|
+
write results to output FILEPATH
|
|
62
|
+
-a, --abs use absolute paths
|
|
63
|
+
-m, --metadata include file metadata in output
|
|
64
|
+
-r, --recursive recurse directory structure
|
|
65
|
+
--cache cache checksum values while walking filesystem
|
|
66
|
+
-v, --verify verify checksum values in PATH
|
|
67
|
+
--version show program's version number and exit
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Examples
|
|
71
|
+
|
|
72
|
+
Checksum one or more files or directories using one or more hash
|
|
73
|
+
algorithms (default is xxh64):
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
$ hashio <PATH1>..<PATHN> [--hash <ALGO1>..<ALGON>]
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Recursively checksum and gather metadata all the files in a dir
|
|
80
|
+
tree, and output results to a JSON file:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
$ hashio <DIR> -rm -o out.json
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Note that files matching patterns defined in `$IGNORABLE` will be skipped.
|
|
87
|
+
|
|
88
|
+
Verify paths in previously generated JSON file by comparing stored mtimes (if available) or regenerated hash values if mtimes are missing or different:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
$ hashio --verify out.json
|
|
92
|
+
```
|
hashio-0.0.1/README.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
hashio
|
|
2
|
+
======
|
|
3
|
+
|
|
4
|
+
Custom file and directory checksum tool.
|
|
5
|
+
|
|
6
|
+
## Features
|
|
7
|
+
|
|
8
|
+
- multiple hash algos: c4, md5, sha256, sha512, xxh64
|
|
9
|
+
- multiple export options (Default .json)
|
|
10
|
+
- recursively runs checksums on files in directory trees
|
|
11
|
+
- ignores predefined file name patterns
|
|
12
|
+
- optionally caches results for better performance
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
$ pip install -U hashio
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
Basic usage:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
hashio [-h] [--hash HASH [HASH ...]] [-t FILETYPE] [-o FILEPATH] [-a]
|
|
27
|
+
[-m] [-r] [--cache] [-v] [--version]
|
|
28
|
+
PATH [PATH ...]
|
|
29
|
+
|
|
30
|
+
positional arguments:
|
|
31
|
+
PATH one or more files or directories
|
|
32
|
+
|
|
33
|
+
optional arguments:
|
|
34
|
+
-h, --help show this help message and exit
|
|
35
|
+
--hash HASH [HASH ...]
|
|
36
|
+
checksum algorithm (c4|md5|sha256|sha512|xxh64)
|
|
37
|
+
-t FILETYPE, --filetype FILETYPE
|
|
38
|
+
PATH is of type file (f) or dir (d) or all (a)
|
|
39
|
+
-o FILEPATH, --outfile FILEPATH
|
|
40
|
+
write results to output FILEPATH
|
|
41
|
+
-a, --abs use absolute paths
|
|
42
|
+
-m, --metadata include file metadata in output
|
|
43
|
+
-r, --recursive recurse directory structure
|
|
44
|
+
--cache cache checksum values while walking filesystem
|
|
45
|
+
-v, --verify verify checksum values in PATH
|
|
46
|
+
--version show program's version number and exit
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Examples
|
|
50
|
+
|
|
51
|
+
Checksum one or more files or directories using one or more hash
|
|
52
|
+
algorithms (default is xxh64):
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
$ hashio <PATH1>..<PATHN> [--hash <ALGO1>..<ALGON>]
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Recursively checksum and gather metadata all the files in a dir
|
|
59
|
+
tree, and output results to a JSON file:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
$ hashio <DIR> -rm -o out.json
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Note that files matching patterns defined in `$IGNORABLE` will be skipped.
|
|
66
|
+
|
|
67
|
+
Verify paths in previously generated JSON file by comparing stored mtimes (if available) or regenerated hash values if mtimes are missing or different:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
$ hashio --verify out.json
|
|
71
|
+
```
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
#
|
|
3
|
+
# Copyright (c) 2024, Ryan Galloway (ryan@rsgalloway.com)
|
|
4
|
+
#
|
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
|
6
|
+
# modification, are permitted provided that the following conditions are met:
|
|
7
|
+
#
|
|
8
|
+
# - Redistributions of source code must retain the above copyright notice,
|
|
9
|
+
# this list of conditions and the following disclaimer.
|
|
10
|
+
#
|
|
11
|
+
# - Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
# this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
# and/or other materials provided with the distribution.
|
|
14
|
+
#
|
|
15
|
+
# - Neither the name of the software nor the names of its contributors
|
|
16
|
+
# may be used to endorse or promote products derived from this software
|
|
17
|
+
# without specific prior written permission.
|
|
18
|
+
#
|
|
19
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
22
|
+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
23
|
+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
24
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
25
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
26
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
27
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
28
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
29
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
+
#
|
|
31
|
+
|
|
32
|
+
__doc__ = """
|
|
33
|
+
Custom file and directory checksum tool.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
__prog__ = "hashio"
|
|
37
|
+
__version__ = "0.0.1"
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
#
|
|
3
|
+
# Copyright (c) 2024, Ryan Galloway (ryan@rsgalloway.com)
|
|
4
|
+
#
|
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
|
6
|
+
# modification, are permitted provided that the following conditions are met:
|
|
7
|
+
#
|
|
8
|
+
# - Redistributions of source code must retain the above copyright notice,
|
|
9
|
+
# this list of conditions and the following disclaimer.
|
|
10
|
+
#
|
|
11
|
+
# - Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
# this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
# and/or other materials provided with the distribution.
|
|
14
|
+
#
|
|
15
|
+
# - Neither the name of the software nor the names of its contributors
|
|
16
|
+
# may be used to endorse or promote products derived from this software
|
|
17
|
+
# without specific prior written permission.
|
|
18
|
+
#
|
|
19
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
22
|
+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
23
|
+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
24
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
25
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
26
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
27
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
28
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
29
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
+
#
|
|
31
|
+
|
|
32
|
+
__doc__ = """
|
|
33
|
+
Command line interface for hashio.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
import argparse
|
|
37
|
+
import os
|
|
38
|
+
import sys
|
|
39
|
+
|
|
40
|
+
from hashio import __version__
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def parse_args():
|
|
44
|
+
"""sys.argv parser, returns args."""
|
|
45
|
+
|
|
46
|
+
parser = argparse.ArgumentParser(
|
|
47
|
+
description=__doc__, formatter_class=argparse.RawTextHelpFormatter
|
|
48
|
+
)
|
|
49
|
+
parser.add_argument(
|
|
50
|
+
"path",
|
|
51
|
+
type=str,
|
|
52
|
+
metavar="PATH",
|
|
53
|
+
nargs="?",
|
|
54
|
+
help="path to checksum",
|
|
55
|
+
default=os.getcwd(),
|
|
56
|
+
)
|
|
57
|
+
parser.add_argument(
|
|
58
|
+
"--version",
|
|
59
|
+
action="version",
|
|
60
|
+
version="%(prog)s {version}".format(version=__version__),
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
args = parser.parse_args()
|
|
64
|
+
return args
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def main():
|
|
68
|
+
"""Main thread."""
|
|
69
|
+
|
|
70
|
+
parse_args()
|
|
71
|
+
|
|
72
|
+
return 0
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
if __name__ == "__main__":
|
|
76
|
+
sys.exit(main())
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: hashio
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Custom file and directory checksum tool
|
|
5
|
+
Home-page: http://github.com/rsgalloway/hashio
|
|
6
|
+
Author: Ryan Galloway
|
|
7
|
+
Author-email: ryan@rsgalloway.com
|
|
8
|
+
License: BSD 3-Clause License
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Requires-Python: >=3.6
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
hashio
|
|
23
|
+
======
|
|
24
|
+
|
|
25
|
+
Custom file and directory checksum tool.
|
|
26
|
+
|
|
27
|
+
## Features
|
|
28
|
+
|
|
29
|
+
- multiple hash algos: c4, md5, sha256, sha512, xxh64
|
|
30
|
+
- multiple export options (Default .json)
|
|
31
|
+
- recursively runs checksums on files in directory trees
|
|
32
|
+
- ignores predefined file name patterns
|
|
33
|
+
- optionally caches results for better performance
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## Installation
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
$ pip install -U hashio
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
Basic usage:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
hashio [-h] [--hash HASH [HASH ...]] [-t FILETYPE] [-o FILEPATH] [-a]
|
|
48
|
+
[-m] [-r] [--cache] [-v] [--version]
|
|
49
|
+
PATH [PATH ...]
|
|
50
|
+
|
|
51
|
+
positional arguments:
|
|
52
|
+
PATH one or more files or directories
|
|
53
|
+
|
|
54
|
+
optional arguments:
|
|
55
|
+
-h, --help show this help message and exit
|
|
56
|
+
--hash HASH [HASH ...]
|
|
57
|
+
checksum algorithm (c4|md5|sha256|sha512|xxh64)
|
|
58
|
+
-t FILETYPE, --filetype FILETYPE
|
|
59
|
+
PATH is of type file (f) or dir (d) or all (a)
|
|
60
|
+
-o FILEPATH, --outfile FILEPATH
|
|
61
|
+
write results to output FILEPATH
|
|
62
|
+
-a, --abs use absolute paths
|
|
63
|
+
-m, --metadata include file metadata in output
|
|
64
|
+
-r, --recursive recurse directory structure
|
|
65
|
+
--cache cache checksum values while walking filesystem
|
|
66
|
+
-v, --verify verify checksum values in PATH
|
|
67
|
+
--version show program's version number and exit
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Examples
|
|
71
|
+
|
|
72
|
+
Checksum one or more files or directories using one or more hash
|
|
73
|
+
algorithms (default is xxh64):
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
$ hashio <PATH1>..<PATHN> [--hash <ALGO1>..<ALGON>]
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Recursively checksum and gather metadata all the files in a dir
|
|
80
|
+
tree, and output results to a JSON file:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
$ hashio <DIR> -rm -o out.json
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Note that files matching patterns defined in `$IGNORABLE` will be skipped.
|
|
87
|
+
|
|
88
|
+
Verify paths in previously generated JSON file by comparing stored mtimes (if available) or regenerated hash values if mtimes are missing or different:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
$ hashio --verify out.json
|
|
92
|
+
```
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
setup.py
|
|
3
|
+
lib/hashio/__init__.py
|
|
4
|
+
lib/hashio/cli.py
|
|
5
|
+
lib/hashio.egg-info/PKG-INFO
|
|
6
|
+
lib/hashio.egg-info/SOURCES.txt
|
|
7
|
+
lib/hashio.egg-info/dependency_links.txt
|
|
8
|
+
lib/hashio.egg-info/entry_points.txt
|
|
9
|
+
lib/hashio.egg-info/not-zip-safe
|
|
10
|
+
lib/hashio.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
hashio
|
hashio-0.0.1/setup.cfg
ADDED
hashio-0.0.1/setup.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
#
|
|
3
|
+
# Copyright (c) 2024, Ryan Galloway (ryan@rsgalloway.com)
|
|
4
|
+
#
|
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
|
6
|
+
# modification, are permitted provided that the following conditions are met:
|
|
7
|
+
#
|
|
8
|
+
# - Redistributions of source code must retain the above copyright notice,
|
|
9
|
+
# this list of conditions and the following disclaimer.
|
|
10
|
+
#
|
|
11
|
+
# - Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
# this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
# and/or other materials provided with the distribution.
|
|
14
|
+
#
|
|
15
|
+
# - Neither the name of the software nor the names of its contributors
|
|
16
|
+
# may be used to endorse or promote products derived from this software
|
|
17
|
+
# without specific prior written permission.
|
|
18
|
+
#
|
|
19
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
22
|
+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
23
|
+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
24
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
25
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
26
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
27
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
28
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
29
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
+
#
|
|
31
|
+
|
|
32
|
+
import os
|
|
33
|
+
|
|
34
|
+
from setuptools import find_packages, setup
|
|
35
|
+
|
|
36
|
+
here = os.path.abspath(os.path.dirname(__file__))
|
|
37
|
+
with open(os.path.join(here, "README.md")) as f:
|
|
38
|
+
long_description = f.read()
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
setup(
|
|
42
|
+
name="hashio",
|
|
43
|
+
version="0.0.1",
|
|
44
|
+
description="Custom file and directory checksum tool",
|
|
45
|
+
long_description=long_description,
|
|
46
|
+
long_description_content_type="text/markdown",
|
|
47
|
+
author="Ryan Galloway",
|
|
48
|
+
author_email="ryan@rsgalloway.com",
|
|
49
|
+
url="http://github.com/rsgalloway/hashio",
|
|
50
|
+
license="BSD 3-Clause License",
|
|
51
|
+
classifiers=[
|
|
52
|
+
# How mature is this project? Common values are
|
|
53
|
+
# 3 - Alpha
|
|
54
|
+
# 4 - Beta
|
|
55
|
+
# 5 - Production/Stable
|
|
56
|
+
"Development Status :: 3 - Alpha",
|
|
57
|
+
"Intended Audience :: Developers",
|
|
58
|
+
"Topic :: Software Development :: Libraries",
|
|
59
|
+
"Programming Language :: Python :: 3",
|
|
60
|
+
"Programming Language :: Python :: 3.6",
|
|
61
|
+
"Programming Language :: Python :: 3.7",
|
|
62
|
+
"Programming Language :: Python :: 3.8",
|
|
63
|
+
"Programming Language :: Python :: 3.9",
|
|
64
|
+
"Programming Language :: Python :: 3.10",
|
|
65
|
+
"Programming Language :: Python :: 3.11",
|
|
66
|
+
],
|
|
67
|
+
package_dir={"": "lib"},
|
|
68
|
+
packages=find_packages("lib"),
|
|
69
|
+
entry_points={
|
|
70
|
+
"console_scripts": [
|
|
71
|
+
"hashio=hashio.cli:main",
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
python_requires=">=3.6",
|
|
75
|
+
zip_safe=False,
|
|
76
|
+
)
|