amiaopensource / checksumthing Goto Github PK
View Code? Open in Web Editor NEWUltimate checksum script! A crosswalk for different kinds of checksum sidecar files.
License: GNU General Public License v3.0
Ultimate checksum script! A crosswalk for different kinds of checksum sidecar files.
License: GNU General Public License v3.0
Proposed by @nkrabben
Right now it's possible to make a bagit-style manifest, but checksumthing won't actually renest files in a "data" folder, or create the other manifests. Is this something that should be added?
Should we not add in the README.md
how to update this tool? cc @henryborchers
Particularly if users are pulling checksums together into a single file, it would be useful to have the option to remove the old sidecars at the same time.
Things like PRE
and POST
are showing up in the help menu in between text that we want to display. We need to take them out.
Right now the user can place all kinds of invalid arguments in the script. We need some kind of validation as well as appropriate error messages.
Help menu needs a more clear description of arguments, ideally with examples.
A manifest should be able to created as a CSV
I cloned the repo and then ran python setup.py install
. Then I tried to run checksumthing -h
. The script crashed and I got this message:
Traceback (most recent call last):
File "/usr/local/bin/checksumthing", line 9, in <module>
load_entry_point('Checksumthing==0.0.1', 'console_scripts', 'checksumthing')()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2229, in load
return self.resolve()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2235, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/bin/checksumthing.py", line 4, in <module>
__import__('pkg_resources').run_script('Checksumthing==0.0.1', 'checksumthing.py')
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 719, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1504, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python2.7/site-packages/Checksumthing-0.0.1-py2.7.egg/EGG-INFO/scripts/checksumthing.py", line 7, in <module>
from Checksumthing import manifest_formats
ImportError: cannot import name manifest_formats
Ran this commend checksumthing -i Sample_Files/ -ie .md5 -t md5 -c upper -r -pre '#######' -post '*{relativepath}' -o Sample_Files/checksum_manifest.txt
Text file doesn't have line breaks on Windows Notepad. Suspect "\n" doesn't work on Windows.
Here are two examples that we can add using the sample data:
python checksumthing.py -i Sample_Files/ -ie .md5 -t md5 -c upper -r -pre '#######' -post '*{relativepath}'
python checksumthing.py -i Sample_Files/ -ie .md5 -t md5 -c upper -r -pre '#######' -post '*{relativepath}' -o Sample_Files/checksum_manifest.txt
For the places before and after the checksum value, the user should have the option to use tabs instead of spaces.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.