# blmfilter **Repository Path**: czasg/blmfilter ## Basic Information - **Project Name**: blmfilter - **Description**: an easy bloom filter by py - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-07 - **Last Updated**: 2021-09-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 布隆过滤器简易实现 ### 安装 ```shell script pip install blmfilter ``` ### 使用 ``` from blmfilter import BloomFilter demo = [i for i in "abcdefghigklmnopqrstuvwxyz"] demo_upper = [i for i in "abcdefghigklmnopqrstuvwxyz".upper()] bf = BloomFilter(1024 * 1024) for key in demo: bf.add(key) for key in demo: assert bf.check(key) == True # 值均存在 for key in demo_upper: assert bf.check(key) == False # 值均不存在 ```