Skip to main content

This is a very simple Python class for creating priority queues which maintain unique copies of elements.

This is achieved by storing a separate set of elements that have been inserted and checking each time whether the new elements is in that set or not. An optional key parameter allows to specify a function that will be calculated on each element before checking it against the set.

put() will return True if the element was not present in the queue and False otherwise.

Metadata

Release files for pqunique 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 pqunique 0.1
File Size Uploaded Provenance Actions
pqunique-0.1.tar.gz 3.5 kB Without provenance Details for pqunique-0.1.tar.gz

Built distribution (wheel)

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

Total release size: 7.0 kB

Release files / pqunique-0.1.tar.gz

Download URL pqunique-0.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
252e84588f22a89b5edfd330e08032c83eff14e2dea8c9934f4f51927a847ea9
BLAKE2b-256 checksum
How to use checksums
c04b5cb5b8ed562bc574a660c234489fcc24b6e64802171e01c14996c35e836e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pqunique-0.1-py3-none-any.whl

Download URL pqunique-0.1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d967e37ad48a3ccb49f3024fd870c2895c5e5f57cac0c1fb1d65d358ce33cc2a
BLAKE2b-256 checksum
How to use checksums
b68186d33560b02304b779b0ef43fca7023a675622e7c6198f80dadeebc836cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pqunique 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.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