checksumdir


Namechecksumdir JSON
Version 1.2.0 PyPI version JSON
download
home_pagehttp://github.com/cakepietoast/checksumdir
SummaryCompute a single hash of the file contents of a directory.
upload_time2020-06-21 19:59:44
maintainer
docs_urlNone
authorTom McCarthy
requires_python>=3.6,<4.0
licenseMIT
keywords hash checksum md5 directory
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ***********
Checksumdir
***********

|badge1| |badge2|


.. |badge1| image:: https://img.shields.io/pypi/dm/checksumdir   
    :alt: PyPI - Downloads
    :target: https://pypi.org/project/checksumdir/

.. |badge2| image:: https://badge.fury.io/py/checksumdir.svg
    :target: https://pypi.org/project/checksumdir/

A simple module for creating a single hash for a directory of files, with file contents;
ignoring any metadata such as file name.  Options exist to also exclude specific files
or files with specific extensions.

=====
Usage
=====

.. code-block:: python

    from checksumdir import dirhash

    directory  = '/path/to/directory/'
    md5hash    = dirhash(directory, 'md5')
    sha1hash   = dirhash(directory, 'sha1', excluded_files=['package.json'])
    sha256hash = dirhash(directory, 'sha256', excluded_extensions=['pyc'])


Or to use the CLI:

.. code-block:: bash

    # Defaults to md5.
    $ checksumdir /path/to/directory

    # Create sha1 hash:
    $ checksumdir -a sha1 /path/to/directory

    # Exclude files:
    $ checksumdir -e <files> /path/to/directory

    # Exclude files with specific extensions:
    $ checksumdir -x <extensions> /path/to/directory

    # Follow soft links:
    $ checksumdir --follow-links /path/to/directory

            

Raw data

            {
    "_id": null,
    "home_page": "http://github.com/cakepietoast/checksumdir",
    "name": "checksumdir",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6,<4.0",
    "maintainer_email": "",
    "keywords": "hash,checksum,md5,directory",
    "author": "Tom McCarthy",
    "author_email": "tmac.se@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b5/bc/7446a3877cae4638c93531239736ca3ee7933bd3f775db325bb1a1d5102c/checksumdir-1.2.0.tar.gz",
    "platform": "",
    "description": "***********\nChecksumdir\n***********\n\n|badge1| |badge2|\n\n\n.. |badge1| image:: https://img.shields.io/pypi/dm/checksumdir   \n    :alt: PyPI - Downloads\n    :target: https://pypi.org/project/checksumdir/\n\n.. |badge2| image:: https://badge.fury.io/py/checksumdir.svg\n    :target: https://pypi.org/project/checksumdir/\n\nA simple module for creating a single hash for a directory of files, with file contents;\nignoring any metadata such as file name.  Options exist to also exclude specific files\nor files with specific extensions.\n\n=====\nUsage\n=====\n\n.. code-block:: python\n\n    from checksumdir import dirhash\n\n    directory  = '/path/to/directory/'\n    md5hash    = dirhash(directory, 'md5')\n    sha1hash   = dirhash(directory, 'sha1', excluded_files=['package.json'])\n    sha256hash = dirhash(directory, 'sha256', excluded_extensions=['pyc'])\n\n\nOr to use the CLI:\n\n.. code-block:: bash\n\n    # Defaults to md5.\n    $ checksumdir /path/to/directory\n\n    # Create sha1 hash:\n    $ checksumdir -a sha1 /path/to/directory\n\n    # Exclude files:\n    $ checksumdir -e <files> /path/to/directory\n\n    # Exclude files with specific extensions:\n    $ checksumdir -x <extensions> /path/to/directory\n\n    # Follow soft links:\n    $ checksumdir --follow-links /path/to/directory\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Compute a single hash of the file contents of a directory.",
    "version": "1.2.0",
    "split_keywords": [
        "hash",
        "checksum",
        "md5",
        "directory"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "9d14f9149192c14edc4b12df7c3496c3",
                "sha256": "77687e16da95970c94061c74ef2e13666c4b6e0e8c90a5eaf0c8f7591332cf01"
            },
            "downloads": -1,
            "filename": "checksumdir-1.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9d14f9149192c14edc4b12df7c3496c3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6,<4.0",
            "size": 5342,
            "upload_time": "2020-06-21T19:59:43",
            "upload_time_iso_8601": "2020-06-21T19:59:43.353086Z",
            "url": "https://files.pythonhosted.org/packages/1f/75/cc1e76d4957ef6852ef9a49c3f75794a2952d0af3d2482dc7d19f659fa42/checksumdir-1.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "9d05e70d9b52e7dc36c068deac7d3531",
                "sha256": "10bfd7518da5a14b0e9ac03e9ad105f0e70f58bba52b6e9aa2f21a3f73c7b5a8"
            },
            "downloads": -1,
            "filename": "checksumdir-1.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9d05e70d9b52e7dc36c068deac7d3531",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6,<4.0",
            "size": 4116,
            "upload_time": "2020-06-21T19:59:44",
            "upload_time_iso_8601": "2020-06-21T19:59:44.372838Z",
            "url": "https://files.pythonhosted.org/packages/b5/bc/7446a3877cae4638c93531239736ca3ee7933bd3f775db325bb1a1d5102c/checksumdir-1.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-06-21 19:59:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "cakepietoast",
    "github_project": "checksumdir",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "checksumdir"
}
        
Elapsed time: 0.02327s