Skip to main content

A set of python modules implementing treaps is provided.

Treaps perform most operations in O(log2(n)) time, and are innately sorted. They’re very nice for keeping a collection of values that needs to always be sorted, or for optimization problems in which you need to find the p best values out of q, when p is much smaller than q.

A module is provided for treaps that enforce uniqueness.

A pure python version is included, as is a Cython-enhanced version for performance.

Release 1.37 is pylint’d and is known to run on at least CPython 2.x, CPython 3.x and Pypy, Pypy3 (beta) and Jython.

Metadata

Release files for treap 1.37

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

Source distribution (sdist)

Source distribution for treap 1.37
File Size Uploaded Provenance Actions
treap-1.37.tar.gz 83.7 kB Without provenance Details for treap-1.37.tar.gz

Release files / treap-1.37.tar.gz

Download URL treap-1.37.tar.gz
Size 83.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8fb5a23b306d9cfe9052707aec18d11acf0fa8c124f14ddd709204cbf1ed117a
BLAKE2b-256 checksum
How to use checksums
4ee63c0d23d7cecfb4304780ce076c27e13568b21e8195e8f1cbe0d423562aee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for treap 1.37

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