Metadata-Version: 1.0
Name: keypool
Version: 0.1
Summary: Classes and helpers to generate and maintain a pool of unique integer keys.
Home-page: https://github.com/tyrannosaur/keypool
Author: Charlie Liban
Author-email: charlie@tyrannosaur.ca
License: MIT License
Download-URL: https://github.com/tyrannosaur/keypool/zipball/master
Description: Classes and helpers to generate and maintain a pool of unique integer keys.  
        Priority is given to reusing freed keys rather than generating new ones.
        
        This package is meant for situations where keys for a dict are irrelevant or
        arbitrary.
        
        Typical usage:
        
        ::
        
           from keypool import KeypoolDict
           items = KeypoolDict()
           
           # Assign a value with a unique, generated key
           items[items.next()] = 'hello, world'
           
           # Assign a value but capture the key
           key = items.setitem('hello again, world')
           
           # Assign anything except an integer, like a normal dict
           items['hello'] = 'world'
        
Keywords: data structures
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: License :: OSI Approved :: MIT License
