{ "info": { "author": "Joshua Avalon", "author_email": "", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only" ], "description": "![file-hash](https://raw.githubusercontent.com/joshuaavalon/file_hash/master/image/icon.png \"file-hash\")\n\n# file-hash\n\nfile-hash is a simple command line hashing utility written in Python.\n\n## Requirements\n\n* Python 3.7+ \n* Jinja2 2.10+\n\nYou should able to use this with Python < 3.7 if you have [dataclass back port](https://github.com/ericvsmith/dataclasses).\n\n## Usage\n\n### Create a hash\n\n```bash\nfile_hash hash file.txt\n```\n\n### Validate a hash\n\n```bash\nfile_hash validate file.txt\n```\n\n## Options\n\n```bash\nusage: file_hash [-h] [-a ] [-d] [-r] [-s] [-p ]\n [-P [ [ ...]]] [-S [ [ ...]]]\n [-R ] [-K ] [-J ]\n \n\nSimple hashing script for files.\n\npositional arguments:\n hash or validate\n Starting path\n\noptional arguments:\n -h, --help show this help message and exit\n -a , --algorithm \n Algorithm to calculate hash. (Default: md5)\n -d, --dry-run Enable dry run to check what file will be generated.\n -r, --recursive Go through directories recursively. Use carefully with -s\n -s, --symlink Follow symlink. Use carefully with -r\n -p , --report \n Generate a HTML report.\n -P [ [ ...]], --ignore-prefix [ [ ...]]\n Ignore files and directories that start with those prefix. (Default: [\".\"])\n -S [ [ ...]], --ignore-suffix [ [ ...]]\n Ignore files and directories that end with those suffix. (Default: all hashing algorithm)\n -R , --regex \n Only hash the files that match the regular expression. (Default: None)\n -K , --min-size \n Minimum file size to be hashed. Default unit is Byte.\n Support KB, GB, TB, PB. e.g. 1KB (Default: None)\n -J , --max-size \n Maximum file size to be hashed. Default unit is Byte.\n Support KB, GB, TB, PB. e.g. 1KB (Default: None)\n```\n\nNote than `algorithm` and `dry-run` does not work on `validate`.\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://git.joshuaavalon.io/joshuaavalon/file_hash", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "file-hash", "package_url": "https://pypi.org/project/file-hash/", "platform": "", "project_url": "https://pypi.org/project/file-hash/", "project_urls": { "Bug Tracker": "https://github.com/joshuaavalon/file_hash", "Documentation": "https://git.joshuaavalon.io/joshuaavalon/file_hash/blob/master/README.md", "Homepage": "https://git.joshuaavalon.io/joshuaavalon/file_hash", "Source Code": "https://git.joshuaavalon.io/joshuaavalon/file_hash" }, "release_url": "https://pypi.org/project/file-hash/1.0.1/", "requires_dist": [ "Jinja2 (==2.10)" ], "requires_python": ">=3.7", "summary": "Simple hashing script for files.", "version": "1.0.1" }, "last_serial": 4151379, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "5ad596a2eb5819d40cad983952262323", "sha256": "01d52e617ecc75351682d847c72bc3fdd026b5206850a11263777a12440afd90" }, "downloads": -1, "filename": "file_hash-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5ad596a2eb5819d40cad983952262323", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 8959, "upload_time": "2018-08-09T03:19:41", "url": "https://files.pythonhosted.org/packages/d2/f1/ce05378e413ac442ff22afe6a6fedd7f627ef2a06a778474545117254e53/file_hash-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "65c6b1693ecdf7cd6012c4b7239e7081", "sha256": "224abf757e6f07786a8c0644669588344c47efa7353182353634e2c0156a8c5f" }, "downloads": -1, "filename": "file_hash-1.0.1.tar.gz", "has_sig": false, "md5_digest": "65c6b1693ecdf7cd6012c4b7239e7081", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 6776, "upload_time": "2018-08-09T03:19:43", "url": "https://files.pythonhosted.org/packages/c4/98/a09132ff452c475512743f507fe279eaaf77defbe9c2289e14ba4ce7f6ad/file_hash-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5ad596a2eb5819d40cad983952262323", "sha256": "01d52e617ecc75351682d847c72bc3fdd026b5206850a11263777a12440afd90" }, "downloads": -1, "filename": "file_hash-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5ad596a2eb5819d40cad983952262323", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 8959, "upload_time": "2018-08-09T03:19:41", "url": "https://files.pythonhosted.org/packages/d2/f1/ce05378e413ac442ff22afe6a6fedd7f627ef2a06a778474545117254e53/file_hash-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "65c6b1693ecdf7cd6012c4b7239e7081", "sha256": "224abf757e6f07786a8c0644669588344c47efa7353182353634e2c0156a8c5f" }, "downloads": -1, "filename": "file_hash-1.0.1.tar.gz", "has_sig": false, "md5_digest": "65c6b1693ecdf7cd6012c4b7239e7081", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 6776, "upload_time": "2018-08-09T03:19:43", "url": "https://files.pythonhosted.org/packages/c4/98/a09132ff452c475512743f507fe279eaaf77defbe9c2289e14ba4ce7f6ad/file_hash-1.0.1.tar.gz" } ] }