Project description
Iron-Man is a bloom filter based Cython & C. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began as a simple Instance around Redis.
Irom-Man offers suggestions, but doesn't enforce any dependencies or project layout. It is up to the developer to choose the tools and libraries they want to use.
Installing
Install and update using pip:
pip install -U iron-man
A Simple Example
from iron_man import LocalBloomFilter
lbf = LocalBloomFilter(capacity=10000,error=0.0001)
# check item is it in filter
print(lbf.is_contain("content"))
# add item to filter
lbf.add("content")
print(lbf.is_contain("content"))
A Redis Example
from iron_man import RedisBloomFilter
from redis import Redis
redis_conn:Redis = Redis()
lbf = RedisBloomFilter(capacity=100000000,error=0.0001,redis_conn=redis_conn,prime_length=True,filter_prefix="bf_test")
# show the how many string will used by redis.
# every string will use 512MB mem.
print(lbf.mem_block_counts)
# check item is it in filter
print(lbf.is_contain("content"))
# add item to filter
lbf.add("content")
print(lbf.is_contain("content"))
# warning. normally, you don't need to clean BloomFilter.
lbf.clean()
Links
Metadata
Release files for iron-man 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iron_man-1.0.3.tar.gz | 6.0 kB | Without provenance | Details for iron_man-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iron_man-1.0.3-cp38-cp38-macosx_10_9_x86_64.whl | CPython 3.8 | CPython 3.8 | macOS 10.9+ x86-64 | Details for iron_man-1.0.3-cp38-cp38-macosx_10_9_x86_64.whl |
Total release size: 30.0 kB
Release files / iron_man-1.0.3.tar.gz
| Download URL | iron_man-1.0.3.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5d5974a0a8492d18345f00e6f1c6bd762a94e940e58aecda723e9ec70602788
|
|
BLAKE2b-256 checksum How to use checksums |
dbcdac9415c74bd7ddf5f14fc610fc3bb3bb5fa986414d1f83f7c8f15b5656e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Release files / iron_man-1.0.3-cp38-cp38-macosx_10_9_x86_64.whl
| Download URL | iron_man-1.0.3-cp38-cp38-macosx_10_9_x86_64.whl |
|---|---|
| Size | 24.0 kB |
| Tags | CPython 3.8 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
1e96ed4aaede5cb8a6570cc108476c0075fb3cbddbf5083ef135379a32a627cd
|
|
BLAKE2b-256 checksum How to use checksums |
397e8fb146ede1c6c7a135ad248113dc153ec2563b69d7296387d96665c6b5a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Security for iron-man 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.