文件名称:python-bloomfilter:带有JSON(反)序列化和(zlib)压缩的纯python bloomfilter实现
文件大小:9KB
文件格式:ZIP
更新时间:2024-05-22 23:50:04
Python
python-bloomfilter 带有JSON(反)序列化和(zlib)压缩的纯python bloomfilter实现 您可以在此处找到兼容的JAVA实现: : 例子: bf1 = BloomFilter(ideal_num_elements_n=1000000, error_rate_p=0.001) bf1.add("Alabama") bf1.add("Illinois") bf1.add("Nevada") bf1.add("RhodeIsland") serialized_bloomfilter = bf1.toJSON() #You can transmit the serialized_bloomfilter easily accross the network bf2 = BloomFilter.fromJSON(serialized_bloomfilter
【文件预览】:
python-bloomfilter-master
----.gitignore(38B)
----README.md(2KB)
----run_bloomfilter.py(2KB)
----requirements.txt(0B)
----bloomfilter()
--------base.py(5KB)
--------probegenerators()
--------tools.py(632B)
--------__init__.py(182B)