Skip to main content

typed-trie

A pure Python implementation of trie with typing.

Usage

>>> from typed_trie import Trie
>>>
>>> trie = Trie()
>>> trie["how to cook"] = 1
>>> trie["how to swim"] = 2
>>> trie["who is john doe"] = 3
>>> list(trie.items_by_prefix("how to"))
[('how to cook', 1), ('how to swim', 2)]
>>> del trie["how to cook"]

License

typed-trie is distributed under the terms of the MIT license.

Metadata

Release files for typed-trie 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 typed-trie 0.1.0
File Size Uploaded
typed_trie-0.1.0.tar.gz 2.6 kB Details

Built distribution (wheel)

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

Total release size: 5.8 kB

Release files / typed_trie-0.1.0.tar.gz

Download URL typed_trie-0.1.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0495c6517a84487ebab5ce0ebb20b2b3d8b9b610a4d1e2361be08457a30ec46b
BLAKE2b-256 checksum
How to use checksums
54f902a62c5035f71c391d1c0b9fd149fd9acb74de98f95ea55744a6fd7823bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.7 Darwin/22.4.0

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

Download URL typed_trie-0.1.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3de47090e880539b5e0afa25e3cbb7606e001023d79b4ea017d4c82f9f7e600c
BLAKE2b-256 checksum
How to use checksums
3c1528795dec19951f49eb5c21a76099849b5022e2013d75f8cac1216e0e449f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.7 Darwin/22.4.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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