A library for rapid computation of Neuroglancer Precomputed shard hashes.
Project description
shard-computer
Perform accelerated shard hash computation for Neuroglancer Precomputed shards.
import shardcomputer
preshift_bits = 0
shard_bits = 11
minishard_bits = 8
label = 12949142
shard_no = shardcomputer.shard_number(label, preshift_bits, shard_bits, minishard_bits)
# let labels be a uint64 numpy array of labels
# e.g. set(['4d2'])
shard_no_set = shardcomputer.unique_shard_numbers(
labels, preshift_bits, shard_bits, minishard_bits
)
# Returns shard number -> label list dict
# e.g. {'4d2': [12949142]}
shard_no_to_labels = shardcomputer.assign_labels_to_shards(
label, preshift_bits, shard_bits, minishard_bits
)
Install
pip install shard-computer
Credits
Thank you to Austin Appleby for placing MurMurhash3 into the public domain.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shard-computer-1.2.1.tar.gz
(15.7 kB
view hashes)
Built Distributions
Close
Hashes for shard_computer-1.2.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c3e5c941e2993ea2fc6088cb18f66f2f397a4403d682ba01591403748b4158a |
|
MD5 | feaa18c7649face62763b615b994f812 |
|
BLAKE2b-256 | b338772e819ed92a281c09677499dc95a7f195e6260f4897ca46326892ad1074 |
Close
Hashes for shard_computer-1.2.1-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9191d2496994b1466b2043838bef031ed43d10fc2daa6db91481570cf7af1768 |
|
MD5 | 5d49c4c2e31211f431e70404349fd946 |
|
BLAKE2b-256 | c332456ffafd1e648c2d81503ee86d40c1bf10bd9f0e1d056aac4be23cd82ce3 |
Close
Hashes for shard_computer-1.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 857cd648e0a63993cc7251804cdf48eceea9262d8cd0ed308d2ba561aa5f5b04 |
|
MD5 | 43e52a0a9b628c7a5d2336077a74b0ce |
|
BLAKE2b-256 | 951116fdd5f249433c7a8284a8458f496835bb28f8ad8fa84e2d709c1838ad3f |
Close
Hashes for shard_computer-1.2.1-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebe9a152ecaf6bd1103327b8d26abfaca03745a6f872efadca4a6396eaf62580 |
|
MD5 | 2f40912118acae1ad53b96a55211e9e6 |
|
BLAKE2b-256 | bf7b8dc32ba7ef8c3dccad5f6f9eafe0e8bbd1911177712f8b8e44b74c5b9b6e |
Close
Hashes for shard_computer-1.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec4e7814a8d74dceaea158e036cc9bdbd44f6da56d6520e92a1339b6f5f943c8 |
|
MD5 | 34f30f7b293e74b8930e57aad0ac7cf5 |
|
BLAKE2b-256 | d909e32d8988854ed960b6e358d0b8d94813efefdd72567a00caaeb8c5eed493 |
Close
Hashes for shard_computer-1.2.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 474a054cfc3b98dbd8414a8aa2304ba3f7d2c18d9e02beea88c617416efb58b5 |
|
MD5 | cf500f0cfdeaf810be058b94e278e5b9 |
|
BLAKE2b-256 | 17ed72fe1c4a178a28492dd6dc83c4631b748a5f565371c2a10e263adf9623bc |
Close
Hashes for shard_computer-1.2.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 192dd36c39546fd98476ec9f0aa686d25984e29b7fb8e36762d950f7d2ff6bd9 |
|
MD5 | 2f514b5f7ef4a2bf335bb0e21765979c |
|
BLAKE2b-256 | c881f5fb2146aa038a24910109ab9a1cf36ea62ffd5ef24153ca68dd320b3c6d |
Close
Hashes for shard_computer-1.2.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62c37ef4efaf5ba9dfcd413d793990344219c0057e3fda41aaf21ede75e417e1 |
|
MD5 | 19bc4df36c2e18e8641d99f954a73479 |
|
BLAKE2b-256 | 9bb33d0a9498e3d3d43ee120654ccb5e1120e348cc80a6e52f3d4b4af9650c9c |
Close
Hashes for shard_computer-1.2.1-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c9a9e91815e3d55d724b459a3ad04fb9adbb4f347cfdaf64de817cfefafbd44 |
|
MD5 | 2255dea9ae2748ca12e0bc2db01d3f65 |
|
BLAKE2b-256 | 1909f2275a7223531bf317ef727536389fcb71c0ee5a716ad4a6e4592fb472f2 |
Close
Hashes for shard_computer-1.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c616b9d979c39c03e6432b0d45a7e0807dfb901df645f0d7c10b89e66bc4d0ee |
|
MD5 | 856a8d17f1074ef142c2737721b313ec |
|
BLAKE2b-256 | 1c3c597aa908731a9a7af31f2771d1fdecdcb422b93d595fa32d4ebf28e0438d |
Close
Hashes for shard_computer-1.2.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 843aaf9ce31010d60c72f95cf7288d2b78abb0ec1205b2f643728fedde117262 |
|
MD5 | 26b114671ff933e6c452faa39c9a9c23 |
|
BLAKE2b-256 | 654480555d92f2fbecc31bc74dc5e184a4a2061ca851d4c6f8ab4da27fbdbf2a |
Close
Hashes for shard_computer-1.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 935ba1ac58079692e73b47b6e5781fbfa3e2f1397df939a342a6e11f5aa781b7 |
|
MD5 | bbd6aa67b1336e8188efbfc2e0c920a7 |
|
BLAKE2b-256 | f085e88517926fa95d572546bcb8fc7a3aea259851ae8c726b9c804dc8774e80 |
Close
Hashes for shard_computer-1.2.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96d7b3cbbe40fb128f88b49c4234e9de17f4d0c4eaafc6c22d4479086275e79d |
|
MD5 | b2c5d3c9ff51e4e7c6dc3c7ee20c37cf |
|
BLAKE2b-256 | 304e0122f1da0e6b40738fa8031d99ef7aa3db229162cf61129619d5a0fe0048 |
Close
Hashes for shard_computer-1.2.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4c8e42353a3902b103b12886cb5a12ca50b40bc003287bd618d0e81aa28f886 |
|
MD5 | 965210b6d6e8945c2ff3c9e36490acc0 |
|
BLAKE2b-256 | edcd5a7e8480a7562702132fed18d740b160f3ac4ef4eb5634422dd5dfa1a7d2 |
Close
Hashes for shard_computer-1.2.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c41ab12a7293c0faa56cf111223beb1c92ba2f51512f826901a2a7c3f2b8c2a9 |
|
MD5 | 84225f78d47b3ea147e5b8d0445f95f1 |
|
BLAKE2b-256 | e05d256052c942f1264322b304b45bddac1d0cb5ca49ff914c9a350a48e51cd9 |
Close
Hashes for shard_computer-1.2.1-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68f29bb2e264a059a5257b441f241f7b12395898b3578a92b1f19ba05395b400 |
|
MD5 | ad39569990c6b668f2f4c311162d52e6 |
|
BLAKE2b-256 | fc280493d44d71e18fa8a08d7f41ca948c3560550dc19e110b0c3023bf2cf456 |
Close
Hashes for shard_computer-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8740a4b1260e2506894bd5b9b6045677cec3b40582feb5432eb12d12c9c0ad6 |
|
MD5 | ec97143244995365223479254c03c2ac |
|
BLAKE2b-256 | 77b1072ba963dd9ca55ee373f01c96bd20466d2ddcfb5510b2bf4589a5a94e71 |
Close
Hashes for shard_computer-1.2.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9d463f91a4f83a7b562db2b58a70215cd7236a858fd771aecbd764619133f44 |
|
MD5 | 78c707c2e3193c45999df63a9a7bfe96 |
|
BLAKE2b-256 | 36a67b0758f0828848737d12c4b2c539809c624b2a2e1529a13e2224929e74f6 |
Close
Hashes for shard_computer-1.2.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bba799d1e0065060ac83097a9b85e37645461bd35230b827009c28ec57ddf50 |
|
MD5 | 4a28c669379eaa675d36d4890b00e497 |
|
BLAKE2b-256 | 193e3842d8cfcc17477f07535c9948e7d1cde9d94135e5985fc0223399325d1e |
Close
Hashes for shard_computer-1.2.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60a123f974b37531ed907373dc5b96b66ea59e00e45360cb5637af90f6208261 |
|
MD5 | 1278be3007fb0a522464bbca2299fe79 |
|
BLAKE2b-256 | 07076a182ffb0e3db35c426fbccded19d23506580fb269acb02f33441f463038 |
Close
Hashes for shard_computer-1.2.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 620f498af6418dd1426470cdacd4562313b3474fc8ed3bff7603558d38eec5f6 |
|
MD5 | 52c1cfab9384b2d843a20032265eb5f3 |
|
BLAKE2b-256 | c30ab7c08c859c04be6c0718c1d6a78075381dc520a8f88ea85705de69fac856 |
Close
Hashes for shard_computer-1.2.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94bf8c1b7541ad39a454620b3e7a8e36b2df6800dfc253aa5fd8bbecad5e4eec |
|
MD5 | 6d4f9e1e7c44871e2d1d6ed0daac11bc |
|
BLAKE2b-256 | 60a12aec208437eb8964a1f36dd0dcabe1b8a9289132adc04621012255a512a6 |
Close
Hashes for shard_computer-1.2.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f497e21901e2a2c435489229d722794358cd39473daa7217dff2ecb8521893d |
|
MD5 | d35e7e3bc8a8111c2e67cd99276439b0 |
|
BLAKE2b-256 | 6544bb9a2590c85ebe58fee752102c8cdd55cb44282db17123194d4a0188205e |
Close
Hashes for shard_computer-1.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e46714e9cc9152528a115b22bcd5501b2135fa428b21f41675a2e3056d334e3 |
|
MD5 | ba79fdf1c88905f02418562dcbee79f9 |
|
BLAKE2b-256 | 1c202af5236452981ca97fc87de17f62e281eca3d30e69cd83cd4a747636aa1a |
Close
Hashes for shard_computer-1.2.1-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bb422782ad6400cf9995ed6819086fc922a76d307a67d1fd316d43abaef2156 |
|
MD5 | a8b22bcbd1c770f510adaa83398644b4 |
|
BLAKE2b-256 | 28ac145cca06ea685ceff84b5241df9e13fbe7ad4fbbeb9035ec8db6e7e95504 |
Close
Hashes for shard_computer-1.2.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfaf95ee0fdb503d269b92ed142c35e13809edf6d7fecdd94bc8db68c9f11c1e |
|
MD5 | 6783eb2d74993fe82177e993191208e3 |
|
BLAKE2b-256 | f7687c829aa40e641ac37ce74c34f116baf19f3bcdb0d6c633bf927c1951a476 |
Close
Hashes for shard_computer-1.2.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f52a834d8928de43a2e1cb8e0059ecff893a53d30ec83cc87142258c33865d7 |
|
MD5 | cd1e103eb8ebd7033abb575788da9099 |
|
BLAKE2b-256 | 53ed03c506f6233bc398885e4cec4bf4f33a90d386befd863f721583165cc739 |
Close
Hashes for shard_computer-1.2.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57f3c9e6765e8139ca27be4242220f97de1c17dddfab7c5e7e8a9a0c1aadbb5a |
|
MD5 | 6a66a9c3e9d2c56f02400c5229f41617 |
|
BLAKE2b-256 | d9196c7c1cbf9eb1eb3763382f4189db03dee5fb2d1a2f509def21ceee6e818f |
Close
Hashes for shard_computer-1.2.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0f672ba29e00a003d138210cc8a7fae8547116a31621ffbd769b53e6138d5f3 |
|
MD5 | c088139abec889d9028755c321d172e2 |
|
BLAKE2b-256 | 16bd1a7efd9c8f77ad5cc7bf0c87a2bfba24d4ddf95f68e46d929678c5580d3f |
Close
Hashes for shard_computer-1.2.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc92fd8ae6d4da6a1ae6869f716400533cb65200a05cbf52858eccc35cfc5288 |
|
MD5 | d5e5dcba2d2ab98b06e01f5ec5576017 |
|
BLAKE2b-256 | 0939e06faa4bf8a29fb3e0c4bbdfd942bf17b7a30408514b54ac0e1cbd395493 |
Close
Hashes for shard_computer-1.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d6154da95ff53edea68878b715a8f7f2861d0053cc4116b03af681f49e3d7c9 |
|
MD5 | c2e858c904b4eccae329e75343d370dd |
|
BLAKE2b-256 | 95ed3f188f1ff8478ed9f6ac0ae5cf70572aba14c887f8894fda08f6c7e759e7 |
Close
Hashes for shard_computer-1.2.1-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f0d03e0e6b0f429fbcb805059286c6d2d7fd8beab33bdd810ece67e120599b3 |
|
MD5 | 2a6a8095a26670fa13cca2c4aba40718 |
|
BLAKE2b-256 | 9dc33ec207410f950c3c6c1d1e95a1f553be54a4f55e05e879037e18698f8e2c |
Close
Hashes for shard_computer-1.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae601da8edfcf66f4db6bbfaefcf486f770b336e9c003071e3f8d856d4ee3de8 |
|
MD5 | 6a827b5a7c7ed4ac5adea462a5d60ddd |
|
BLAKE2b-256 | 3f084fc92fdc440fbc7001747d6cd31552e84512f6e50021f4a6ed4f65be499c |
Close
Hashes for shard_computer-1.2.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fcb1fd782adc8f6889593447af8cc5f936dac8eca6b818d8819f05813efe9f6 |
|
MD5 | 83492c6011e91e95b648b732a4b6e9b4 |
|
BLAKE2b-256 | 6cf10e2e488dab3c468afe18061ab3d53fd9e81bb04d068a2c7705f1a0ac6abe |
Close
Hashes for shard_computer-1.2.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9acd1f187a76b0e4b8ae7b9e027313d9e59c0bb5b0d68a8f08f27720d4c7315b |
|
MD5 | 0ce14c7b9f0858d2140c0bc6908583ed |
|
BLAKE2b-256 | b01654c3b6c562bb1993b986d6e45de82e6bc524914d210dd82d068fa321a2ca |