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'
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.