python-bloom-filter icon indicating copy to clipboard operation
python-bloom-filter copied to clipboard

Added functionality for users to pick a key function for their objects

Open 4gatepylon opened this issue 5 years ago • 0 comments

To make it easier to use a bloom filter for any type of object I added a 'key' parameter that you can use to insert data from some sort of object which may not be easily filtered by the current bloom filter implementation (i.e. floats). This way you don't need to externally store/do the mapping when using this package.

You use it by just passing in a key parameter that is default set to None (with None the bloom filter functions the same as it does right now).

Tests also added and passing.

Added a line in the readme to talk about this functionality.

4gatepylon avatar May 09 '20 21:05 4gatepylon