Skip to main content

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'

Metadata

Release files for hamt-sharding 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hamt-sharding 0.1.3
File Size Uploaded Provenance Actions
hamt_sharding-0.1.3.tar.gz 6.3 kB Without provenance Details for hamt_sharding-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hamt-sharding 0.1.3
File Interpreter ABI Platform Actions
hamt_sharding-0.1.3-py3-none-any.whl Python 3 none any Details for hamt_sharding-0.1.3-py3-none-any.whl

Total release size: 11.6 kB

Release files / hamt_sharding-0.1.3.tar.gz

Download URL hamt_sharding-0.1.3.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
87a2301200ce105a4b81374203843a12821b51804343aee5fda101523def4698
BLAKE2b-256 checksum
How to use checksums
6373d229a92c4387795f5eff4fc094af97dcfae77ebbd5d1739ffebab39e3a23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / hamt_sharding-0.1.3-py3-none-any.whl

Download URL hamt_sharding-0.1.3-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46df5f001b60d0b2792e636880cd3918c167c5868362355ac674048d46f886bf
BLAKE2b-256 checksum
How to use checksums
24f55f4ed2c7e63a4a6c1bf4251d87a088df32ff7c3a127529569739b92d8da4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for hamt-sharding 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page