Skip to main content

rocktrie

A trie library based on a single RocksDB database

Usage

>>> import rocksdb
>>> from rocktrie import list_to_trie_db, lookup, ROW_KEY, TERMINAL_KEY, PAYLOAD_KEY
>>> db = rocksdb.DB('/tmp/trie1', rocksdb.Options(create_if_missing=True))
>>> list_to_trie_db([("CAT", 100), ("RAT", 200), ("DOG", 300)], db)
>>> lookup(db, 0, 0, "O")
>>> 
>>> lookup(db, 0, 0, "C")
[0, False, None]
>>> lookup(db, 0, 1, "A")
[0, False, None]
>>> lookup(db, 0, 2, "T")
[0, True, 100]
>>> 

Metadata

Release files for rocktrie 0.0.1

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

Source distribution (sdist)

Source distribution for rocktrie 0.0.1
File Size Uploaded Provenance Actions
rocktrie-0.0.1.tar.gz 6.4 kB Without provenance Details for rocktrie-0.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 13.0 kB

Release files / rocktrie-0.0.1.tar.gz

Download URL rocktrie-0.0.1.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
44df77fe916031a6a7cc69a1a48cdabf13b87e0b2c536765f7c6e22a8ef59550
BLAKE2b-256 checksum
How to use checksums
6d5a44b0063b02503908b4bdbc19f0333818b5d3357730f65e776382d6ab6551
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Release files / rocktrie-0.0.1-py3-none-any.whl

Download URL rocktrie-0.0.1-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76dc25fb79a24c045b58c39becba72aa7d5d173855d6fc33efe2b266449a6e4d
BLAKE2b-256 checksum
How to use checksums
c0311003aedcb6d927b148fb74260f2a164062fb3b55c0645dc5039dba65a173
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Security for rocktrie 0.0.1

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.0.1 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