Image hashing powered by Rust!
Project description
Image Hashing powered by Rust
This package is a thin wrapper that contains Python bindings for the Rust crate imghash-rs
that allows you to generate various image hashes. the following hashes are supported:
- Average Hash
- Difference Hash
- Perceptual Hash
If you want to know more about the different hashes or how they get encoded / decoded, check the documentation of imghash-rs
.
Getting Started
To get started add the package to your project:
pip install imghash-rs
Then you can use it by importing the different functions:
from imghash import average_hash, difference_hash, perceptual_hash
ahash = average_hash("path/to/image")
print(ahash.hex()) # will return the hash encoded as string
print(ahash.bits()) # will return a 2D list of bools that are the encoded bits
To learn more about the underlying bit matrix that gets generated, check this document.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
imghash_rs-0.2.0.tar.gz
(452.8 kB
view hashes)
Built Distributions
imghash_rs-0.2.0-cp312-none-win32.whl
(817.4 kB
view hashes)
imghash_rs-0.2.0-cp311-none-win32.whl
(819.0 kB
view hashes)
imghash_rs-0.2.0-cp310-none-win32.whl
(819.4 kB
view hashes)
imghash_rs-0.2.0-cp39-none-win32.whl
(818.8 kB
view hashes)
Close
Hashes for imghash_rs-0.2.0-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d335d25871ab53896b0918938132271a54d501ef40dd2bb7d9088e9880eab77 |
|
MD5 | 7da755d6a9a0371276d508ed2667cc77 |
|
BLAKE2b-256 | 786f69c500f49836dd2525766d3718e617d7dc47499dd2e72966419d3fa5a721 |
Close
Hashes for imghash_rs-0.2.0-cp312-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eb1f532d37380816b9c8eecf3e923ad0f7a8f0aa57908b0218f5e903b1a730d |
|
MD5 | 0024734e4a386e21901e801ffe86004f |
|
BLAKE2b-256 | 807319fb95abdc69fead05c4a9bee2acbbb934d7b584d5fea35eac8205bf2903 |
Close
Hashes for imghash_rs-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7ced3c78f6832283161ccb26e72de0c0d0afa6e8f228eb7996b17eaf97a9426 |
|
MD5 | e8e332d57c30c67c5fc6dba7bc04af16 |
|
BLAKE2b-256 | 2d4d5793abc9d53557ad6f21ea6585132a9f94df1131de73bf7e77af83cdcebb |
Close
Hashes for imghash_rs-0.2.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82d5ac4244efd115dc7b2e2c743a9a7396f0e8076d584f666c849124d85a9d6c |
|
MD5 | 9665675fdc08e1de199a38affdc8ab4b |
|
BLAKE2b-256 | 36f18f3149e9daa981cd4469c3d2c911ba0cca5cafcfadf95293d191b02b05ff |
Close
Hashes for imghash_rs-0.2.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e24539c75576e0904161f1a95110e03e8fdb0dbe8342d12a8e61b8932257154 |
|
MD5 | 6194492430d178a64cd19bf01f7952a7 |
|
BLAKE2b-256 | 331da4e303faf3fee777b846b38ba847c2bc4168e04aebb6f30ee1ccb36019e5 |
Close
Hashes for imghash_rs-0.2.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a6ec79ae6e8fd74d9c024ecd407222b948913508c1209367ed3f00cca899d74 |
|
MD5 | c05bc3a379723d960e911b8b9ad9db9b |
|
BLAKE2b-256 | a087e8a9dbbb3a3855b83b24649ee25ab7035a96234fa1bf164e4702a67a2e84 |
Close
Hashes for imghash_rs-0.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dfeef5275bdf594c69e9dc2c61653a402bae5442e06540681f3a84375dfed59 |
|
MD5 | 76c0612e650d5be66644ad63245d67d6 |
|
BLAKE2b-256 | b5bb51946eb2533991b360c50f3fc4786cfe4e4c503e674a1e5cf29fe82da33e |
Close
Hashes for imghash_rs-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10ff0ffd1c9021e3add4edb202ebd079765c8e527fb1e7760a1be78d74459b19 |
|
MD5 | 56cb1c81e72dd495ecf060bcdd75673f |
|
BLAKE2b-256 | 98302bddca9df2fe44f51d800e23db2582b452fc9adc8195b9a7af848bea3735 |
Close
Hashes for imghash_rs-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd57e9186812fd23e3205b24ceb4669be08e12a07e9e6374edfd56043f607199 |
|
MD5 | d52740d451f378df17d8836e0df7484c |
|
BLAKE2b-256 | ae085133adc6fe1343dc9b3f546612c6c669fa9ff35a787833da6b4d833297c0 |
Close
Hashes for imghash_rs-0.2.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35df2fd17484febc694d8654809df050012adaa27000ac7ee4c3736d0b01698b |
|
MD5 | b5c5d87baeaca1705d6631c6bebeea3e |
|
BLAKE2b-256 | 740268b989ea97384c6f6b735ce920be5c2a765c6b50917c071e341c689c6216 |
Close
Hashes for imghash_rs-0.2.0-cp311-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc87c403d81a760f07cdfa6c7dba99fb3bce471abe9b762e3330a1705fe9c0ea |
|
MD5 | 841af14d4898878f7ccebae43c68c90f |
|
BLAKE2b-256 | 0461a2b7f9e6d2b57306fc26121815e3c406071397e9a011eaa0136714533fca |
Close
Hashes for imghash_rs-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06571a0411cf47b158e30590ee3eca8b6a7f0ff8d0fe86443856321047118fc7 |
|
MD5 | e513958b4ed044d15f09ac736f5a32f1 |
|
BLAKE2b-256 | bdffee93904ae4b47d14eea0bed96a9b1395d04410633f02672c1765a36106a5 |
Close
Hashes for imghash_rs-0.2.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8285b168fe46215835e9e28bbde9b9a9d37bbc63689087318709cb5df58bcc4f |
|
MD5 | 04827ae800bf9d4e7128c7ca23e11da3 |
|
BLAKE2b-256 | 2ec60f735ef3ff042c8c5f3f81744fa421a3bdbb597f98c4f9f0f4f889da32dc |
Close
Hashes for imghash_rs-0.2.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eafcad3cfa54059fcff345a190550fc766bc122d7b9a914ad10f576709fe73f |
|
MD5 | 704c610124762e14725d0f19cf261209 |
|
BLAKE2b-256 | 3c30f08c1ef75b9b9a1cbc7794253c02cb07eb8eb9a229dfe56835494aa1f8bd |
Close
Hashes for imghash_rs-0.2.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 391863899dc7ebf562a74611430ddf5498c8623e3941163b226249b9667738ea |
|
MD5 | 7d542beb214fc6852494112472581251 |
|
BLAKE2b-256 | cc7c7adc6a33fcdce570d27c0c227e1cae6dc5903fb2bfb58b44f250034e524b |
Close
Hashes for imghash_rs-0.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2d4bf386cc6cb548196e765ca211cc7e9b86c0658a4342bd47e1128ef09468c |
|
MD5 | fc573497dc3ecfe7593ab8a96fc44e46 |
|
BLAKE2b-256 | 3c9f4bfa3b7d2f21cce8f013df72384ab3e63e42f69d1cb8f71119c3f006be4a |
Close
Hashes for imghash_rs-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6234341b4eef47d675f77ca89374a73d32f46762012fcbc48658bf96188ff383 |
|
MD5 | 26d209f60dfb3be21353459823246f9b |
|
BLAKE2b-256 | 902bf6b30d92a68a036afa3e55fadf15be1c4cdec58d2651c4591fba2553428a |
Close
Hashes for imghash_rs-0.2.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f0210e86e9c50d82abf0e5ed067f77d51cbe04f7bf26028e103afc5aec1bc36 |
|
MD5 | 8996bd3c906b080c5209fd425e32bc69 |
|
BLAKE2b-256 | 5a2403f264e043813665cd3e57373971c4f5fda40885cbc7562e6d4ded74799d |
Close
Hashes for imghash_rs-0.2.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4571de0a50df1ccf990372fb91d455d084e0b91d5452e825a8f648000da096f0 |
|
MD5 | 350fa3c03d23e90ca48238b67f95aeba |
|
BLAKE2b-256 | 8d9c2125786abd73815699c918b70085a5ba8cdb8be091f033327878522356fd |
Close
Hashes for imghash_rs-0.2.0-cp310-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e542b40a9254ba129c79816dc3d9661a15585db54f83dcbae43e0dfb8e64cdeb |
|
MD5 | 34151c04bbb49203b14c0ebcf1a5de0d |
|
BLAKE2b-256 | 0fd8b706c42af072825e18767042269eaaf43e59d095a677a831ced1b8c8fd4e |
Close
Hashes for imghash_rs-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89500f51dcb2217aa55707625c53006186334de9dda0db4ed2e88a71184b7e75 |
|
MD5 | 76a691e512419803ca39a767c19fe293 |
|
BLAKE2b-256 | f6f319b8b8ba2f933034701b01a14a19dbc0bb779085cdf34515c408514ba64e |
Close
Hashes for imghash_rs-0.2.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04ef248528993675f19a4b61d2f7c3403035fb8c8e46208e2b41665ecebbca5c |
|
MD5 | f8319459425e4946f963023409df08f0 |
|
BLAKE2b-256 | 59d00874cff4e3ff20531b25ecbc5d04e85f6a137057e03ae34ec720a1774314 |
Close
Hashes for imghash_rs-0.2.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac246074d03e0f57fb1126c7fe19019d6dced366da8c60d8968f55b4ea99e9ef |
|
MD5 | c7a87b54f00ee41479ab4ac669638a51 |
|
BLAKE2b-256 | 0b703a23d8ae951d1653555e1f065bd790a12abd277d5dc05751efaebc3bee29 |
Close
Hashes for imghash_rs-0.2.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e851dcb00d88c1d1b33b6ba89673617f3aa26dfcb94e6da7c0d42d762c43ed66 |
|
MD5 | 8c4b127ef5a7d392a5e9198b9429d0e3 |
|
BLAKE2b-256 | b2118fac6e3e2c855cfb58ba44aa0649d1b694b52c299c4d69007a7b30b26c43 |
Close
Hashes for imghash_rs-0.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03083be02247ffb064830e20a72d8cf6efe347969860196b450b98d00bf1c9f2 |
|
MD5 | 4f9e5e92099f1f99faaa015dde3970d6 |
|
BLAKE2b-256 | 4e2b533519859de3f6658fa51bd1d6da09cd265a94cada0ec4d530244cf3d0cf |
Close
Hashes for imghash_rs-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85e6747ba41e4de6283417d2f7a0c9fdba9070e529cc33525f7ea17cf893fcb1 |
|
MD5 | c049b752031efb1a691a2cbfdb649103 |
|
BLAKE2b-256 | 67093b702bdefbf8cadf761ac61e80954af30f189ea68312c9d077fb00a85298 |
Close
Hashes for imghash_rs-0.2.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f57934eba8c348cc92b22e6d6662159def7281ba2e060522656f68e3f6d5df9 |
|
MD5 | 0c777259133197ed352165024ca4479b |
|
BLAKE2b-256 | 016cfbe7a6a40a9a75f237b1b082daaee8714b279cfdceaf154dc219d0c6de0b |
Close
Hashes for imghash_rs-0.2.0-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 824676eed6797d0d8c3d858ea406f381dd3e2050cc4bee0981e9ecb3aad50bee |
|
MD5 | 96c97001aab11e44370dd2ee640f1c8c |
|
BLAKE2b-256 | 61d0872dfe5b0c47dc2c6a7bbea8b562dd52cf6802bbaafc7097a44e16ed908f |
Close
Hashes for imghash_rs-0.2.0-cp39-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bead7e1d657984b6e3c6e81b60a9fdce3055030c69bb2e4f90594731b75a9b3b |
|
MD5 | d0b05802997f54fc58cf80ae6bdccafa |
|
BLAKE2b-256 | e177ff17137a57149ebe34f8370a3f54a75ee1aaddc87a5bdfeffa07fcbb2cf7 |
Close
Hashes for imghash_rs-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8387d1f6d02f00dcca45a81ef92d13c34f72d559c931b15f54b4cad65b53eb91 |
|
MD5 | 14fac72516fa7d55fd11a2ff8fbba08c |
|
BLAKE2b-256 | b13bfefbf33d6d97371b7acb181a54e46b09525e83dc62780f0fb8cea6d23e42 |
Close
Hashes for imghash_rs-0.2.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1c6cfb3f43431ab764e29bf4a42ec9c686ae59373ccd43e440384c755270b32 |
|
MD5 | a3e230a9ca7de49d704c3e719157e5f0 |
|
BLAKE2b-256 | f8c2e07744ceb9095da1f6569c5b50620a772157c48e6dd0c3f0dc6c32080a2b |
Close
Hashes for imghash_rs-0.2.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae2207b75baa2471d4b8f51b4b998af3e2d0c0b0509507fc8098980fd77bb302 |
|
MD5 | cfdac018c0d3b96afdf083ad44b47ca1 |
|
BLAKE2b-256 | c78122793af1feb90861a5c3a70fabf548bda9a89021a05f5eaa255f52d5c7c1 |
Close
Hashes for imghash_rs-0.2.0-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7cebc09d483b533293c5f4bef95659cfc3b79920174c134cd05052a90057e4b |
|
MD5 | d07a9f807f0a85899a883893a4d3cf37 |
|
BLAKE2b-256 | 22931493d822f4866ce1e3bedb717cdf7564eff7f841fd15371ec2758a018fa4 |
Close
Hashes for imghash_rs-0.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f9b9228eada7f85ba20793fb9f3841cb97c6bd3f562fb2d5a14df80bc4921ad |
|
MD5 | abce06042fbe7d61a8ac6479dec23cd1 |
|
BLAKE2b-256 | 65ad2fadf6b33db31f01047b8e8f7d7bc644f5fbaf684c76252f46a2b56d73f7 |
Close
Hashes for imghash_rs-0.2.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b5b41b990b59c4f6dd2563fcd8eec88c5b5013f9e333263e49456e94444672d |
|
MD5 | 3a5f171951f4999eec39ea4810428476 |
|
BLAKE2b-256 | f6110b5a8fdf2c9f610c03427537b5538c01dde88292358a1dcd1ea2c739ff0f |
Close
Hashes for imghash_rs-0.2.0-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dde81dfa85ea43a5515d518006736aafd64e5bad4f14f41f056eb5e9dc3e8910 |
|
MD5 | e19ce2fc572e50ccfbdfa234d6981944 |
|
BLAKE2b-256 | 90312357d5a9933d99457d1e9d46f5271f03ad6ee0f5e18e5db458ba0d603f25 |