Skip to main content

shtrie

Single-hash-table Trie

Usage

>>> import shtrie
>>> trie = shtrie.list_to_trie([("CAT", 100), ("RAT", 200), ("DOG", 300)])
>>> from shtrie import PAYLOAD_KEY, ROW_KEY, TERMINAL_KEY
>>> from shtrie import lookup
>>> val0 = lookup(trie, 0, 0, "C")
>>> val0[TERMINAL_KEY]
False
>>> val1 = lookup(trie, val0[ROW_KEY], 1, "A")
>>> val2 = lookup(trie, val1[ROW_KEY], 2, "T")
>>> val2
(0, True, 100)
>>> lookup(trie, 0, 0, "O")

Metadata

Release files for shtrie 0.1.0

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

Source distribution (sdist)

Source distribution for shtrie 0.1.0
File Size Uploaded Provenance Actions
shtrie-0.1.0.tar.gz 6.2 kB Without provenance Details for shtrie-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shtrie 0.1.0
File Interpreter ABI Platform Actions
shtrie-0.1.0-py3-none-any.whl Python 3 none any Details for shtrie-0.1.0-py3-none-any.whl

Total release size: 12.5 kB

Release files / shtrie-0.1.0.tar.gz

Download URL shtrie-0.1.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e50394e55426aba43db510429be8a38afc20de170c3599e8707316f0c787ed69
BLAKE2b-256 checksum
How to use checksums
7c7a07e9b6822774b40379324f4d60fb00cd5fc01ddfdd34fe2dd810097f98ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release files / shtrie-0.1.0-py3-none-any.whl

Download URL shtrie-0.1.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6de350fdbe532b589fbadc55c35ee7595641cc864178b8bca977b223a75ef4a
BLAKE2b-256 checksum
How to use checksums
f3ac18a0c8ca0cf00ad7e0f20e16725b39aeb23e44aad34b511be0b56e5f3f1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Security for shtrie 0.1.0

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.

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