A priority queue dictionary maps hashable objects (keys) to priority-determining values. It provides a hybrid dictionary/priority queue API.
The priority queue itself is implemented as a binary heap of (key, priority value) elements, which supports:
O(1) search for the item with highest priority
O(log n) removal of the item with highest priority
O(log n) insertion of a new item
Additionally, an index maps each key to its element’s location in the heap and is kept up to date as the heap is manipulated. As a result, pqdict also supports:
O(1) lookup of any item by key
O(log n) removal of any item
O(log n) updating of any item’s priority level
Documentation
Documentation is available at http://pqdict.readthedocs.org/.
License
This module is released under the MIT license. The augmented heap implementation was adapted from the heapq module in the Python standard library, which was written by Kevin O’Connor and augmented by Tim Peters and Raymond Hettinger.
Metadata
Release files for pqdict 1.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pqdict-1.5.1.tar.gz | 187.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pqdict-1.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 196.2 kB
Release files / pqdict-1.5.1.tar.gz
| Download URL | pqdict-1.5.1.tar.gz |
|---|---|
| Size | 187.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
320958d5762c5b46cfd3e59ea5f063aa2a05e72d1d8b56ea71c66112f4706aeb
|
|
BLAKE2b-256 checksum How to use checksums |
4cd29927bdffa2f1f65875703ea5fc178929c96fbd83064ed0c816af11cd4759
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 26, 2026.
Transparency logRelease files / pqdict-1.5.1-py3-none-any.whl
| Download URL | pqdict-1.5.1-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d0fa0b2819801722d5356b88ceee1793d3333a9e15552285951b143ea546a31
|
|
BLAKE2b-256 checksum How to use checksums |
65e671e6fb672d4bee6d4658bed7268803d54ab6f815233720dfe0ce4296399b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 26, 2026.
Transparency log