Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Simple package to compute a single deterministic hash of the file contents of a directory.

Project description

This is a simple module to create a single hash for a directory of files, taking into account only file contents, ignoring any metadata such as file name.

Usage

from checksumdir import dirhash

directory = '/path/to/directory/'
md5hash = dirhash(directory, 'md5')
sha1hash = dirhash(directory, 'sha1')

Or to use the CLI:

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
checksumdir-1.0.5.tar.gz (2.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page