Last active
August 16, 2019 18:49
-
-
Save nkrabben/c144a3d5c42c8a0be639650e6a94f5bc to your computer and use it in GitHub Desktop.
Quick attempt at making a bagit manifest maker utility
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import bagit | |
def main(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument( | |
"directory", | |
nargs="+", | |
help=_( | |
"Directory which will be scanned for files and hashed." | |
" Generates sha256 and sha512 hashes by default." | |
), | |
) | |
args = parser.parse_args() | |
bagit.make_manifests(args.directory, 1) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment