Metadata-Version: 2.0
Name: pqunique
Version: 0.1
Summary: Priority queue with unique items
Home-page: https://github.com/Pastafarianist/pqunique
Author: Pastafarianist
Author-email: delonorm@gmail.com
License: MIT
Keywords: development queue priority
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5

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.


