to-mc / checksumdir Goto Github PK
View Code? Open in Web Editor NEWSimple package to compute a single deterministic hash of the file contents of a directory.
License: MIT License
Simple package to compute a single deterministic hash of the file contents of a directory.
License: MIT License
It would be great to have type annotations added so this library can be integrated into a project using mypy without having to ignore missing imports for it.
https://packaging.python.org/tutorials/packaging-projects/
It is not possible to install the development version of this project via pip (requirements.txt)
because this repository does not have the setup.py script.
https://github.com/cakepietoast/checksumdir/archive/master.zip
Hi @cakepietoast ,
I tried this library for testing my own hashsum script if it works correctly.
But there were mismatches in various situations.
I found it encodes hash values in UTF-8 which is not a default option in Windows.
I wonder you already knew this issue.
Thanks.
Please, implement a possibility to calculate a checksum for a single file. I know that there are other tools for that, but there are no utilities which can do a checksum both for a file and a directory.
I am trying to package an app utilizing this library using PyOxidizer. PyOxidizer doesn't support pkg_resources per issue.
If you are interested in changing to something else, I would be willing to research it and submit a PR.
I'm not sure why, but I have noticed the same file gets a different hash result when run on Mac vs PC. I am transferring them using Dropbox, and not saving or otherwise editing them in between hashing.
I checked the checksumdir source and it is using 'rb' mode on open. Could there be something else causing this? Thanks!
Hi,
Your tool is helpful for us which extends the functionality of default hash tools in Linux which is just for files.
We need an additional functionality as a favor by which we can exclude directories also not only files.
crc32 is faster than other included hashes and often it is good enough.
It seems that checksumdir ignores hidden file (.*
). Is there any reason for this? How would I hash my dotfile diretory?
Hello there @cakepietoast,
I just want to know if there are plans to support currently opened issues & PR or this lib will continue unsupported.
Thanks
excluded_extensions is not used when "--ignore-hidden" is False.
I verified this by getting the sha256 checksum on one of my Python libraries. I want to exclude the pyc files. However, I noticed the result changed every time I deleted one of the pyc files in the library.
I reviewed the code and it appears that this possibly got left out after the --ignore-hidden option was added.
I just wanted to say thank you for this project. I am using it in my own project and it does exactly what I need it to. I know that releasing open source is not free. It takes time and energy. Thank you.
Hi it would be helpful to have an option to include filename and structure in the checksum.
Mostly because when renaming a file the current implementation does not take into account the renaming.
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.