bfilter-1.0.0
توضیحات
A Simple Bloom Filter for Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bfilter-1.0.0 |
| نام | bfilter |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | sysatom |
| ایمیل نویسنده | sysatom@gmail.com |
| آدرس صفحه اصلی | https://github.com/sysatom/python-bloom-filter |
| آدرس اینترنتی | https://pypi.org/project/bfilter/ |
| مجوز | - |
# A Simple Bloom Filter for Python
[](https://travis-ci.org/sysatom/python-bloom-filter)
### Install
```bash
pip install PyBloomFilter
```
### Usage
```python
from bfilter.bloomfilter import BloomFilter
bf = BloomFilter(100000, 7)
for i in range(5000):
bf.add('%s' % i)
print(bf.lookup('333'))
print(bf.lookup('100000'))
print(bf.lookup('500001'))
print(bf.lookup('510001'))
```
### Requirements
This project requires Python 3.6 or newer.
### License
You can find the license for this code in [the LICENSE file](LICENSE).
نیازمندی
| مقدار | نام |
|---|---|
| >=0.8.3 | bitarray |
| >=2.5.1 | mmh3 |
نحوه نصب
نصب پکیج whl bfilter-1.0.0:
pip install bfilter-1.0.0.whl
نصب پکیج tar.gz bfilter-1.0.0:
pip install bfilter-1.0.0.tar.gz