{ "info": { "author": "Matthew Andres Moreno", "author_email": "m.more500@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries", "Topic :: Utilities" ], "description": "``fileshash``\n============\n\n.. image:: https://img.shields.io/pypi/v/fileshash.svg\n :target: https://pypi.python.org/pypi/fileshash\n\n.. image:: https://img.shields.io/travis/mmore500/fileshash.svg\n :target: https://travis-ci.org/mmore500/fileshash\n\nPython module to facilitate calculating the hash of multiple files.\nTested against Python 2.7, Python 3.6, PyPy 2.7 and PyPy 3.5.\nCurrently supports `Adler-32 `_, `CRC32 `_, `MD5 `_, `SHA-1 `_, `SHA-256 and SHA-512 `_, and `xxHash-32 and xxHash-64 `_.\n\nForked from Leonides T. Saguisag Jr.'s `FileHash `_.\n\n``FilesHash`` class\n------------------\n\nThe ``FilesHash`` class wraps around the ``hashlib`` (provides hashing for MD5, SHA-1, SHA-256 and SHA-512) and ``zlib`` (provides checksums for Adler-32 and CRC32) modules and contains the following methods:\n\n- ``hash_file(filename)`` - Calculate the file hash for a single file. Returns a string with the hex digest.\n- ``cathash_files(filenames)`` - TODO\n- ``hophash_files(filenames)`` - TODO\n\nThe ``FileHash`` constructor has two optional arguments:\n\n- ``hash_algorithm='sha256'`` - Specifies the hashing algorithm to use.\nSee ``filehash.SUPPORTED_ALGORITHMS`` for the list of supported hash / checksum algorithms.\nDefaults to SHA256.\n- ``chunk_size=262144`` - Integer specifying the chunk size to use (in bytes) when reading the file.\nThis comes in useful when processing very large files to avoid having to read the entire file into memory all at once. Default chunk size is 262144 bytes.\n\nExample usage\n-------------\n\nThe library can be used as follows::\n\n >>> import os\n >>> from fileshash import FilesHash\n >>> TODO\n\n\n``fileshash`` command line tool\n---------------------------------\n\nA command-line tool called ``fileshash`` is also included with the ``fileshash`` package.\nHere is an example of how the tool can be used::\n\n $ TODO\n\nRun the tool without any parameters or with the ``-h`` / ``--help`` switch to get a usage screen.\n\nLicense\n-------\n\nThis is released under an MIT license.\nSee the ``LICENSE`` file in this repository for more information.\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mmore500/fileshash", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "fileshash", "package_url": "https://pypi.org/project/fileshash/", "platform": "", "project_url": "https://pypi.org/project/fileshash/", "project_urls": { "Homepage": "https://github.com/mmore500/fileshash" }, "release_url": "https://pypi.org/project/fileshash/0.1.1/", "requires_dist": [ "xxhash" ], "requires_python": "", "summary": "Module and command-line tool that wraps around hashlib and zlib to facilitate generating checksums / hashes of files.", "version": "0.1.1" }, "last_serial": 5190296, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "76740a2eac1d9623fdca1f3073c809f6", "sha256": "b945af6e4d8e8d862ecae7a45187942ba403d8655c3cd32574d53905463af11f" }, "downloads": -1, "filename": "fileshash-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "76740a2eac1d9623fdca1f3073c809f6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6662, "upload_time": "2019-04-26T00:17:19", "url": "https://files.pythonhosted.org/packages/6a/84/559aa131d4ca74e40188af8c85491d0ee94dbda05015c638ca87f6421379/fileshash-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "35342025c1c2cc48b1126a19d46706a8", "sha256": "9c4855728f441003ae475864535faa6c112481382af49de8c0f24c9ebd3d1491" }, "downloads": -1, "filename": "fileshash-0.1.1.tar.gz", "has_sig": false, "md5_digest": "35342025c1c2cc48b1126a19d46706a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5762, "upload_time": "2019-04-26T00:17:24", "url": "https://files.pythonhosted.org/packages/c4/4c/191fc06f8204c6dfeaa7324d84c9cbc935e86bf682860fdb9582b0eb08c1/fileshash-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "76740a2eac1d9623fdca1f3073c809f6", "sha256": "b945af6e4d8e8d862ecae7a45187942ba403d8655c3cd32574d53905463af11f" }, "downloads": -1, "filename": "fileshash-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "76740a2eac1d9623fdca1f3073c809f6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6662, "upload_time": "2019-04-26T00:17:19", "url": "https://files.pythonhosted.org/packages/6a/84/559aa131d4ca74e40188af8c85491d0ee94dbda05015c638ca87f6421379/fileshash-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "35342025c1c2cc48b1126a19d46706a8", "sha256": "9c4855728f441003ae475864535faa6c112481382af49de8c0f24c9ebd3d1491" }, "downloads": -1, "filename": "fileshash-0.1.1.tar.gz", "has_sig": false, "md5_digest": "35342025c1c2cc48b1126a19d46706a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5762, "upload_time": "2019-04-26T00:17:24", "url": "https://files.pythonhosted.org/packages/c4/4c/191fc06f8204c6dfeaa7324d84c9cbc935e86bf682860fdb9582b0eb08c1/fileshash-0.1.1.tar.gz" } ] }