hamt-sharding 0.1.3

Creator: bradpython12

Last updated:

Add to Cart

Description:

hamtsharding 0.1.3

This code has been transpiled from js-hamt-sharding and has minimal changes.

Usage
HAMTBucket implements MutableMapping.
We suggest you import the HAMTBucket as follows:
>>> from hamt_sharding import HAMTBucket


Setting and getting
>>> from hashlib import sha256
>>> def hash_fn(value: bytes):
... return sha256(value).digest()
...
>>> bucket = HAMTBucket.create_hamt(hash_fn)
>>> bucket['key'] = 'value'
>>> bucket['key']
'value'

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.