https://github.com/SoftwareHeritage/swh-model
Revision 9084f96c9eb1a3befd8cd7c179950ea00dc66178 authored by Antoine R. Dumont (@ardumont) on 14 September 2018, 22:35:43 UTC, committed by Antoine R. Dumont (@ardumont) on 14 September 2018, 22:37:29 UTC
This allows calls like:

- MultiHash.from_file(file_object).digest()
- MultiHash.from_path(b'foo').hexdigest()
- MultiHash.from_data(b'foo').bytehexdigest()
1 parent 836198c
History
Tip revision: 9084f96c9eb1a3befd8cd7c179950ea00dc66178 authored by Antoine R. Dumont (@ardumont) on 14 September 2018, 22:35:43 UTC
hashutil: Improve MultiHash class from_* to compute hashes
Tip revision: 9084f96
File Mode Size
bin
debian
docs
swh
.gitignore -rw-r--r-- 73 bytes
AUTHORS -rw-r--r-- 112 bytes
LICENSE -rw-r--r-- 34.3 KB
MANIFEST.in -rw-r--r-- 91 bytes
Makefile -rw-r--r-- 163 bytes
Makefile.local -rw-r--r-- 24 bytes
requirements-swh.txt -rw-r--r-- 0 bytes
requirements.txt -rw-r--r-- 243 bytes
setup.py -rw-r--r-- 1.5 KB

back to top