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.3.0.tar.gz
(453.6 kB
view hashes)
Built Distributions
imghash_rs-0.3.0-cp312-none-win32.whl
(820.6 kB
view hashes)
imghash_rs-0.3.0-cp311-none-win32.whl
(821.9 kB
view hashes)
imghash_rs-0.3.0-cp310-none-win32.whl
(822.1 kB
view hashes)
imghash_rs-0.3.0-cp39-none-win32.whl
(821.4 kB
view hashes)
Close
Hashes for imghash_rs-0.3.0-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a747fc9c1ddb2f32133b31e599ca38c522e762351ca466b4f21e3b92a03bd2e7 |
|
MD5 | c953b18e19824209dad4d3f55716a96d |
|
BLAKE2b-256 | aebdb750d46ef7d9b39e17347a74a7324a71b48e5c53a43753a7a4c0dcb0cfda |
Close
Hashes for imghash_rs-0.3.0-cp312-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab790e4ad6efe68d7279c224fb0608e60207bfb4fd32c60f832975d10e71c17b |
|
MD5 | 050a7a66e811b3960a1d6f65019cdbea |
|
BLAKE2b-256 | 6f6c8166bcc13c6bbe4944d798099db97b667f88074f9ae17bc3dfaf946f7568 |
Close
Hashes for imghash_rs-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b341de3bfc93f8fdc2b4b41fd176a30c402ce2b13811399d3e24b94fa2b7ced |
|
MD5 | 568d4a8f0996e884b0e6648141ccbf2c |
|
BLAKE2b-256 | e628bc9a453afd065d3716f1f7c020d4c4d9cd0ab686db5389dab315d9c7fbaf |
Close
Hashes for imghash_rs-0.3.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00c93b4802bf50e43f117f1abd51e1807472381b5393c444b962f5cee862aa5a |
|
MD5 | 5605c13cf260a37ee338067816fd91aa |
|
BLAKE2b-256 | e222351634bf55a37968e10df527a7b8c1840cb0047a4ee73b0d3a72c923876a |
Close
Hashes for imghash_rs-0.3.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 405e21916813d8642aa66b49d5b2ac506b366e5ae4b47587fc9b98df9a9c080f |
|
MD5 | 28dd0602ea487499aa07769a7a3335ab |
|
BLAKE2b-256 | d769c496ef2a3730189f3793b7a0e68c4fe29c8cf1439558751543b43e4bc069 |
Close
Hashes for imghash_rs-0.3.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3033a2429b42aeafcac3ceedecb24ec6494697f050f5327f11a6db2ee9cfbc2e |
|
MD5 | 2ff43edbdf80cf2998bba143974449aa |
|
BLAKE2b-256 | c210b8ca503e35e5228cd6893d8d6e19c6b9067cb3eb246b2dff76de68422945 |
Close
Hashes for imghash_rs-0.3.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c1b41d1e5a0d40ac47e4239ceb8bcd9d8523336c147218ea2398f1878ffda0b |
|
MD5 | d66cc4d9090d0716426f80abfc912425 |
|
BLAKE2b-256 | 1b7554403bd2bd64c1b32ad948bdfc1ade15132b68891e96f4e32b203d2a5841 |
Close
Hashes for imghash_rs-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07deb2b9aa67f13db00d7c83a32a270496422eb9ee561eee7e73568e14d4a3bf |
|
MD5 | 9c02323c8125bff01cc98fbf5413aba1 |
|
BLAKE2b-256 | 03f5fa3144752de760edc0c508ab01a895c884922b1567674a1a055bca61ed11 |
Close
Hashes for imghash_rs-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e083af24778ddaf76f31b466d76e0079ab598ce7b80dab1d91c12ad19dc53fe0 |
|
MD5 | b479b2a24d221d05ab36bacf7e277b90 |
|
BLAKE2b-256 | 26a3310316d1977c23716d50866bff5925e2b5328fb8bb69a4b23009d05a495a |
Close
Hashes for imghash_rs-0.3.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e71f61b678d4eb1527b408ce33eb208eb4fa7772be7986ee260e985646247917 |
|
MD5 | 667ac4b283c972d9126d9ffe9061525f |
|
BLAKE2b-256 | b1893e009ddb51f513922b9104e9cb8f6b88ee088a0e02960f6468a8475af7bc |
Close
Hashes for imghash_rs-0.3.0-cp311-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 092e8e169c0f443f4dce352baaeb55640ed64126aaa60d2c763b61b9de4bf2d7 |
|
MD5 | f3a4a7decbe3916f3c7933466f07b05d |
|
BLAKE2b-256 | 8d3e761087b32f7ddf2db52f27031924d7442897dcb428c6fd2723da8287be7c |
Close
Hashes for imghash_rs-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c085f1c3e12ac98315c04a904bdc7a16a614e7bd27abbcbbdce95ffa2279941f |
|
MD5 | 246e0c02cad3b82f396647aa8ba76cc0 |
|
BLAKE2b-256 | 46ded9982b2c4ec892f2017736e2e37200149dfa2d620edb245d77bc6364cd37 |
Close
Hashes for imghash_rs-0.3.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab78fdcc919e8cd635e3022be2925a7b3bf7ba9167feab74f7bec5f8086924c5 |
|
MD5 | 016ed82470feb7e471800f359b1ca129 |
|
BLAKE2b-256 | 969d27662505be48f325937909d58d52b51d44f417c214d7626c781e1d0d9ceb |
Close
Hashes for imghash_rs-0.3.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 442f42bb68988252ba75784c8d3be961324c35e9d8aea34a86a8516f059bc9a4 |
|
MD5 | 75fccda6c0d0a7d4b99d7c442964274d |
|
BLAKE2b-256 | 54da4f9f30321df863b74cd1e81fb283673669d1c1343567f1e2f91c9bfa3459 |
Close
Hashes for imghash_rs-0.3.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b01165c3dc9dd54a38fba5936423bca63a65585a526a860c73a1e03aef10ee0 |
|
MD5 | 13010b6233eab002f913f324c2916639 |
|
BLAKE2b-256 | 0645f29f80d6547e0659e8d80dda82bdb2a427316b28805f3a621ec67247c7f9 |
Close
Hashes for imghash_rs-0.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efe27e300a3daffaf699503d5a409e14845ed398eddcef89e4755222927de18c |
|
MD5 | 39f4d77877b62553cf54e3982b55e1fe |
|
BLAKE2b-256 | 4ba2b5dc61eb6f5dc03949f75fa797cf8c848bdd327e2d0244c94fd7898cf82b |
Close
Hashes for imghash_rs-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c55837783f49703801f4a9bf6674feb34db007f7b729d6b598f53d23cd79ca3 |
|
MD5 | 318080fcb7548e1509c7fe124d45a4de |
|
BLAKE2b-256 | 6e5fa6f44d73308825dac7c649b2ab7137e882a44f5e565388130d42d1c14be4 |
Close
Hashes for imghash_rs-0.3.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d98cf5fcad884227437bcc3b888437cfb4b680b046e1399fb6bb20880fb8bda |
|
MD5 | 4d66a3472bb3ea98cb2e6e7400511519 |
|
BLAKE2b-256 | 23ddbb4b086ccf8861c4086e4c356d69dcf863025654699b81f2134c8e0f0dc8 |
Close
Hashes for imghash_rs-0.3.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1ffd81f0988c5d6c5e2ce40226973ec43ea282c8223e25dd842288b3e693787 |
|
MD5 | a135414be5991bd238d53185bc432a6d |
|
BLAKE2b-256 | 6186a919a15f0319822e97a642b20371edef4c2e44f69d0ea82705ce0f945262 |
Close
Hashes for imghash_rs-0.3.0-cp310-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4ad3a9c6332196cbb1b95037bd5b25e7b3a400a65ec74e7057f1c05b9d6265d |
|
MD5 | bba294a46614c99326afec530643af67 |
|
BLAKE2b-256 | 9b7941f92a2b8cddcf2afd9c00d5d4c1bedfee1835ba3501dd868dd1169e3fb2 |
Close
Hashes for imghash_rs-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d11a33d3e48cdefec3cff0892313cd318542e8f031d2b16d94a10b5761699215 |
|
MD5 | e07c65aac90af3709754c748efdb25bd |
|
BLAKE2b-256 | 11badc71860b12e0858b95c682fff64883aae054db8f7d40204d9a1d34180919 |
Close
Hashes for imghash_rs-0.3.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 570b1052abb3d238f9e7f2f1f440cbeb2a6a62ad13d01961c8cdda38f47f74eb |
|
MD5 | cac852078a5070bbf41228e00e40b0bc |
|
BLAKE2b-256 | 4e94ce5f28d31346d69dc44e078f429924eed3fdbc5f9bcb4346a5b41eaa73aa |
Close
Hashes for imghash_rs-0.3.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b74cc778514c90cf3a92224fd83278fc55975685dee88e0146fb68bfb7f2632 |
|
MD5 | ce5a407a31e1562e6aba5e280983194d |
|
BLAKE2b-256 | a44af2b163143bb4977ec8f11b822dbc62e0ccbb484956eee90a4f56017aa080 |
Close
Hashes for imghash_rs-0.3.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ce613b35467d9b685c73bf79dc1847ebf1c94a93f8b27804e2e5d6bce1ac522 |
|
MD5 | 0f0e762e7355c239aca001a622765d7a |
|
BLAKE2b-256 | f374fc90e2bfc4a07fb8ffb6c7f41b78a48bfe899e1f66d88069a4ff1a170d2a |
Close
Hashes for imghash_rs-0.3.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c83cd90b76c98d5d59c5d69df13d1478278101896d8e37ce07d82247b350b65 |
|
MD5 | a1ac681419a55b9bc66dfaabaea96199 |
|
BLAKE2b-256 | a5e21a365dd5568c7eacc76f0f5d6f395c9a22c306cd6ca6f50e390c48b1956f |
Close
Hashes for imghash_rs-0.3.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f56f7cc3147b7edd4a00becd71a3b540b6e5d0c371f48e94ad5919204a6f60d |
|
MD5 | 3a70b5087978c25fd267a66b45e5a659 |
|
BLAKE2b-256 | c81c131caf64df3c4ba506f2ec5e976eb5ebab73586611e599580f6cd29e9460 |
Close
Hashes for imghash_rs-0.3.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e05fb0176bae909ee3d8f2264911c256dfea727d8e098b6040d2243d9b8cb3f5 |
|
MD5 | 052c5178388d31088663b44c3fd02a82 |
|
BLAKE2b-256 | acbd909df384e11e24665cb89ceab9c4475e5d4d3a1319202880498243d51b0e |
Close
Hashes for imghash_rs-0.3.0-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebf670aab42ccc098a7f0d860bfef8df0d047978da38b43f334f75c26ee83070 |
|
MD5 | 7e32cb90ed9dbf8c291e8583699133a5 |
|
BLAKE2b-256 | feb1d9692a1d6b879da59cc0c54565b04ffc8ccdfbaef69394d8885fc419fa5a |
Close
Hashes for imghash_rs-0.3.0-cp39-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b43fcd78ab973fa0df5cb67a1f51f2fa7fb17a6c46f89ca1bafe06345f4eb021 |
|
MD5 | f81f2142c0a3ea4a545dca0531906033 |
|
BLAKE2b-256 | 724fc9a7d433c4c8a85bc7c937136b9e4770361f6f50259eda4fbf4eb46ad5de |
Close
Hashes for imghash_rs-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3110badd1eb213505afc937192b51a7caafce0f2d8d1436b2203723e819d281a |
|
MD5 | cf631b1d293e914cacde3c37a4b9e903 |
|
BLAKE2b-256 | b8d55a9f7d24184613ac2900e5ad78fb030733345464a1e6a787faccec03c5df |
Close
Hashes for imghash_rs-0.3.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1389434c47b9e5a8ff334ecacf7b2e630b183f017c43f38d078a2bc5b7c487cc |
|
MD5 | 408fe98ee7d92fa10b699ad66995d0be |
|
BLAKE2b-256 | 4e502b77fe3b68c9114635b1432f0c336ae643965520191f793d81320f3cdfb6 |
Close
Hashes for imghash_rs-0.3.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d19de9a19d3944fddbe2cd555cd6e46400eea60b734be9f52df14a60cabfa475 |
|
MD5 | 990fc54b1282c4f4a2c7f660ba924054 |
|
BLAKE2b-256 | f52851259efe551d2a20ec8eefa01626d4a79d0e64eeaf6ccefcbe20acd5bd3c |
Close
Hashes for imghash_rs-0.3.0-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86aee081350cf2102596aa80eac4e4151c6adaa7e652e984819d3232720778db |
|
MD5 | fc4f3637e777f94af8c1f56fbabb33f7 |
|
BLAKE2b-256 | 80f04954908aeb61dbfc5c54f26c02ef6f44527d5f9b83d9520cb39489672b02 |
Close
Hashes for imghash_rs-0.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9226aaae71be02bcb1a8c4a07fd044dfe4323f71e2d9742c07ab6b7a99d85e1 |
|
MD5 | d7c99bad75ad0965dfc556777a02aec8 |
|
BLAKE2b-256 | 26354308ad96a6f854b9cc135ba313ec976f33599cfd19d864d2e7ab20276e18 |
Close
Hashes for imghash_rs-0.3.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61af827ade6e12ec427d563986eb330404a887dc68e8ec1c1ba886d6dbf7ba3a |
|
MD5 | e08150eda334b090a47223c6eab2b042 |
|
BLAKE2b-256 | 393c3274237ad4af99ffc6bfb2507d2a7ee7b82a72e138aec085faa06b254845 |
Close
Hashes for imghash_rs-0.3.0-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | daafbb8b283ed05a8d6db0b9dbe57836f78f7850b0f1e8c4f61ddd56c097ce40 |
|
MD5 | f48de7397dc3b6288ba65c7621c8f3ed |
|
BLAKE2b-256 | a6ac3d28530030fc1cb51ae0f96dc74f157bf2b7025f5be372b26d91c70a4b1a |